dwysokinski.me/src/pages/404.js

51 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-01-17 08:31:50 +00:00
import React from 'react';
2020-07-13 09:45:24 +00:00
2021-01-17 08:31:50 +00:00
import { makeStyles } from '@material-ui/core/styles';
import { Container, Typography } from '@material-ui/core';
import { Link } from 'gatsby-theme-material-ui';
import Layout from '@components/Layout/Layout';
import Seo from '@components/Seo';
2020-07-13 09:45:24 +00:00
const NotFoundPage = ({ location }) => {
2021-01-17 08:31:50 +00:00
const classes = useStyles();
return (
<Layout className={classes.layout} showNavbar={false} showFooter={false}>
<Seo
title="Page not found"
description="Page not found"
pathname={location.pathname}
/>
<Container className={classes.container}>
<Typography gutterBottom variant="h1">
Page not found
</Typography>
<Typography gutterBottom variant="h4">
Looks like you've followed a broken link or entered a URL that doesn't
exist on this site.
</Typography>
<Typography variant="h4">
<Link color="secondary" to="/">
Back to site
</Link>
</Typography>
</Container>
</Layout>
2021-01-17 08:31:50 +00:00
);
};
2020-07-13 09:45:24 +00:00
const useStyles = makeStyles(() => ({
container: {
minHeight: '100vh',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
textAlign: 'center',
},
layout: {
padding: '0',
},
}));
2021-01-17 08:31:50 +00:00
export default NotFoundPage;