Created
July 29, 2019 04:43
-
-
Save yomete/b50c7092113d6df7d899e1752be189af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import { graphql } from "gatsby" | |
import Layout from "../components/layout" | |
import SEO from "../components/seo" | |
interface Props { | |
data: { | |
site: { | |
siteMetadata: { | |
title: string | |
} | |
} | |
} | |
} | |
const NotFoundPage = ({ data }: Props) => { | |
const siteTitle = data.site.siteMetadata.title | |
return ( | |
<Layout location={window.location} title={siteTitle}> | |
<SEO title="404: Not Found" /> | |
<h1>Not Found</h1> | |
<p>You just hit a route that doesn't exist... the sadness.</p> | |
</Layout> | |
) | |
} | |
export default NotFoundPage | |
export const pageQuery = graphql` | |
query { | |
site { | |
siteMetadata { | |
title | |
} | |
} | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment