Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit 1e83624

Browse files
committed
Adds route handling and fourOhFour component for 404 handling
1 parent f349b64 commit 1e83624

4 files changed

Lines changed: 27 additions & 0 deletions

File tree

src/scenes/home/404/404.gif

941 KB
Loading

src/scenes/home/404/fourOhFour.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.pageContainer .bg {
2+
position: absolute;
3+
top: 0;
4+
left: 0;
5+
width: 100vw;
6+
height: 100vh;
7+
background-size: cover;
8+
mix-blend-mode: overlay;
9+
}

src/scenes/home/404/fourOhFour.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React, { Component } from 'react';
2+
import Gif from './404.gif';
3+
import styles from './fourOhFour.css';
4+
5+
export default class FourOhFour extends Component {
6+
7+
render() {
8+
return (
9+
<div className={styles.pageContainer}>
10+
<img src={Gif} alt="Gif of a fake tank falling over" />
11+
<h1 className={styles.title}>404</h1>
12+
</div>
13+
);
14+
}
15+
}
16+

src/scenes/home/home.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import styles from './home.css';
1717
import Header from './header/header';
1818
import Landing from './landing/landing';
1919
import Footer from './footer/footer';
20+
import FourOhFour from './404/fourOhFour';
2021
import MentorRequest from './mentorRequest/mentorRequest';
2122
import SquadsNew from './squads/squadsNew/squadsNew';
2223
import CodeSchools from './codeSchools/codeSchools';
@@ -148,6 +149,7 @@ class Home extends Component {
148149
)}
149150
/>
150151
<Route exact path="/about/financial-statements" component={FinancialStatements} />
152+
<Route component={FourOhFour} />
151153
</div>
152154
<Footer />
153155
</div>

0 commit comments

Comments
 (0)