File tree Expand file tree Collapse file tree 5 files changed +78
-2
lines changed Expand file tree Collapse file tree 5 files changed +78
-2
lines changed Original file line number Diff line number Diff line change 80
80
"devDependencies" : {
81
81
"gh-pages" : " ^3.1.0"
82
82
}
83
-
84
- }
83
+ }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Home from "./pages/Home/Home";
6
6
import Footer from "./components/Footer" ;
7
7
import COC from "./pages/COC/COC" ;
8
8
import Team from "./pages/Team/Team" ;
9
+ import NotFoundPage from "./components/NotFoundPage/NotFound" ;
9
10
10
11
const App = ( ) => {
11
12
return (
@@ -30,6 +31,9 @@ const App = () => {
30
31
< Route exact path = "/" >
31
32
< Home />
32
33
</ Route >
34
+ < Route exact path = "*" >
35
+ < NotFoundPage />
36
+ </ Route >
33
37
</ Switch >
34
38
</ CSSTransition >
35
39
</ TransitionGroup >
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import { Link } from "react-router-dom" ;
3
+ import { Container } from "react-bootstrap" ;
4
+
5
+ const NotFound = ( ) => {
6
+ return (
7
+ < React . Fragment >
8
+ < Container fluid >
9
+ < Container >
10
+ < div className = "main-content mx-auto" id = "not-found-content" >
11
+ < h2 > 404</ h2 >
12
+ < h4 > Oops! Page Not Found</ h4 >
13
+ < p >
14
+ The page you are looking for does not exist. You may have mistyped
15
+ the address or the page may have moved.
16
+ </ p >
17
+ < Link to = "/" > Back to Home Page</ Link >
18
+ </ div >
19
+ </ Container >
20
+ </ Container >
21
+ </ React . Fragment >
22
+ ) ;
23
+ } ;
24
+
25
+ export default NotFound ;
Original file line number Diff line number Diff line change
1
+ #not-found-content {
2
+ max-width : 600px ;
3
+ text-align : center ;
4
+ margin-bottom : 100px ;
5
+
6
+ h2 {
7
+ font-size : 18vw ;
8
+ color : $primary-blue ;
9
+ line-height : 1em ;
10
+ }
11
+ h4 {
12
+ position : relative ;
13
+ font-size : 1.5em ;
14
+ margin-bottom : 15px ;
15
+ color : $black ;
16
+ font-weight : 300 ;
17
+ display : inline-block ;
18
+ }
19
+
20
+ p {
21
+ color : $github-button-black ;
22
+ font-size : 1.2em ;
23
+ }
24
+ a {
25
+ border-bottom : 3px solid $primary-blue ;
26
+ color : $primary-blue ;
27
+ display : inline-block ;
28
+ font-size : 18px ;
29
+ font-weight : 600 ;
30
+ margin : 5px ;
31
+ text-decoration : none ;
32
+ transition : all 0.3s ease ;
33
+ & :hover {
34
+ border-bottom : 3px solid $link-blue ;
35
+ color : $link-blue ;
36
+ }
37
+ }
38
+ @media (max-width : 600px ) {
39
+ margin-bottom : 50px ;
40
+ p {
41
+ font-size : 1em ;
42
+ }
43
+ a {
44
+ margin-top : 0px ;
45
+ }
46
+ }
47
+ }
Original file line number Diff line number Diff line change 11
11
@import " ./components/Twitter/Twitter.scss" ;
12
12
@import " ./components/Footer/Footer.scss" ;
13
13
@import " ./pages/COC/COC.scss" ;
14
+ @import " ./components/NotFoundPage/NotFound.scss" ;
You can’t perform that action at this time.
0 commit comments