-
Notifications
You must be signed in to change notification settings - Fork 14
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 #43 from AaadityaG/404page
Add: 404 page
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 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
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,45 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; // If you're using React Router | ||
|
||
const ErrorPage = () => { | ||
const pageStyle = { | ||
backgroundColor: '#C4A1D4', | ||
minHeight: '100vh', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
padding: '20px', | ||
}; | ||
|
||
const textStyle = { | ||
color: '#010101', | ||
textAlign: 'center', | ||
marginBottom: '20px', | ||
}; | ||
|
||
const buttonStyle = { | ||
marginTop: '50px', | ||
backgroundColor: '#ffe9cc', | ||
color: '#010101', | ||
padding: '10px 20px', | ||
borderRadius: '5px', | ||
textDecoration: 'none', | ||
}; | ||
|
||
const h1Style = { | ||
fontSize: "100px", | ||
} | ||
|
||
return ( | ||
<div style={pageStyle}> | ||
<h1 style={h1Style}>404</h1> | ||
<p style={textStyle}>Sorry, your page is not found!</p> | ||
<Link to="/" style={buttonStyle}> | ||
Go back | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ErrorPage; |