File tree Expand file tree Collapse file tree 2 files changed +42
-13
lines changed Expand file tree Collapse file tree 2 files changed +42
-13
lines changed Original file line number Diff line number Diff line change 1- import * as React from "react"
1+ import * as React from "react" ;
2+ import { graphql } from 'gatsby' ;
3+ import { Trans } from "gatsby-plugin-react-i18next" ;
4+ import Layout from "../components/layout" ;
5+ import SEO from "../components/seo" ;
6+ import SiteBorderStyles from "../styles/SiteBorderStyles" ;
27
3- import Layout from "../components/layout"
4- import SEO from "../components/seo"
8+ export default function NotFoundPage ( ) {
9+ return (
10+ < Layout >
11+ < SEO title = "404" />
12+ < SiteBorderStyles >
13+ < section >
14+ < div className = "text-left md:text-center py-4 md:pt-16 md:pb-8 lg:pt-24 md:pb-8" >
15+ < h2 className = "text-3xl lg:text-4xl" >
16+ < span className = "highlight-red" >
17+ 404
18+ </ span >
19+ < Trans > Page Not Found</ Trans >
20+ </ h2 >
21+ < p className = "text-xl lg:text-2xl my-4" style = { { color : `var(--darkgrey)` } } >
22+ < Trans > You just hit a route that doesn't exist... the sadness.</ Trans >
23+ </ p >
24+ </ div >
25+ </ section >
26+ </ SiteBorderStyles >
27+ </ Layout >
28+ )
29+ }
530
6- const NotFoundPage = ( ) => (
7- < Layout >
8- < SEO title = "404: Not found" />
9- < h1 > 404: Not Found</ h1 >
10- < p > You just hit a route that doesn't exist... the sadness.</ p >
11- </ Layout >
12- )
13-
14- export default NotFoundPage
31+ export const query = graphql `
32+ query($language: String!) {
33+ locales: allLocale(filter: {language: {eq: $language}}) {
34+ edges {
35+ node {
36+ ns
37+ data
38+ language
39+ }
40+ }
41+ }
42+ }
43+ ` ;
Original file line number Diff line number Diff line change 11import * as React from "react"
22import { useTranslation } from 'gatsby-plugin-react-i18next' ;
3-
3+ import { graphql } from 'gatsby' ;
44import Layout from "../components/layout"
55import SEO from "../components/seo"
66import Hero from "../components/hero" ;
You can’t perform that action at this time.
0 commit comments