-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Not Found): Add not found page (#10)
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { makeStyles, Typography } from "@material-ui/core"; | ||
import React from "react"; | ||
import { Link } from "react-router-dom"; | ||
|
||
const useStyle = makeStyles(() => ({ | ||
container: { | ||
position: "absolute", | ||
top: "50%", | ||
left: "50%", | ||
transform: "translate(-50%, -50%)", | ||
textAlign: "center" | ||
} | ||
})); | ||
|
||
const NotFound: React.FC = () => { | ||
const classes = useStyle(); | ||
return ( | ||
<div className={classes.container}> | ||
<Typography variant="h1" style={{ fontWeight: "bold" }}> | ||
404 | ||
</Typography> | ||
<Typography variant="h6" gutterBottom> | ||
This page could not be found | ||
</Typography> | ||
<Link to="/">Back to home</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotFound; |
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