-
Notifications
You must be signed in to change notification settings - Fork 16
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 #39 from RutikKulkarni/frontend
Design responsive 404 page and update userPersistence utility for log…
- Loading branch information
Showing
7 changed files
with
165 additions
and
4 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,29 @@ | ||
import React from "react"; | ||
import styles from "./Page404.module.css"; | ||
import { Link } from "react-router-dom"; | ||
import NotFoundImage from "../../assets/svg/404.svg"; | ||
import { IoArrowForwardCircleOutline } from "react-icons/io5"; | ||
|
||
const NotFound = () => { | ||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.content}> | ||
<img src={NotFoundImage} alt="404 Not Found" className={styles.image} /> | ||
<h1 className={styles.title}>404</h1> | ||
<p className={styles.subtitle}>Oops! Page not found</p> | ||
<p className={styles.description}> | ||
Sorry, the page you are looking for might be in another castle. | ||
<br></br>Please check the URL or go back to the home. | ||
</p> | ||
<Link to="/"> | ||
<button variant="contained" className={styles.joinButton}> | ||
Go to Homepage{" "} | ||
<IoArrowForwardCircleOutline className={styles.arrowIcon} /> | ||
</button> | ||
</Link> | ||
</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,118 @@ | ||
.container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
background: transparent; | ||
text-align: center; | ||
color: var(--secondary-color); | ||
padding: 20px; | ||
} | ||
|
||
.image { | ||
width: 100%; | ||
max-width: 200px; | ||
height: auto; | ||
margin: 0 auto 20px; | ||
} | ||
|
||
.title { | ||
font-size: 10rem; | ||
margin: 0; | ||
color: var(--text-color); | ||
} | ||
|
||
.subtitle { | ||
font-size: 2rem; | ||
font-weight: 600; | ||
margin: 0 0 20px 0; | ||
color: var(--text-color); | ||
} | ||
|
||
.description { | ||
font-size: 1.2rem; | ||
margin-bottom: 30px; | ||
color: var(--text-color); | ||
} | ||
|
||
.joinButton { | ||
padding: 10px 20px; | ||
padding-left: 1.2em; | ||
font-size: 17px; | ||
font-weight: 500; | ||
border: none; | ||
background-color: var(--primary-color); | ||
color: #ffffff; | ||
border-radius: 10px; | ||
cursor: pointer; | ||
margin-top: 30px; | ||
display: inline-flex; | ||
align-items: center; | ||
font-family: Poppins; | ||
transition: background-color 0.3s, padding-left 0.3s; | ||
} | ||
|
||
.joinButton:hover { | ||
background: darken(10%); | ||
padding-left: 1.5em; | ||
} | ||
|
||
.arrowIcon { | ||
margin-left: 10px; | ||
font-size: 30px; | ||
transition: margin-left 0.3s; | ||
} | ||
|
||
.joinButton:hover .arrowIcon { | ||
margin-left: 15px; | ||
} | ||
|
||
/* Media query for max-width: 800px */ | ||
@media (max-width: 800px) { | ||
.title { | ||
font-size: 6rem; | ||
} | ||
|
||
.subtitle { | ||
font-size: 1.5rem; | ||
} | ||
|
||
.description { | ||
font-size: 1rem; | ||
} | ||
|
||
.joinButton { | ||
padding: 8px 16px; | ||
font-size: 15px; | ||
border-radius: 8px; | ||
} | ||
|
||
.arrowIcon { | ||
margin-left: 8px; | ||
} | ||
} | ||
|
||
/* Media query for min-width: 801px and max-width: 1349px */ | ||
@media (min-width: 801px) and (max-width: 1349px) { | ||
.title { | ||
font-size: 4rem; | ||
} | ||
|
||
.subtitle { | ||
font-size: 1.2rem; | ||
} | ||
|
||
.description { | ||
font-size: 0.9rem; | ||
} | ||
|
||
.joinButton { | ||
padding: 9px 18px; | ||
font-size: 16px; | ||
border-radius: 9px; | ||
} | ||
|
||
.arrowIcon { | ||
margin-left: 9px; | ||
} | ||
} |
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