Add 404 page

This commit is contained in:
2021-09-01 18:03:15 +01:00
parent fc48c58224
commit b378bd7a97

29
src/Error404.js Normal file
View File

@@ -0,0 +1,29 @@
import React from 'react';
import NavBar from './NavBar';
import Footer from "./Footer";
import { HomeRounded as HomeRoundedIcon } from "@material-ui/icons";
import LinkButton from "./LinkButton";
export default function PageNotFound() {
const navbarItems = [
{
type: "link",
link: "/",
icon: <HomeRoundedIcon />,
hideTextMobile: true,
}
];
document.title = "Error 404 | Parandum";
return (
<div>
<NavBar items={navbarItems}/>
<main>
<h1>Error 404</h1>
<h3>Sorry, but we can't find that page.</h3>
</main>
<Footer />
</div>
)
}