-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2f37e6
commit c09f6c3
Showing
2 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
import React from 'react'; | ||
import { Link } from 'gatsby'; | ||
import Layout from '../components/Layout'; | ||
import SEO from '../components/Seo'; | ||
import Section from '../components/Section'; | ||
import SkewedContainer from '../components/SkewedContainer'; | ||
import Header from '../components/Header'; | ||
import Footer from '../components/Footer'; | ||
import styles from './404.module.scss'; | ||
|
||
const NotFoundPage = () => ( | ||
<Layout> | ||
<> | ||
<SEO title="404: Not found" /> | ||
<Section backgroundBanner className={styles.backgroundBanner}> | ||
<div className={styles.messageContainer}> | ||
<h1 className={styles.header}>404</h1> | ||
<p> | ||
This page does not exist. Check the URL and try again, or{' '} | ||
<Link to="/">go home</Link>. | ||
</p> | ||
<div className={styles.layout}> | ||
<Header /> | ||
<div className={styles.contentContainer}> | ||
<SkewedContainer className={styles.content}> | ||
<h1 className={styles.header}>404</h1> | ||
<p> | ||
This page does not exist. Check the URL and try again, or{' '} | ||
<Link to="/">go home</Link>. | ||
</p> | ||
</SkewedContainer> | ||
</div> | ||
</Section> | ||
</Layout> | ||
<Footer /> | ||
</div> | ||
</> | ||
); | ||
|
||
export default NotFoundPage; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
.messageContainer { | ||
margin-top: 5rem; | ||
.layout { | ||
display: grid; | ||
grid-template-rows: auto 1fr auto; | ||
min-height: 100vh; | ||
} | ||
|
||
.contentContainer { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
} | ||
|
||
.header { | ||
font-family: var(--secondary-font-family); | ||
font-size: 9rem; | ||
font-weight: normal; | ||
line-height: 1; | ||
} | ||
.backgroundBanner { | ||
height: 130%; | ||
top: 5.5rem; | ||
|
||
.content { | ||
font-size: 1.125rem; | ||
padding: 8rem 0; | ||
z-index: -1; | ||
} |