11import Footer from '@node-core/ui-components/Containers/Footer' ;
22import 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 = (
9439export 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