Skip to content

Commit 182fa34

Browse files
committed
Add site margins to 404 page
1 parent e6e3638 commit 182fa34

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/pages/404.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import { graphql } from "gatsby"
44
import Layout from "../components/layout"
55
import Seo from "../components/seo"
66
import { initialiseDisplayModeFromLocalStorage } from "../components/util/dark-mode-helper"
7+
import styled from "styled-components"
8+
9+
const Message = styled.div`
10+
margin-left: var(--site-margins);
11+
margin-right: var(--site-margins);
12+
`
713

814
const NotFoundPage = ({ data, location }) => {
915
const siteTitle = data.site.siteMetadata.title
@@ -23,8 +29,10 @@ const NotFoundPage = ({ data, location }) => {
2329

2430
return (
2531
<Layout location={location} title={siteTitle}>
32+
<Message>
2633
<h1>404: Not Found</h1>
27-
<p>{message}</p>
34+
<p>{message}</p>
35+
</Message>
2836
</Layout>
2937
)
3038
}

0 commit comments

Comments
 (0)