Skip to content

Commit

Permalink
Merge pull request #160 from cisagov/feature/rsc
Browse files Browse the repository at this point in the history
Updated ReadySetCyber Footer
  • Loading branch information
schmelz21 authored Apr 11, 2024
2 parents e8ea2f1 + 980c1d1 commit b27dfa2
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const Layout: React.FC<LayoutProps> = ({ children }) => {
) : (
<>
<RSCHeader />
<div>{children}</div>
<div className={classes.content}>{children}</div>
<RSCFooter />
</>
)}
Expand Down
83 changes: 79 additions & 4 deletions frontend/src/components/ReadySetCyber/RSCFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,85 @@
import React from 'react';
import { BottomNavigation } from '@mui/material';
import { Box, Grid, Link, Typography, Stack } from '@mui/material';
import cisaFooterLogo from './assets/cisa_footer_logo.png';
import { links } from './links';

export const RSCFooter: React.FC = () => {
return (
<BottomNavigation>
<h1>Ready Set Cyber Footer</h1>
</BottomNavigation>
<Box
sx={{
width: '100%',
display: 'flex',
position: 'relative',
bottom: 0,
justifyContent: 'center',
backgroundColor: '#005285',
paddingTop: '1em',
paddingBottom: '1em'
}}
>
<Box
sx={{
maxWidth: '80vw',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center'
}}
>
<Stack direction={'row'} gap={'1em'} paddingBottom={'2em'}>
<img
src={cisaFooterLogo}
alt="CISA Footer Logo"
style={{
width: 55,
height: 55,
flexShrink: 0
}}
/>
<Stack justifyContent={'center'}>
<Typography
style={{
color: 'white',
fontSize: '0.85em'
}}
>
CISA.gov
</Typography>
<Typography
style={{
color: 'white',
fontSize: '0.85em'
}}
>
An Official website of the U.S. Department of Homeland Security
</Typography>
</Stack>
</Stack>
<Grid
container
spacing={2}
sx={{
textAlign: {
xs: 'center',
sm: 'left'
}
}}
>
{links.map((link, index) => (
<Grid item xs={4} sm={3} key={index}>
<Link
style={{
color: 'white',
textDecoration: 'underline',
fontSize: '0.9em'
}}
href={link.href}
>
{link.text}
</Link>
</Grid>
))}
</Grid>
</Box>
</Box>
);
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions frontend/src/components/ReadySetCyber/links.ts
Original file line number Diff line number Diff line change
@@ -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' }
];

0 comments on commit b27dfa2

Please sign in to comment.