aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webui/src/pages/notfound/NotFoundPage.tsx42
1 files changed, 29 insertions, 13 deletions
diff --git a/webui/src/pages/notfound/NotFoundPage.tsx b/webui/src/pages/notfound/NotFoundPage.tsx
index ae84ac3e..2aba9cef 100644
--- a/webui/src/pages/notfound/NotFoundPage.tsx
+++ b/webui/src/pages/notfound/NotFoundPage.tsx
@@ -1,19 +1,34 @@
+import wrap from '@arrows/composition/internal/wrap';
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
+import ArrowBackIcon from '@material-ui/icons/ArrowBack';
const useStyles = makeStyles((theme) => ({
main: {
maxWidth: 1000,
margin: 'auto',
- marginTop: theme.spacing(20),
+ marginTop: theme.spacing(10),
},
logo: {
height: '350px',
+ display: 'block',
+ marginLeft: 'auto',
+ marginRight: 'auto',
},
- container: {
- display: 'flex',
- alignItems: 'center',
+ icon: {
+ display: 'block',
+ marginLeft: 'auto',
+ marginRight: 'auto',
+ fontSize: '80px',
+ },
+ backLink: {
+ textDecoration: 'none',
+ color: theme.palette.text.primary,
+ },
+ header: {
+ fontSize: '30px',
+ textAlign: 'center',
},
}));
@@ -21,15 +36,16 @@ function NotFoundPage() {
const classes = useStyles();
return (
<main className={classes.main}>
- <div className={classes.container}>
- <h1>404 – Page not found</h1>
- <img
- src="/logo-alpha-flat-outline.svg"
- className={classes.logo}
- alt="git-bug"
- />
- <h1>Go back to start page</h1>
- </div>
+ <h1 className={classes.header}>404 – Page not found</h1>
+ <img
+ src="/logo-alpha-flat-outline.svg"
+ className={classes.logo}
+ alt="git-bug"
+ />
+ <a href="/" className={classes.backLink}>
+ <h2 className={classes.header}>Go back to start page</h2>
+ <ArrowBackIcon className={classes.icon} />
+ </a>
</main>
);
}