-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 2114-vulnerability-code-2023_07_24-6-and-9
- Loading branch information
Showing
15 changed files
with
973 additions
and
1,381 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import React from 'react'; | ||
import { Box, Grid, Link } from '@material-ui/core'; | ||
import { useAuthContext } from 'context'; | ||
import logo from '../../assets/crossfeed.svg'; | ||
import { useFooterStyles } from './style'; | ||
|
||
export const CrossfeedFooter: React.FC = (props) => { | ||
const { logout } = useAuthContext(); | ||
const footerClasses = useFooterStyles(props); | ||
return ( | ||
<Box className={footerClasses.footerBox}> | ||
<Grid className={footerClasses.footerContainer} container> | ||
<Grid className={footerClasses.footerLogo} item xs={12} sm={2}> | ||
<Link href="/"> | ||
<img src={logo} alt="Crossfeed Icon Navigate Home" /> | ||
</Link> | ||
</Grid> | ||
<Grid className={footerClasses.footerNavItem} item xs={12} sm={2}> | ||
<p> | ||
<Link className={footerClasses.footerNavLink} href="/"> | ||
Home | ||
</Link> | ||
</p> | ||
</Grid> | ||
<Grid className={footerClasses.footerNavItem} item xs={12} sm={2}> | ||
<p> | ||
<Link | ||
className={footerClasses.footerNavLink} | ||
href="https://docs.crossfeed.cyber.dhs.gov/" | ||
> | ||
Documentation | ||
</Link> | ||
</p> | ||
</Grid> | ||
<Grid className={footerClasses.footerNavItem} item xs={12} sm={2}> | ||
<p> | ||
<Link | ||
className={footerClasses.footerNavLink} | ||
href="https://www.cisa.gov" | ||
> | ||
CISA Homepage | ||
</Link> | ||
</p> | ||
</Grid> | ||
<Grid className={footerClasses.footerNavItem} item xs={12} sm={2}> | ||
<p> | ||
<Link | ||
className={footerClasses.footerNavLink} | ||
href="mailto:[email protected]" | ||
> | ||
Contact Us | ||
</Link> | ||
</p> | ||
</Grid> | ||
<Grid className={footerClasses.footerNavItem} item xs={12} sm={2}> | ||
<p> | ||
<Link | ||
className={footerClasses.footerNavLink} | ||
href="/" | ||
onClick={logout} | ||
> | ||
Logout | ||
</Link> | ||
</p> | ||
</Grid> | ||
</Grid> | ||
</Box> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './Footer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { makeStyles } from '@material-ui/core'; | ||
|
||
export const useFooterStyles = makeStyles((theme) => ({ | ||
footerBox: { | ||
position: 'absolute', | ||
bottom: 0, | ||
width: '100%', | ||
backgroundColor: theme.palette.primary.main | ||
}, | ||
footerContainer: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
margin: '0 auto', | ||
maxWidth: '1444px' | ||
}, | ||
footerLogo: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
height: '100%' | ||
}, | ||
footerNavItem: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
padding: '0.5rem', | ||
borderLeft: '1px solid white', | ||
gridColumn: 'span 2' | ||
}, | ||
footerNavLink: { | ||
color: 'white', | ||
alwaysUnderline: 'true', | ||
alignItems: 'center' | ||
} | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.