-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install react-snowfall and create a not found page
- Loading branch information
Showing
5 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,17 @@ | ||
import Snowfall from "react-snowfall"; | ||
import "../styles/NotFound.css"; | ||
import HomeButton from "../components/HomeButton"; | ||
|
||
function NotFound() { | ||
return ( | ||
<div className="not-found-page"> | ||
<Snowfall color="white" snowflakeCount={200} /> | ||
<div className="not-found-container"> | ||
<h1>404</h1> | ||
<p>Oops! The page you are looking for does not exist.</p> | ||
<HomeButton /> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.not-found-page { | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: #2c3e50; | ||
font-family: "Georgia", sans-serif; | ||
} | ||
|
||
.not-found-container { | ||
text-align: center; | ||
} | ||
|
||
.not-found-container h1 { | ||
font-size: 6rem; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.not-found-container p { | ||
font-size: 1.5rem; | ||
margin-bottom: 30px; | ||
} |