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

32 lines
805 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'gatsby'
import Page from '../templates/Page'
import styles from './404.module.scss'
const page = {
frontmatter: {
title: '404 - Not Found'
}
}
const NotFound = ({ location }) => (
<Page title={page.frontmatter.title} post={page} location={location}>
<div className={styles.hal9000} />
<div className={styles.wrapper}>
{/* 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>
<Link to={'/'}>Back to homepage</Link>
</div>
</Page>
)
NotFound.propTypes = {
location: PropTypes.object.isRequired
}
export default NotFound