Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #97 from meenarh/#84-Implement-Error-Page
Browse files Browse the repository at this point in the history
Implements the design for the 404 page
  • Loading branch information
kaxada authored Oct 12, 2023
2 parents e1a5b99 + 890e00d commit 1e5a967
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 57 deletions.
52 changes: 0 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added src/assets/images/Robot-Parts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Vector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions src/assets/styles/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
@import url("https://fonts.cdnfonts.com/css/poppins");

.footer {
background-color: #fff;
text-align: center;
}

.top {
background-color: #fff;
text-align: center;
padding: 40px;
}

.top img {
text-align: center;
margin: auto;
padding: auto;
width: 300px;
height: 150px;
}

.top h2 {
font-family: "Poppins", sans-serif;
padding: 10px;
font-style: normal;
font-weight: 600;
font-size: 32px;
line-height: 48px;
color: #000000;
}

.top p {
font-family: "Poppins", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 30px;
padding: 10px;
padding-bottom: 50px;
text-align: center;
color: #000000;
}

.top button {
margin-top: 60px;
align-items: center;
padding: 18px 32px;
gap: 8px;
width: 305px;
height: 60px;
background: #d61b5e;
color: #fff;
border-radius: 4px;
}
23 changes: 18 additions & 5 deletions src/pages/ErrorPage/ErrorPage.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
import { Header, Footer } from "../../layouts";
import { Footer } from "../../layouts";
import "../../assets/styles/footer.css";
// eslint-disable-next-line import/no-unresolved
import robotparts from "../../assets/images/Robot-Parts.png";
import { Link } from "react-router-dom";

const ErrorPage = () => {
return (
<>
<Header />
<h2>404. An Error Occured</h2>
<div className="footer">
<div className="top">
<h2>Oops! 404 Error</h2>
<p>Please check your internet connection and try again.</p>

<img src={robotparts} alt="robot" />

<Link className="link" to={"/"}>
<button>Go Back</button>
</Link>
</div>

<Footer />
</>
</div>
);
};

Expand Down

0 comments on commit 1e5a967

Please sign in to comment.