Skip to content

Commit

Permalink
Modified RSCFooter with Cisa logo, links, and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
chrtorres committed Apr 5, 2024
1 parent d59695c commit 2438175
Showing 1 changed file with 85 additions and 5 deletions.
90 changes: 85 additions & 5 deletions frontend/src/components/ReadySetCyber/RSCFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,90 @@
import React from 'react';
import { BottomNavigation } from '@mui/material';
import {
Box,
BottomNavigation,
BottomNavigationAction,
Grid,
Link,
Menu,
MenuItem,
Typography,
} 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

export const RSCFooter: React.FC = () => {
const [value, setValue] = React.useState(0);
const [anchorElement, setAnchorElement] = React.useState<null | HTMLElement>(null);

const handleMenuOpen = (event: React.MouseEvent<HTMLElement>) => {
setAnchorElement(event.currentTarget);
};

const handleMenuClose = () => {
setAnchorElement(null);
};

return (
<BottomNavigation>
<h1>Ready Set Cyber Footer</h1>
</BottomNavigation>
<Box
sx={{
width: '100%',
position: 'fixed',
bottom: 0, height: '20vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}}
>
<BottomNavigation
value={value}
onChange={(event, newValue) => {
setValue(newValue);
}}
showLabels
sx={{
width: '100%',
height: '20vh',
backgroundColor: '#005285'
}}
>
<Grid container direction="column" alignItems="flex-start">
<Box sx={{ display: 'flex', alignItems: 'center', paddingLeft: '4em', paddingTop: '1.5em' }}>
<Box sx={{ marginRight: '1em' }}>
<img src={cisaFooterLogo}
alt="CISA Footer Logo"
style={{
width: 55,
height: 55,
flexShrink: 0,
}}
/> {/* Use the logo */}
</Box>
<Box>
<Typography variant="h7" style={{ color: 'white' }}>{`CISA.gov\nAn Official website of the U.S. Department of Homeland Security`}</Typography>
{/* <Typography variant="h6" style={{ color: 'white' }}>CISA.gov</Typography> */}
</Box>
</Box>
<Box sx={{ marginTop: '1em' }}>
<Grid container spacing={2}>
{Array.from({ length: 12 }).map((_, index) => (
<Grid item xs={4} key={index}>
<Link
style={{
color: 'white',
textDecoration: 'underline',
fontSize: 10,
}}
href={`#link${index + 1}`}
>
Link {index + 1}
</Link>
</Grid>
))}
</Grid>
</Box>
</Grid>
</BottomNavigation>
</Box>
);
};
};

0 comments on commit 2438175

Please sign in to comment.