2022-02-17 11:16:21 +00:00
|
|
|
|
import * as React from 'react'
|
|
|
|
|
import { Link } from 'gatsby'
|
2022-02-15 09:04:19 +00:00
|
|
|
|
|
|
|
|
|
// styles
|
|
|
|
|
const pageStyles = {
|
2022-02-17 11:16:21 +00:00
|
|
|
|
color: '#232129',
|
|
|
|
|
padding: '96px',
|
|
|
|
|
fontFamily: '-apple-system, Roboto, sans-serif, serif',
|
2022-02-15 09:04:19 +00:00
|
|
|
|
}
|
|
|
|
|
const headingStyles = {
|
|
|
|
|
marginTop: 0,
|
|
|
|
|
marginBottom: 64,
|
|
|
|
|
maxWidth: 320,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const paragraphStyles = {
|
|
|
|
|
marginBottom: 48,
|
|
|
|
|
}
|
|
|
|
|
const codeStyles = {
|
2022-02-17 11:16:21 +00:00
|
|
|
|
color: '#8A6534',
|
2022-02-15 09:04:19 +00:00
|
|
|
|
padding: 4,
|
2022-02-17 11:16:21 +00:00
|
|
|
|
backgroundColor: '#FFF4DB',
|
|
|
|
|
fontSize: '1.25rem',
|
2022-02-15 09:04:19 +00:00
|
|
|
|
borderRadius: 4,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// markup
|
|
|
|
|
const NotFoundPage = () => {
|
|
|
|
|
return (
|
|
|
|
|
<main style={pageStyles}>
|
|
|
|
|
<title>Not found</title>
|
|
|
|
|
<h1 style={headingStyles}>Page not found</h1>
|
|
|
|
|
<p style={paragraphStyles}>
|
2022-02-17 11:16:21 +00:00
|
|
|
|
Sorry{' '}
|
2022-02-15 09:04:19 +00:00
|
|
|
|
<span role="img" aria-label="Pensive emoji">
|
|
|
|
|
😔
|
2022-02-17 11:16:21 +00:00
|
|
|
|
</span>{' '}
|
2022-02-15 09:04:19 +00:00
|
|
|
|
we couldn’t find what you were looking for.
|
|
|
|
|
<br />
|
2022-02-17 11:16:21 +00:00
|
|
|
|
{process.env.NODE_ENV === 'development' ? (
|
2022-02-15 09:04:19 +00:00
|
|
|
|
<>
|
|
|
|
|
<br />
|
|
|
|
|
Try creating a page in <code style={codeStyles}>src/pages/</code>.
|
|
|
|
|
<br />
|
|
|
|
|
</>
|
|
|
|
|
) : null}
|
|
|
|
|
<br />
|
|
|
|
|
<Link to="/">Go home</Link>.
|
|
|
|
|
</p>
|
|
|
|
|
</main>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default NotFoundPage
|