File tree Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -3,31 +3,35 @@ import { graphql } from 'gatsby';
3
3
import { Trans } from "gatsby-plugin-react-i18next" ;
4
4
import Layout from "../components/layout" ;
5
5
import Seo from "../components/seo" ;
6
- import SiteBorderStyles from "../styles/SiteBorderStyles " ;
6
+ import styled from "styled-components " ;
7
7
8
8
export default function NotFoundPage ( ) {
9
9
return (
10
10
< Layout >
11
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 >
12
+ < FourOhFourStyles >
13
+ < div className = "text-left md:text-center py-4 md:pt-16 md:pb-8 lg:pt-24 md:pb-8" >
14
+ < h2 className = "text-3xl lg:text-4xl" >
15
+ < span className = "highlight-red" >
16
+ 404
17
+ </ span >
18
+ < Trans > Page Not Found</ Trans >
19
+ </ h2 >
20
+ < p className = "text-xl lg:text-2xl my-4" style = { { color : `var(--darkgrey)` } } >
21
+ < Trans > You just hit a route that doesn't exist... the sadness.</ Trans >
22
+ </ p >
23
+ </ div >
24
+ </ FourOhFourStyles >
27
25
</ Layout >
28
26
)
29
27
}
30
28
29
+ const FourOhFourStyles = styled . div `
30
+ height: calc(100vh - 56px);
31
+ display: grid;
32
+ place-content: center;
33
+ `
34
+
31
35
export const query = graphql `
32
36
query($language: String!) {
33
37
locales: allLocale(filter: {language: {eq: $language}}) {
You can’t perform that action at this time.
0 commit comments