From 91b0afcb55ef3bb3ca3e2c9ae04800fb106e13fd Mon Sep 17 00:00:00 2001 From: Chrtorres Date: Fri, 5 Apr 2024 15:27:53 -0400 Subject: [PATCH] Modified Footer links, added links.ts to store test links --- .../components/ReadySetCyber/RSCFooter.tsx | 70 ++++++++++++------- .../src/components/ReadySetCyber/links.ts | 14 ++++ 2 files changed, 59 insertions(+), 25 deletions(-) create mode 100644 frontend/src/components/ReadySetCyber/links.ts diff --git a/frontend/src/components/ReadySetCyber/RSCFooter.tsx b/frontend/src/components/ReadySetCyber/RSCFooter.tsx index a03ac723..d8441ca6 100644 --- a/frontend/src/components/ReadySetCyber/RSCFooter.tsx +++ b/frontend/src/components/ReadySetCyber/RSCFooter.tsx @@ -7,11 +7,13 @@ import { Link, Menu, MenuItem, - Typography, + Typography, + Stack, } from '@mui/material'; import LogoutIcon from '@mui/icons-material/Logout'; import AccountCircleIcon from '@mui/icons-material/AccountCircle'; // Import the AccountCircle icon import cisaFooterLogo from './assets/cisa_footer_logo.png'; // Import the logo +import { links } from './links'; export const RSCFooter: React.FC = () => { const [value, setValue] = React.useState(0); @@ -49,8 +51,15 @@ export const RSCFooter: React.FC = () => { }} > - - + + + CISA Footer Logo { height: 55, flexShrink: 0, }} - /> {/* Use the logo */} - - - {`CISA.gov\nAn Official website of the U.S. Department of Homeland Security`} - {/* CISA.gov */} + /> + + + CISA.gov + + + An Official website of the U.S. Department of Homeland Security + + - - - {Array.from({ length: 12 }).map((_, index) => ( - - + + {links.map((link, index) => ( + + - Link {index + 1} - - - ))} - - + {link.text} + + + ))} + + + diff --git a/frontend/src/components/ReadySetCyber/links.ts b/frontend/src/components/ReadySetCyber/links.ts new file mode 100644 index 00000000..4a347eae --- /dev/null +++ b/frontend/src/components/ReadySetCyber/links.ts @@ -0,0 +1,14 @@ +export const links = [ + { text: 'About CISA', href: '#link1' }, + { text: 'Accessibility', href: '#link2' }, + { text: 'Budget and Performance', href: '#link3' }, + { text: 'DHS.gov', href: '#link10' }, + { text: 'FOIA Requests', href: '#link4' }, + { text: 'No FEAR Act', href: '#link5' }, + { text: 'Office of Inspector General', href: '#link6' }, + { text: 'Privacy Policy', href: '#link11' }, + { text: 'Subscribe', href: '#link7' }, + { text: 'The White House', href: '#link8' }, + { text: 'USA.gov', href: '#link9' }, + { text: 'Website Feedback', href: '#link12' }, + ]; \ No newline at end of file