Added 404 page

main
Guus van Meerveld 3 years ago
parent 8f4f5c2fa6
commit a41b50b3cc
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

2
.gitattributes vendored

@ -1,2 +0,0 @@
/src/styles/materialize linguist-vendored
/public/static/ linguist-vendored

@ -1,2 +0,0 @@
.title
text-align: center

@ -1,9 +0,0 @@
import { FC } from "react";
import styles from "./Title.module.sass";
const Title: FC = () => {
return <h1 className={styles.title}>Hello World</h1>;
};
export default Title;

@ -0,0 +1,25 @@
import { NextPage } from "next";
import { NextSeo } from "next-seo";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import Layout from "@components/Layout";
const NotFound: NextPage = () => {
return (
<>
<NextSeo title="Not Found" />
<Layout>
<Box sx={{ mt: 5, textAlign: "center" }}>
<Typography variant="h3">Page not found</Typography>
<Typography variant="h4">
The page may have been moved or deleted.
</Typography>
</Box>
</Layout>
</>
);
};
export default NotFound;

@ -2,14 +2,11 @@ import { NextPage } from "next";
import { NextSeo } from "next-seo";
import Layout from "@components/Layout";
import Title from "@components/Title";
const Index: NextPage = () => (
<>
<NextSeo title="Home" />
<Layout>
<Title />
</Layout>
<Layout></Layout>
</>
);

@ -1,3 +1,2 @@
a
text-decoration: none

Loading…
Cancel
Save