File tree Expand file tree Collapse file tree 4 files changed +38
-1
lines changed Expand file tree Collapse file tree 4 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { Router } from '@reach/router' ;
3
3
import { GlobalStyle } from './globalStyle' ;
4
-
5
4
import Header from './containers/Header' ;
6
5
import Home from './containers/Home' ;
7
6
import Movie from './containers/Movie' ;
7
+ import NotFound from './containers/NotFound' ;
8
8
9
9
const App = ( ) => {
10
10
return (
@@ -13,6 +13,7 @@ const App = () => {
13
13
< Router >
14
14
< Home path = '/' />
15
15
< Movie path = '/movie/:movieID/*' />
16
+ < NotFound default />
16
17
</ Router >
17
18
< GlobalStyle />
18
19
</ >
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { Container , Heading , Text } from './styles' ;
3
+
4
+ const NotFound = ( ) => {
5
+ return (
6
+ < Container >
7
+ < Heading > 404 - Page Not Found</ Heading >
8
+ < Text > Sorry, the page you are looking for does not exist.</ Text >
9
+ </ Container >
10
+ ) ;
11
+ } ;
12
+
13
+ export default NotFound ;
Original file line number Diff line number Diff line change
1
+ import styled from 'styled-components' ;
2
+
3
+ export const Container = styled . div `
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: center;
7
+ align-items: center;
8
+ height: 90vh;
9
+ ` ;
10
+
11
+ export const Heading = styled . h1 `
12
+ font-size: 4rem;
13
+ font-weight: 700;
14
+ color: var(--secondaryColor);
15
+ margin-bottom: 1rem;
16
+ ` ;
17
+
18
+ export const Text = styled . p `
19
+ font-size: 1.5rem;
20
+ color: var(--lightGrey);
21
+ margin-bottom: 2rem;
22
+ ` ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export const GlobalStyle = createGlobalStyle`
16
16
margin: 0;
17
17
padding: 0;
18
18
box-sizing: border-box;
19
+ background-color: rgb(242, 242, 242);
19
20
}
20
21
21
22
a {
You can’t perform that action at this time.
0 commit comments