website/src/pages/404.tsx

23 lines
605 B
TypeScript
Raw Normal View History

2020-11-27 19:08:18 +00:00
import { PageProps } from 'gatsby';
2020-11-27 16:08:32 +00:00
import React from 'react';
2020-11-28 00:39:21 +00:00
import Navbar from '../components/navbar';
2020-11-27 16:08:32 +00:00
2020-11-27 19:08:18 +00:00
export default ({ location }: PageProps): JSX.Element => {
const messages = [
2020-11-27 16:08:32 +00:00
<p>
2020-11-28 00:39:21 +00:00
In your attempt to search for <code>{location.pathname}</code>, you seem
to have gotten lost instead. Fret not, for there is always a path{' '}
<a href='/'>home</a>.
</p>,
<p>
Not all who wander are lost, but you seem to be. Go <a href='/'>home</a>?
2020-11-27 19:08:18 +00:00
</p>,
];
2020-11-28 00:39:21 +00:00
return (
<>
<Navbar />
{messages[Math.floor(Math.random() * messages.length)]}
</>
);
2020-11-27 19:08:18 +00:00
};