Skip to content

Commit 94156e9

Browse files
committed
chore: server-side render partners
1 parent 3f57d25 commit 94156e9

File tree

52 files changed

+282
-474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+282
-474
lines changed

apps/site/components/Common/Partners/PartnerLogo/index.module.css renamed to apps/site/components/Common/Partners/PartnerButton/index.module.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@reference "../../../../styles/index.css";
22

3-
.partnerIcon {
3+
.big {
44
@apply flex
55
h-28
66
max-h-28
@@ -17,3 +17,15 @@
1717
!w-auto;
1818
}
1919
}
20+
21+
.small {
22+
@apply h-9
23+
w-auto
24+
min-w-9
25+
p-2;
26+
27+
svg {
28+
@apply !h-4
29+
!w-auto;
30+
}
31+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import Button from '#site/components/Common/Button';
2+
3+
import type { AnchorHTMLAttributes, FC } from 'react';
4+
5+
import style from './index.module.css';
6+
7+
type PartnerProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
8+
size: 'big' | 'small';
9+
};
10+
11+
const PartnerButton: FC<PartnerProps> = ({
12+
href,
13+
size = 'small',
14+
...props
15+
}) => (
16+
<Button
17+
kind="secondary"
18+
href={`${href}/?utm_source=nodejs-website&utm_medium=Link`}
19+
rel="sponsored noopener"
20+
target="_blank"
21+
className={style[size]}
22+
{...props}
23+
/>
24+
);
25+
26+
export default PartnerButton;

apps/site/components/Common/Partners/PartnerIcon/index.module.css

Lines changed: 0 additions & 13 deletions
This file was deleted.

apps/site/components/Common/Partners/PartnerIcon/index.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

apps/site/components/Common/Partners/PartnerLogo/index.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

apps/site/components/Common/Partners/PartnersIconList/index.module.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/site/components/Common/Partners/PartnersIconList/index.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

apps/site/components/Common/Partners/PartnersLogoList/index.module.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/site/components/Common/Partners/PartnersLogoList/index.tsx

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@reference "../../../styles/index.css";
2+
3+
.small {
4+
@apply flex
5+
flex-row
6+
flex-wrap
7+
items-center
8+
gap-2;
9+
}
10+
11+
.big {
12+
@apply grid
13+
w-full
14+
grid-cols-[repeat(auto-fill,minmax(240px,1fr))]
15+
gap-4;
16+
}
17+
18+
.tooltip {
19+
@apply p-2
20+
text-neutral-900
21+
dark:text-neutral-200;
22+
}

0 commit comments

Comments
 (0)