Skip to content

Commit eafe8cb

Browse files
feat: 404 page
1 parent 45f18f8 commit eafe8cb

3 files changed

Lines changed: 36 additions & 5 deletions

File tree

frontend/src/Routes.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import HomePage from "./pages/homePage";
44
import Domains from "./pages/Domains";
55
import { Route, Switch } from "react-router-dom";
66
import Projects from "./pages/Projects";
7-
import Registration from "./pages/Registration";
8-
import GoogleRedirect from "./pages/GoogleRedirect";
9-
import Meeting from "./pages/Meeting";
7+
// import Registration from "./pages/Registration";
8+
// import GoogleRedirect from "./pages/GoogleRedirect";
9+
// import Meeting from "./pages/Meeting";
1010
import { updateAccessToken } from "./utils/updateAccessToken";
1111
import useTokenStore from "./store/tokenStore";
12+
import NotFound from "./pages/NotFound";
1213

1314
const REFRESH_TIME_MS = 50 * 60 * 1000;
1415
const Routes: React.FC = () => {
@@ -31,9 +32,10 @@ const Routes: React.FC = () => {
3132
<Route exact path="/" component={HomePage} />
3233
<Route exact path="/team" component={Domains} />
3334
<Route exact path="/projects" component={Projects} />
34-
<Route exact path="/registration" component={Registration} />
35+
<Route path="/" component={NotFound} />
36+
{/* <Route exact path="/registration" component={Registration} />
3537
<Route path="/auth/google" component={GoogleRedirect} />
36-
<Route exact path="/events" component={Meeting} />
38+
<Route exact path="/events" component={Meeting} /> */}
3739
</Switch>
3840
</div>
3941
);

frontend/src/pages/Domains/teamlist.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,12 @@ export const teamlist = [
77
github: "https://www.github.com/Aksh-Bansal-dev",
88
email: "20bcs021@iiitdmj.ac.in",
99
},
10+
{
11+
name: "Priyansh Garg",
12+
team: "coordinator",
13+
profileImg: "priyansh.jpeg",
14+
linkedIn: "https://www.linkedin.com/in/priyansh3133/",
15+
github: "https://www.github.com/garg3133",
16+
email: "2018196@iiitdmj.ac.in",
17+
},
1018
];
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from "react";
2+
import { createStyles, makeStyles } from "@material-ui/core/styles";
3+
4+
const useStyles = makeStyles(() =>
5+
createStyles({
6+
root: {
7+
height: "75vh",
8+
color: "white",
9+
fontSize: "3rem",
10+
textAlign: "center",
11+
paddingTop: "25vh",
12+
},
13+
})
14+
);
15+
16+
const NotFound: React.FC = () => {
17+
const classes = useStyles();
18+
return <div className={classes.root}>404. Page not found!</div>;
19+
};
20+
21+
export default NotFound;

0 commit comments

Comments
 (0)