Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Fixed privacy policy and logo in dark mode (#271)
Browse files Browse the repository at this point in the history
* Made links in `PrivacyNoticePage` dark mode friendly

* Made logo dark mode friendly
  • Loading branch information
rmardall committed Feb 26, 2021
1 parent 3237a76 commit 13db6a5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Props {
direction?: "horizontal" | "vertical";
}

const useStyles = makeStyles({
const useStyles = makeStyles((theme) => ({
root: {
height: "100%",
padding: "1rem",
Expand All @@ -24,12 +24,12 @@ const useStyles = makeStyles({
width: "100%",
},
logoText: {
color: "#3f3f40",
color: theme.palette.text.primary,
fontFamily: "'Roboto Mono', monospace",
fontSize: "4em",
textAlign: "center",
},
});
}));

const LogoTemplate = (props: Props): ReactElement => {
const classes = useStyles(props);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
*/

import { ReactElement } from "react";
import { Typography, Link } from "@material-ui/core";
import { Typography, Link, makeStyles } from "@material-ui/core";
import LogoTemplate from "../../components/LogoTemplate";

const useStyles = makeStyles((theme) => ({
root: {
color: theme.palette.text.primary,
},
}));

const PrivacyPolicyPage = (): ReactElement => {
const classes = useStyles();
return (
<LogoTemplate direction="vertical">
<Typography variant="h2">Privacy Notice</Typography>
Expand All @@ -27,7 +34,9 @@ const PrivacyPolicyPage = (): ReactElement => {
</li>
<li>
<strong>Email:</strong>{" "}
<Link href="mailto:[email protected]">[email protected]</Link>
<Link classes={classes} href="mailto:[email protected]">
[email protected]
</Link>
</li>
</ul>
</Typography>
Expand Down Expand Up @@ -129,7 +138,7 @@ const PrivacyPolicyPage = (): ReactElement => {
<br />
<strong>Helpline number:</strong> 0303 123 1113 <br />
<strong>Website:</strong>{" "}
<Link href="https://www.ico.org.uk" target="blank">
<Link classes={classes} href="https://www.ico.org.uk" target="blank">
https://www.ico.org.uk
</Link>
</Typography>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 13db6a5

Please sign in to comment.