-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from jatintyagi1/develop
New Features
- Loading branch information
Showing
4 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
import { Box, CircularProgress, Typography } from "@mui/material"; | ||
|
||
const LoadingSpinner = () => { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
height: "100vh", | ||
bgcolor: "#f5f5f5", | ||
}} | ||
> | ||
<CircularProgress size={60} /> | ||
<Typography variant="h6" sx={{ mt: 2, color: "#666" }}> | ||
Loading, please wait... | ||
</Typography> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default LoadingSpinner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import { Box, Typography, Button } from "@mui/material"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
const NotFoundPage = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<Box | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
height: "100vh", | ||
bgcolor: "#f5f5f5", // Light background color | ||
textAlign: "center", | ||
px: 2, | ||
}} | ||
> | ||
<Typography variant="h1" sx={{ fontSize: "96px", fontWeight: "bold", color: "#1976d2" }}> | ||
404 | ||
</Typography> | ||
<Typography variant="h6" sx={{ mb: 2, color: "#666" }}> | ||
Oops! The page you are looking for doesn’t exist. | ||
</Typography> | ||
<Button | ||
variant="contained" | ||
color="primary" | ||
onClick={() => navigate("/")} | ||
sx={{ mt: 2 }} | ||
> | ||
Go Back to Home | ||
</Button> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default NotFoundPage; |