Created the NotFound.jsx
This commit is contained in:
parent
be402402fa
commit
928a6cc189
23
src/pages/NotFound/NotFound.jsx
Normal file
23
src/pages/NotFound/NotFound.jsx
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import Navigation from "@components/Navigation";
|
||||||
|
import {Box, Button, Typography} from "@mui/material";
|
||||||
|
import {useNavigate} from "react-router-dom";
|
||||||
|
|
||||||
|
export const NotFound = () => {
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Navigation/>
|
||||||
|
|
||||||
|
<Box height="100vh" display="flex" flexDirection="column" alignItems="center" justifyContent="center">
|
||||||
|
<Typography variant="h1" fontWeight={700} color="black">404</Typography>
|
||||||
|
<Typography variant="h3" fontWeight={700} color="black">Seite nicht gefunden</Typography>
|
||||||
|
|
||||||
|
<Button variant="outlined" color="primary" sx={{mt: 2}} onClick={() => navigate("/")}>
|
||||||
|
Zurück zur Startseite
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user