From cdf655f869bd0993b52f4268f058571740b1cf4d Mon Sep 17 00:00:00 2001 From: Lena Date: Sun, 28 Feb 2021 02:58:53 +0100 Subject: [PATCH] Add 404 page #10 --- webui/public/logo-alpha-flat-outline.svg | 21 +++++++++++++ webui/src/App.tsx | 2 ++ webui/src/components/Header/Header.tsx | 7 ----- webui/src/pages/notfound/NotFoundPage.tsx | 37 +++++++++++++++++++++++ 4 files changed, 60 insertions(+), 7 deletions(-) create mode 100644 webui/public/logo-alpha-flat-outline.svg create mode 100644 webui/src/pages/notfound/NotFoundPage.tsx diff --git a/webui/public/logo-alpha-flat-outline.svg b/webui/public/logo-alpha-flat-outline.svg new file mode 100644 index 0000000000000000000000000000000000000000..ea383f3c0d4e9730d2393f2dce487e4a823c8624 --- /dev/null +++ b/webui/public/logo-alpha-flat-outline.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/webui/src/App.tsx b/webui/src/App.tsx index b9ade9740258114c868d8ce92cbd55228e26a3c1..4c81913cbdd5b346f62f64830ae34854af22a2d0 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -5,6 +5,7 @@ import Layout from './components/Header'; import BugPage from './pages/bug'; import ListPage from './pages/list'; import NewBugPage from './pages/new/NewBugPage'; +import NotFoundPage from './pages/notfound/NotFoundPage'; export default function App() { return ( @@ -13,6 +14,7 @@ export default function App() { + ); diff --git a/webui/src/components/Header/Header.tsx b/webui/src/components/Header/Header.tsx index cdac0f0e539b5f460f5128dce66fc4f99efcc7a0..3bdb252f4aa0ef308b5ccc2af4f635b1229c874c 100644 --- a/webui/src/components/Header/Header.tsx +++ b/webui/src/components/Header/Header.tsx @@ -29,13 +29,6 @@ const useStyles = makeStyles((theme) => ({ height: '42px', marginRight: theme.spacing(2), }, - greenButton: { - backgroundColor: '#2ea44fd9', - color: '#fff', - '&:hover': { - backgroundColor: '#2ea44f', - }, - }, })); function Header() { diff --git a/webui/src/pages/notfound/NotFoundPage.tsx b/webui/src/pages/notfound/NotFoundPage.tsx new file mode 100644 index 0000000000000000000000000000000000000000..ae84ac3eea26a70892a7913949f4bfb5da258d39 --- /dev/null +++ b/webui/src/pages/notfound/NotFoundPage.tsx @@ -0,0 +1,37 @@ +import React from 'react'; + +import { makeStyles } from '@material-ui/core/styles'; + +const useStyles = makeStyles((theme) => ({ + main: { + maxWidth: 1000, + margin: 'auto', + marginTop: theme.spacing(20), + }, + logo: { + height: '350px', + }, + container: { + display: 'flex', + alignItems: 'center', + }, +})); + +function NotFoundPage() { + const classes = useStyles(); + return ( +
+
+

404 – Page not found

+ git-bug +

Go back to start page

+
+
+ ); +} + +export default NotFoundPage;