Skip to content

Commit d1a4922

Browse files
committed
fixup!
1 parent 47d9cd8 commit d1a4922

2 files changed

Lines changed: 25 additions & 58 deletions

File tree

components/Footer/footer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"socialLinks": [
3+
{ "icon": "github", "link": "https://github.com/nodejs/node", "alt": "GitHub" },
4+
{ "icon": "discord", "link": "https://discord.gg/nodejs", "alt": "Discord" },
5+
{ "icon": "mastodon", "link": "https://social.lfx.dev/@nodejs", "alt": "Mastodon" },
6+
{ "icon": "bluesky", "link": "https://bsky.app/profile/nodejs.org", "alt": "Bluesky" },
7+
{ "icon": "twitter", "link": "https://twitter.com/nodejs", "alt": "Twitter" },
8+
{ "icon": "slack", "link": "https://slack-invite.openjsf.org/", "alt": "Slack" },
9+
{ "icon": "linkedin", "link": "https://www.linkedin.com/company/node-js", "alt": "LinkedIn" }
10+
],
11+
"footerLinks": [
12+
{ "link": "https://openjsf.org/", "text": "OpenJS Foundation" },
13+
{ "link": "https://terms-of-use.openjsf.org/", "text": "Terms of Use" },
14+
{ "link": "https://privacy-policy.openjsf.org/", "text": "Privacy Policy" },
15+
{ "link": "https://bylaws.openjsf.org/", "text": "Bylaws" },
16+
{ "link": "https://github.com/openjs-foundation/cross-project-council/blob/main/CODE_OF_CONDUCT.md", "text": "Code of Conduct" },
17+
{ "link": "https://trademark-policy.openjsf.org/", "text": "Trademark Policy" },
18+
{ "link": "https://trademark-list.openjsf.org/", "text": "Trademark List" },
19+
{ "link": "https://www.linuxfoundation.org/cookies/", "text": "Cookie Policy" },
20+
{ "link": "https://github.com/nodejs/node/security/policy", "text": "Security Policy" }
21+
]
22+
}

components/Footer/index.jsx

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,7 @@
11
import Footer from '@node-core/ui-components/Containers/Footer';
22
import NavItem from '@node-core/ui-components/Containers/NavBar/NavItem';
33

4-
const SOCIAL_LINKS = [
5-
{ icon: 'github', link: 'https://github.com/nodejs/node', alt: 'GitHub' },
6-
{ icon: 'discord', link: 'https://discord.gg/nodejs', alt: 'Discord' },
7-
{ icon: 'mastodon', link: 'https://social.lfx.dev/@nodejs', alt: 'Mastodon' },
8-
{
9-
icon: 'bluesky',
10-
link: 'https://bsky.app/profile/nodejs.org',
11-
alt: 'Bluesky',
12-
},
13-
{ icon: 'twitter', link: 'https://twitter.com/nodejs', alt: 'Twitter' },
14-
{ icon: 'slack', link: 'https://slack-invite.openjsf.org/', alt: 'Slack' },
15-
{
16-
icon: 'linkedin',
17-
link: 'https://www.linkedin.com/company/node-js',
18-
alt: 'LinkedIn',
19-
},
20-
];
21-
22-
const FOOTER_LINKS = [
23-
{
24-
link: 'https://openjsf.org/',
25-
text: 'OpenJS Foundation',
26-
},
27-
{
28-
link: 'https://terms-of-use.openjsf.org/',
29-
text: 'Terms of Use',
30-
},
31-
{
32-
link: 'https://privacy-policy.openjsf.org/',
33-
text: 'Privacy Policy',
34-
},
35-
{
36-
link: 'https://bylaws.openjsf.org/',
37-
text: 'Bylaws',
38-
},
39-
{
40-
link: 'https://github.com/openjs-foundation/cross-project-council/blob/main/CODE_OF_CONDUCT.md',
41-
text: 'Code of Conduct',
42-
},
43-
{
44-
link: 'https://trademark-policy.openjsf.org/',
45-
text: 'Trademark Policy',
46-
},
47-
{
48-
link: 'https://trademark-list.openjsf.org/',
49-
text: 'Trademark List',
50-
},
51-
{
52-
link: 'https://www.linuxfoundation.org/cookies/',
53-
text: 'Cookie Policy',
54-
},
55-
{
56-
link: 'https://github.com/nodejs/node/security/policy',
57-
text: 'Security Policy',
58-
},
59-
];
4+
import { socialLinks, footerLinks } from './footer.json';
605

616
// The Node.js Project is legally obligated to include the following text.
627
// It should not be modified unless explicitly requested by OpenJS staff.
@@ -79,7 +24,7 @@ const LegalSlot = (
7924
</p>
8025

8126
<p>
82-
{FOOTER_LINKS.map(({ link, text }) => (
27+
{footerLinks.map(({ link, text }) => (
8328
<NavItem key={link} type="footer" href={link}>
8429
{text}
8530
</NavItem>
@@ -94,7 +39,7 @@ const LegalSlot = (
9439
export default ({ metadata }) => (
9540
<Footer
9641
pathname={metadata.path}
97-
navigation={{ socialLinks: SOCIAL_LINKS }}
42+
navigation={{ socialLinks }}
9843
slots={{ legal: LegalSlot }}
9944
/>
10045
);

0 commit comments

Comments
 (0)