-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from aodn/feature/5882-update-footer
💄 update footer
- Loading branch information
Showing
1 changed file
with
54 additions
and
66 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -48,6 +48,14 @@ const handleBackToTop = () => { | |
}); | ||
}; | ||
|
||
const handleClickContactUs = () => { | ||
const recipient = "[email protected]"; | ||
const subject = "This is a test - please ignore"; | ||
const body = "This is being sent from AODN's Data Discovery portal."; | ||
|
||
window.location.href = `mailto:${recipient}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`; | ||
}; | ||
|
||
const currentYear = dayjs(new Date()).year(); | ||
const version = import.meta.env.VITE_APP_VERSION; | ||
|
||
|
@@ -57,24 +65,14 @@ const Footer: FC = () => { | |
<Grid container paddingY={padding.quadruple}> | ||
<Grid item xs={12} display="flex" justifyContent="space-between"> | ||
<AODNSiteLogo /> | ||
<Box> | ||
<Button> | ||
<IconContainer> | ||
<MenuIcon fontSize="small" /> | ||
</IconContainer> | ||
<Typography color="#000" paddingTop={0}> | ||
Site Menu | ||
</Typography> | ||
</Button> | ||
<Button onClick={handleBackToTop}> | ||
<IconContainer> | ||
<NorthIcon fontSize="small" /> | ||
</IconContainer> | ||
<Typography color="#000" paddingTop={0}> | ||
Back to Top | ||
</Typography> | ||
</Button> | ||
</Box> | ||
<Button onClick={handleBackToTop}> | ||
<IconContainer> | ||
<NorthIcon fontSize="small" /> | ||
</IconContainer> | ||
<Typography color="#000" paddingTop={0}> | ||
Back to Top | ||
</Typography> | ||
</Button> | ||
</Grid> | ||
<Grid item xs={12} paddingY={padding.large}> | ||
<Typography | ||
|
@@ -104,73 +102,63 @@ const Footer: FC = () => { | |
<Grid item xs={12} paddingY={padding.small}> | ||
<Grid container> | ||
<Grid item xs={6}> | ||
<Box minWidth="415px" maxWidth="70%"> | ||
<Paper | ||
component="form" | ||
elevation={0} | ||
<Box | ||
sx={{ | ||
height: "100%", | ||
width: "180px", | ||
bgcolor: color.blue.extraDark, | ||
borderRadius: borderRadius.small, | ||
}} | ||
> | ||
<Button | ||
sx={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
height: "100%", | ||
width: "100%", | ||
height: "50px", | ||
border: border.xs, | ||
borderBlockColor: color.blue.dark, | ||
borderRadius: borderRadius.medium, | ||
overflow: "hidden", | ||
}} | ||
onClick={handleClickContactUs} | ||
> | ||
<IconContainer | ||
sx={{ marginX: margin.lg, color: color.blue.extraDark }} | ||
> | ||
<IconContainer sx={{ marginRight: margin.lg, color: "#fff" }}> | ||
<MailOutlineIcon /> | ||
</IconContainer> | ||
<InputBase | ||
sx={{ flex: 1, p: 0 }} | ||
placeholder="[email protected]" | ||
/> | ||
<Box | ||
sx={{ | ||
height: "100%", | ||
width: "20%", | ||
bgcolor: color.blue.extraDark, | ||
}} | ||
<Typography | ||
color="#fff" | ||
paddingTop={0} | ||
fontSize={fontSize.info} | ||
letterSpacing={1} | ||
textAlign="center" | ||
> | ||
<Button | ||
sx={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
height: "100%", | ||
width: "100%", | ||
}} | ||
> | ||
<Typography | ||
color="#fff" | ||
paddingTop={0} | ||
fontSize={fontSize.label} | ||
textAlign="center" | ||
> | ||
Subscribe | ||
</Typography> | ||
</Button> | ||
</Box> | ||
</Paper> | ||
Contact Us | ||
</Typography> | ||
</Button> | ||
</Box> | ||
</Grid> | ||
<Grid item xs={6} display="flex" justifyContent="end" gap={2}> | ||
<Button> | ||
<Button | ||
onClick={() => window.open("https://imos.org.au/terms-of-use")} | ||
> | ||
<Typography color="#000" paddingTop={gap.md}> | ||
Acknowledge Us | ||
Terms of Use | ||
</Typography> | ||
</Button> | ||
<Button> | ||
<Button | ||
onClick={() => | ||
window.open("https://imos.org.au/resources/acknowledging-us") | ||
} | ||
> | ||
<Typography color="#000" paddingTop={gap.md}> | ||
Site Map | ||
Acknowledge Us | ||
</Typography> | ||
</Button> | ||
<Button> | ||
<Button | ||
onClick={() => | ||
window.open("https://imos.org.au/conditions-of-use") | ||
} | ||
> | ||
<Typography color="#000" paddingTop={gap.md}> | ||
Term of Use | ||
Conditions of Use | ||
</Typography> | ||
</Button> | ||
</Grid> | ||
|