-
Notifications
You must be signed in to change notification settings - Fork 5
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 #151 from LaurierCS/feature/149/route-404-page
Feature/149/route 404 page
- Loading branch information
Showing
4 changed files
with
48 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
html, body { | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
background-color: #1b1c1f; | ||
} | ||
|
||
#root { | ||
height: 100%; | ||
} | ||
|
||
.error-404-container { | ||
min-height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
color: #ffffff; | ||
} | ||
|
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,23 @@ | ||
import { Link } from "react-router-dom"; | ||
import { Button } from "@mantine/core"; | ||
import "./Error404.css"; | ||
|
||
const Error404 = () => { | ||
return ( | ||
<div className="error-404-container"> | ||
<h1>404 Not Found</h1> | ||
<p>This is not the page you are looking for</p> | ||
<Link to="/" style={{ textDecoration: "none" }}> | ||
<Button | ||
variant="gradient" | ||
gradient={{ from: "indigo", to: "cyan" }} | ||
style={{ marginTop: "20px", marginBottom: "20px", marginLeft: "auto", marginRight: "auto", display: "block" }} | ||
> | ||
Come Home ❤️ | ||
</Button> | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Error404; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Landing from "./Landing/Landing"; | ||
import Login from "./Admin/Login/Login"; | ||
import AdminPage from "./Admin/AdminPage"; | ||
|
||
export { Landing, Login, AdminPage }; | ||
import Error404 from "./Error404/Error404"; | ||
export { Landing, Login, AdminPage, Error404 }; |
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