2020-05-22 14:38:19 +02:00
|
|
|
import React, { ReactElement } from 'react'
|
2021-03-01 00:36:51 +01:00
|
|
|
import { Link, PageProps } from 'gatsby'
|
2020-03-04 22:21:12 +01:00
|
|
|
import Page from '../components/templates/Page'
|
2021-03-14 02:58:37 +01:00
|
|
|
import { hal9000, wrapper, title, text } from './404.module.css'
|
2018-07-17 23:33:55 +02:00
|
|
|
|
2018-11-07 01:15:41 +01:00
|
|
|
const page = {
|
|
|
|
frontmatter: {
|
|
|
|
title: '404 - Not Found'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-01 00:36:51 +01:00
|
|
|
const NotFound = (props: PageProps): ReactElement => (
|
|
|
|
<Page
|
|
|
|
title={page.frontmatter.title}
|
|
|
|
post={page}
|
|
|
|
pathname={props.location.pathname}
|
|
|
|
>
|
2021-03-14 02:58:37 +01:00
|
|
|
<div className={hal9000} />
|
2018-07-17 23:33:55 +02:00
|
|
|
|
2021-03-14 02:58:37 +01:00
|
|
|
<div className={wrapper}>
|
|
|
|
<h1 className={title}>{"I'm sorry Dave"}</h1>{' '}
|
|
|
|
<p className={text}>{"I'm afraid I can't do that"}</p>
|
2018-09-09 18:16:13 +02:00
|
|
|
<Link to={'/'}>Back to homepage</Link>
|
|
|
|
</div>
|
2018-09-16 15:08:52 +02:00
|
|
|
</Page>
|
2018-07-17 23:33:55 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
export default NotFound
|