site/src/pages/404.js
2020-03-21 20:41:52 +03:00

20 lines
656 B
JavaScript

import React from "react"
import Layout from "../components/layout"
import { FormattedMessage, useIntl, injectIntl } from "gatsby-plugin-intl"
import SEO from "../components/seo"
const NotFoundPage = () => {
const intl = useIntl()
const lang = intl.locale
return(
<Layout>
<SEO lang={lang} title={intl.formatMessage({ id: "title" })} />
<div style={{minHeight: `95vh`}}>
<h1 style={{textAlign: `center`, paddingTop: `300px`}}><FormattedMessage id="notfound.header"/></h1>
<p style={{textAlign: `center`}}><FormattedMessage id="notfound.description"/></p>
</div>
</Layout>
)}
export default injectIntl(NotFoundPage)