1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-29 00:58:00 +02:00
blog/src/pages/404.jsx

32 lines
805 B
React
Raw Normal View History

2018-07-18 00:24:11 +02:00
import React from 'react'
2018-07-20 15:52:17 +02:00
import PropTypes from 'prop-types'
2018-09-09 18:16:13 +02:00
import { Link } from 'gatsby'
2018-09-16 15:08:52 +02:00
import Page from '../templates/Page'
2018-09-09 18:16:13 +02:00
import styles from './404.module.scss'
2018-07-17 23:33:55 +02:00
2018-11-07 01:15:41 +01:00
const page = {
frontmatter: {
title: '404 - Not Found'
}
}
const NotFound = ({ location }) => (
<Page title={page.frontmatter.title} post={page} location={location}>
2018-09-09 18:16:13 +02:00
<div className={styles.hal9000} />
2018-07-17 23:33:55 +02:00
2018-09-09 18:16:13 +02:00
<div className={styles.wrapper}>
2018-09-16 15:08:52 +02:00
{/* eslint-disable-next-line quotes */}
<h1 className={styles.title}>{"I'm sorry Dave"}</h1>{' '}
{/* eslint-disable-next-line quotes */}
<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
)
2018-07-20 15:52:17 +02:00
NotFound.propTypes = {
location: PropTypes.object.isRequired
}
2018-07-17 23:33:55 +02:00
export default NotFound