-
Notifications
You must be signed in to change notification settings - Fork 1
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 #182 from alexlee-dev/develop
Small fixes to documentation site
- Loading branch information
Showing
4 changed files
with
70 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
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,63 @@ | ||
import React from 'react' | ||
import { Box, Button, Divider, Typography } from '@material-ui/core' | ||
import styled from 'styled-components' | ||
import Helmet from '../components/helmet' | ||
import HomeIcon from '@material-ui/icons/Home' | ||
import NotFoundImage from '../static/dog404.png' | ||
import { Link } from 'gatsby' | ||
|
||
const StyledTitle = styled(Typography)` | ||
font-size: 2rem; | ||
` | ||
|
||
const StyledSubTitle = styled(Typography)` | ||
margin-top: 20px; | ||
` | ||
|
||
const StyledDivider = styled(Divider)` | ||
margin-bottom: 25px; | ||
margin-top: 25px; | ||
` | ||
|
||
const StyledImage = styled.img` | ||
width: 50%; | ||
` | ||
|
||
const StyledImageContainer = styled(Box)` | ||
align-items: center; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
` | ||
|
||
const StyledLink = styled(Link)` | ||
text-decoration: none; | ||
` | ||
|
||
const NotFoundPage = () => { | ||
return ( | ||
<Box> | ||
<Helmet title="Page Not Found" /> | ||
<Box> | ||
<StyledTitle variant="h2">Page Not Found</StyledTitle> | ||
<StyledImageContainer> | ||
<StyledImage alt="Page Not Found" src={NotFoundImage} /> | ||
</StyledImageContainer> | ||
<StyledSubTitle> | ||
Your dog is cute but honestly a menace. Where are my shoes? Where is | ||
my graduation certificate? Where is the chocolate cake I baked for my | ||
Aunt’s birthday? And why did you take your dog to the vet on that same | ||
Thursday?! | ||
</StyledSubTitle> | ||
<StyledDivider /> | ||
<StyledLink> | ||
<Button color="default" startIcon={<HomeIcon />} variant="contained"> | ||
Home | ||
</Button> | ||
</StyledLink> | ||
</Box> | ||
</Box> | ||
) | ||
} | ||
|
||
export default NotFoundPage |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.