forked from Lissy93/web-check
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds logo asset, adds env var placeholders, adds 404 page
- Loading branch information
Showing
5 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
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
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,64 @@ | ||
|
||
import styled from 'styled-components'; | ||
|
||
import colors from 'styles/colors'; | ||
import Heading from 'components/Form/Heading'; | ||
import Footer from 'components/misc/Footer'; | ||
import Nav from 'components/Form/Nav'; | ||
import Button from 'components/Form/Button'; | ||
import { StyledCard } from 'components/Form/Card'; | ||
|
||
const AboutContainer = styled.div` | ||
width: 95vw; | ||
max-width: 1000px; | ||
margin: 2rem auto; | ||
padding-bottom: 1rem; | ||
header { | ||
margin 1rem 0; | ||
} | ||
a { | ||
color: ${colors.primary}; | ||
} | ||
.im-drink { font-size: 6rem; } | ||
`; | ||
|
||
const HeaderLinkContainer = styled.nav` | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 1rem; | ||
a { | ||
text-decoration: none; | ||
} | ||
`; | ||
|
||
const NotFoundInner = styled(StyledCard)` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin: 1rem; | ||
gap: 0.5rem; | ||
h2 { font-size: 8rem; } | ||
`; | ||
|
||
|
||
const NotFound = (): JSX.Element => { | ||
return ( | ||
<> | ||
<AboutContainer> | ||
<Nav /> | ||
<NotFoundInner> | ||
<Heading as="h2" size="large" color={colors.primary}>404</Heading> | ||
<span className="im-drink">🥴</span> | ||
<Heading as="h3" size="large" color={colors.primary}>Not Found</Heading> | ||
<HeaderLinkContainer> | ||
<a href="/"><Button>Back to Homepage</Button></a> | ||
</HeaderLinkContainer> | ||
<a href="https://github.com/lissy93/web-check">Report Issue</a> | ||
</NotFoundInner> | ||
</AboutContainer> | ||
<Footer isFixed={true} /> | ||
</> | ||
); | ||
}; | ||
|
||
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