Skip to content

Commit edf5259

Browse files
authored
clean up
1 parent 96bc9f9 commit edf5259

File tree

24 files changed

+49
-60
lines changed

24 files changed

+49
-60
lines changed

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

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

33
.partnerIcon {
4-
@apply h-9!
5-
w-auto!
6-
min-w-9!
7-
!p-2;
4+
@apply h-9
5+
w-auto
6+
min-w-9
7+
p-2;
88

99
svg {
1010
@apply !h-4

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ type ParnetsIconProps = Partners & ComponentProps<typeof Skeleton>;
1313
const PartnersIcon: FC<ParnetsIconProps> = ({ name, href, logo, loading }) => {
1414
return (
1515
<Skeleton loading={loading} className="h-9 w-9 p-2">
16-
<Tooltip content={<span className="py-6! px-2">{name}</span>}>
16+
<Tooltip content={<span className="px-2">{name}</span>}>
1717
<Button
1818
kind="secondary"
19-
href={`${href}/?utm_source=NodeJS&utm_medium=Link`}
19+
href={`${href}/?utm_source=nodejs-website&utm_medium=Link`}
2020
className={style.partnerIcon}
2121
>
2222
{cloneElement(logo, {
23-
className: 'h-4 w-auto',
2423
width: 'auto',
2524
height: '16px',
2625
})}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.partnerIcon {
44
@apply flex
55
h-[114px]
6-
max-h-[130px]
6+
max-h-[114px]
77
w-auto
88
min-w-12
99
items-center

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ const PartnersIcon: FC<ParnetsIconProps> = ({ href, logo, loading }) => {
1414
<Skeleton loading={loading} className="h-[114px] w-full p-2">
1515
<Button
1616
kind="secondary"
17-
href={`${href}/?utm_source=NodeJS&utm_medium=Link`}
17+
href={`${href}/?utm_source=nodejs-website&utm_medium=Link`}
1818
className={style.partnerIcon}
1919
>
2020
{cloneElement(logo, {
21-
className: 'h-4 w-auto',
2221
width: 'auto',
2322
height: '16px',
2423
})}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const PartnersIconList: FC<PartnersIconListProps> = ({
3737
const renderSponsorsAnimation = setTimeout(() => {
3838
initialRenderer.current = false;
3939

40-
setSeedList(randomPartnerList(ICON_PARTNERS, maxLength, 1, categories));
40+
setSeedList(randomPartnerList(ICON_PARTNERS, maxLength, 5, categories));
4141
}, 0);
4242

4343
return () => clearTimeout(renderSponsorsAnimation);
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@reference "../../../../styles/index.css";
22

33
.partnersLogoList {
4-
display: grid;
5-
gap: 16px;
6-
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
7-
width: 100%;
4+
@apply grid
5+
w-full
6+
grid-cols-[repeat(auto-fill,minmax(240px,1fr))]
7+
gap-4;
88
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const PartnersLogoList: FC<PartnersLogoListProps> = ({
4242
const renderSponsorsAnimation = setTimeout(() => {
4343
initialRenderer.current = false;
4444

45-
setSeedList(randomPartnerList(LOGO_PARTNERS, maxLength, 1, categories));
45+
setSeedList(randomPartnerList(LOGO_PARTNERS, maxLength, 5, categories));
4646
}, 0);
4747

4848
return () => clearTimeout(renderSponsorsAnimation);

apps/site/next.mdx.use.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export const mdxComponents = {
2929
WithBadgeGroup,
3030
// HOC for providing Backers Data
3131
WithSupporters,
32+
// Standalone Badge Group
33+
BadgeGroup,
3234
// Shows a list of Node.js Partners with Icons
3335
PartnersIconList,
3436
// Shows a list of Node.js Partners with Logos
3537
PartnersLogoList,
36-
// Standalone Badge Group
37-
BadgeGroup,
3838
// Renders an container for Upcoming Node.js Meetings
3939
UpcomingMeetings,
4040
// Renders a Button Component for `button` tags

apps/site/next.partners.constants.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { Partners } from '#site/types';
2-
import { partnersList } from '#site/util/partners';
2+
import { createPartnersList } from '#site/util/partners';
33
import partners from '#site/util/partners/constants.json' with { type: 'json' };
44

5-
const PARTNERS = (type?: 'Logo' | 'Favicon') =>
6-
partnersList(partners as Array<Omit<Partners, 'logo'>>, type);
5+
const getPartnersByType = (type?: 'Logo' | 'Favicon') =>
6+
createPartnersList(partners as Array<Omit<Partners, 'logo'>>, type);
77

8-
const ICON_PARTNERS = PARTNERS('Favicon');
9-
const LOGO_PARTNERS = PARTNERS('Logo');
8+
const ICON_PARTNERS = getPartnersByType('Favicon');
9+
const LOGO_PARTNERS = getPartnersByType('Logo');
1010

1111
export { ICON_PARTNERS, LOGO_PARTNERS };

apps/site/pages/en/about/partners.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Partners
2+
title: Partners & Supporters
33
layout: about
44
---
55

@@ -47,7 +47,8 @@ resources they need to build and maintain this project.
4747
## Supporters
4848

4949
Supporters are individuals and organizations that provide financial support through
50-
OpenCollective and GitHub Sponsors of the Node.js project.
50+
[OpenCollective](https://opencollective.com/nodejs) and [GitHub Sponsors](https://github.com/sponsors/nodejs)
51+
of the Node.js project.
5152

5253
<WithSupporters />
5354

@@ -59,7 +60,7 @@ The program provides access to security patches, compliance assistance, and tech
5960
to help bridge the gap while you plan your upgrade strategy. For more information about
6061
End-Of-Life versions, please visit [End-Of-Life Node.js Releases](/eol)
6162

62-
> Using EOL releases through NES should be viewed as a temporary solutionthe goal should always
63+
> Using EOL releases through NES should be viewed as a temporary solution, the goal should always
6364
> be to upgrade to actively supported versions.
6465
6566
<PartnersLogoList categories="esp" maxLength={null} />
@@ -70,6 +71,6 @@ End-Of-Life versions, please visit [End-Of-Life Node.js Releases](/eol)
7071

7172
If you are interested in becoming a partner, please reach out to us
7273

73-
<Button href="https://openjsf.org/contact">Contact</Button>
74+
<Button href="https://openjsf.org/partners">Contact</Button>
7475

7576
</div>

0 commit comments

Comments
 (0)