From 7228f532de13ffc0d37e8a6fc70e4ae8d392830f Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Wed, 4 Feb 2026 06:38:39 -0600 Subject: [PATCH] Adds OpenJS Footer (#8577) * introduce third slot to footer * add and order new keys and links for footer * add withLegal with full translation support * add withLegal to the new legal slot * you'd think the formatter and precommit would catch this * improve types * rename key * fix html entities * match style of markdown.css anchors * fix rendering of legal paragraph * change to NavLink --- apps/site/components/withFooter.tsx | 10 ++- apps/site/components/withLegal.tsx | 83 +++++++++++++++++++ apps/site/navigation.json | 28 +++++-- packages/i18n/src/locales/en.json | 9 +- .../src/Containers/Footer/index.module.css | 43 +++++++++- .../src/Containers/Footer/index.tsx | 67 ++++++--------- 6 files changed, 186 insertions(+), 54 deletions(-) create mode 100644 apps/site/components/withLegal.tsx diff --git a/apps/site/components/withFooter.tsx b/apps/site/components/withFooter.tsx index b6fb622df253f..72a200ccb18df 100644 --- a/apps/site/components/withFooter.tsx +++ b/apps/site/components/withFooter.tsx @@ -8,6 +8,7 @@ import { siteNavigation } from '#site/next.json.mjs'; import type { FC } from 'react'; +import WithLegal from './withLegal'; import WithNodeRelease from './withNodeRelease'; const WithFooter: FC = () => { @@ -18,7 +19,10 @@ const WithFooter: FC = () => { const navigation = { socialLinks, - footerLinks: footerLinks.map(link => ({ ...link, text: t(link.text) })), + footerLinks: footerLinks.map(link => ({ + ...link, + translation: t(link.text), + })), }; const primary = ( @@ -50,12 +54,14 @@ const WithFooter: FC = () => { ); + const legal = ; + return (