Skip to content

Commit c97412f

Browse files
404 page added
1 parent fad380a commit c97412f

File tree

4 files changed

+75
-1
lines changed

4 files changed

+75
-1
lines changed

src/App.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@ import HomePage from "./RouterPages/HomePage";
66
import ScrollToTop from "./components/ScrollToTop";
77
import TeamPage from "./RouterPages/TeamPage";
88
import Announcement from "./RouterPages/Announcement";
9+
import NotFound from "./RouterPages/NotFound404";
910
class App extends Component {
1011
render() {
1112
return (
1213
<Router>
1314
<ScrollToTop />
1415
<div className="App">
1516
<Switch>
16-
<Route path="/" component={HomePage} exact />
17+
<Route path="/" component={HomePage} exact />
1718
<Route path="/AndroidClub" component={HomePage} exact />
1819
<Route path="/AndroidClub/Team" component={TeamPage} />
1920
<Route path="/AndroidClub/Events" component={Event} />
2021
<Route path="/AndroidClub/ANNOUNCEMENT" component={Announcement} />
22+
<Route component={NotFound} />
2123
</Switch>
2224
</div>
2325
</Router>

src/INFOSECTION/404style.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#waterP{
2+
position: relative;
3+
display: flex;
4+
align-items: center;
5+
justify-content: center;
6+
min-height: 100vh;
7+
width: 100%;
8+
overflow: hidden;
9+
background-color: #000;
10+
}
11+
12+
13+
#waterP h2{
14+
color: #fff;
15+
16+
font-size: 6em;
17+
position: absolute;
18+
}
19+
20+
#waterP h2:nth-child(1){
21+
color: transparent;
22+
-webkit-text-stroke: 2px #20DEA0;
23+
}
24+
25+
#waterP h2:nth-child(2) {
26+
color: #20DEA0;
27+
-webkit-text-stroke: 2px #20DEA0;
28+
animation: animate 2s ease-in-out infinite;
29+
}
30+
31+
@keyframes animate{
32+
33+
0%,100%{
34+
clip-path: polygon(0% 45%,15% 44%,32% 50%,54% 60%,70% 61%,84% 59%,100% 52%,100% 100%,0% 100%);
35+
}
36+
50%{
37+
clip-path: polygon(0% 60%,16% 65%,34% 66%,51% 62%,67% 50%,84% 45%,100% 46%,100% 100%, 0% 100%);
38+
}
39+
}

src/Images/wave.svg

Lines changed: 16 additions & 0 deletions
Loading

src/RouterPages/NotFound404.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React, { Component } from "react";
2+
import "../INFOSECTION/404style.css";
3+
4+
class NotFound extends Component {
5+
6+
render() {
7+
return (
8+
<>
9+
<div id="waterP">
10+
<h2> PAGE NOT FOUND </h2>
11+
<h2> PAGE NOT FOUND </h2>
12+
</div>
13+
</>
14+
);
15+
}
16+
}
17+
export default NotFound;

0 commit comments

Comments
 (0)