-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix:404 page * Changed href to Link and updated imports acc. to standards --------- Co-authored-by: Nilesh Gupta <[email protected]>
- Loading branch information
Showing
2 changed files
with
189 additions
and
39 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,61 @@ | ||
// React + Web3 Essentials | ||
import React from "react"; | ||
import { Link } from 'react-router-dom'; | ||
|
||
// External Packages | ||
import styled from 'styled-components'; | ||
|
||
// Internal Configs | ||
import GLOBALS from "config/Globals"; | ||
|
||
const NotFoundPage: React.FC = () => { | ||
return ( | ||
<NotFoundContainer> | ||
<NotFoundContent> | ||
<NotFoundTitle> Page Not Found</NotFoundTitle> | ||
<NotFoundText>The page you are looking for doesn't exist or has been moved.</NotFoundText> | ||
<HomeLink to="/channels">Go to Home</HomeLink> | ||
</NotFoundContent> | ||
</NotFoundContainer> | ||
); | ||
}; | ||
|
||
export default NotFoundPage; | ||
|
||
const NotFoundContainer = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: calc(100vh - ${GLOBALS.CONSTANTS.HEADER_HEIGHT}px); | ||
background: ${(props) => props.theme.default.bg}; | ||
box-shadow: ${GLOBALS.ADJUSTMENTS.MODULE_BOX_SHADOW}; | ||
border-radius: ${GLOBALS.ADJUSTMENTS.RADIUS.LARGE}; | ||
margin: ${GLOBALS.ADJUSTMENTS.MARGIN.MINI_MODULES.DESKTOP}; | ||
padding: 20px; | ||
box-sizing: border-box; | ||
`; | ||
|
||
const NotFoundContent = styled.div` | ||
text-align: center; | ||
`; | ||
|
||
const NotFoundTitle = styled.h1` | ||
color: black; | ||
font-size: 2.5rem; | ||
margin-bottom: 1rem; | ||
`; | ||
|
||
const NotFoundText = styled.p` | ||
color: ${(props) => props.theme.default.text}; | ||
font-size: 1.2rem; | ||
margin-bottom: 1.5rem; | ||
`; | ||
|
||
const HomeLink = styled(Link)` | ||
color: ${(props) => props.theme.default.link}; | ||
font-size: 1rem; | ||
text-decoration: none; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
`; |
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