From a0146804bc8b2c2e760fda7808d1f79014da6fba Mon Sep 17 00:00:00 2001 From: snmln Date: Tue, 3 Dec 2024 14:12:59 -0500 Subject: [PATCH 01/35] initial commit --- app/scripts/components/common/layout-root/index.tsx | 4 ++-- app/scripts/components/common/page-footer/index.tsx | 9 +++++++++ app/scripts/components/common/uswds/footer/index.tsx | 6 ++++++ app/scripts/components/common/uswds/index.tsx | 1 + 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 app/scripts/components/common/page-footer/index.tsx create mode 100644 app/scripts/components/common/uswds/footer/index.tsx diff --git a/app/scripts/components/common/layout-root/index.tsx b/app/scripts/components/common/layout-root/index.tsx index 6fe9add22..2452ef9cf 100644 --- a/app/scripts/components/common/layout-root/index.tsx +++ b/app/scripts/components/common/layout-root/index.tsx @@ -12,7 +12,7 @@ import { Outlet } from 'react-router'; import { reveal } from '@devseed-ui/animation'; import { getBannerFromVedaConfig, getCookieConsentFromVedaConfig } from 'veda'; import MetaTags from '../meta-tags'; -import PageFooter from '../page-footer'; +import PageFooter from '../page-footer/index'; const Banner = React.lazy(() => import('../banner')); const CookieConsent = React.lazy(() => import('../cookie-consent')); @@ -98,7 +98,7 @@ function LayoutRoot(props: { children?: ReactNode }) { /> )} - + ); } diff --git a/app/scripts/components/common/page-footer/index.tsx b/app/scripts/components/common/page-footer/index.tsx new file mode 100644 index 000000000..6a81e06b8 --- /dev/null +++ b/app/scripts/components/common/page-footer/index.tsx @@ -0,0 +1,9 @@ +import React from 'react'; +import { USWDSFooter } from '$components/common/uswds'; +export default function PageFooter() { + return ( + <> + + + ); +} diff --git a/app/scripts/components/common/uswds/footer/index.tsx b/app/scripts/components/common/uswds/footer/index.tsx new file mode 100644 index 000000000..851e3f8be --- /dev/null +++ b/app/scripts/components/common/uswds/footer/index.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Footer } from '@trussworks/react-uswds'; + +export function USWDSFooter(props) { + return