1
0
Fork 0
blog/src/pages/404.tsx

30 lines
764 B
TypeScript
Raw Normal View History

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'
import * as styles from './404.module.css'
import { SeoPost } from '../components/atoms/SEO'
2018-07-17 23:33:55 +02:00
const page: SeoPost = {
2018-11-07 01:15:41 +01:00
frontmatter: {
title: '404 - Not Found'
}
}
2021-03-01 00:36:51 +01:00
const NotFound = (props: PageProps): ReactElement => (
<Page
title={page.frontmatter?.title}
2021-03-01 00:36:51 +01:00
post={page}
pathname={props.location.pathname}
>
<div className={styles.hal9000} />
2018-07-17 23:33:55 +02:00
<div className={styles.wrapper}>
<h1 className={styles.title}>{"I'm sorry Dave"}</h1>{' '}
<p className={styles.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