Skip to content

Commit

Permalink
Merge pull request #182 from alexlee-dev/develop
Browse files Browse the repository at this point in the history
Small fixes to documentation site
  • Loading branch information
Alex Lee authored Oct 16, 2019
2 parents 4813f40 + f37ea9c commit c559c9c
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 4 deletions.
9 changes: 6 additions & 3 deletions documentation/src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import styled from 'styled-components'

const StyledContainer = styled.div`
flex-grow: 1;
margin-left: 240px;
width: calc(100% - 240px);
`

Expand All @@ -30,10 +29,14 @@ const StyledSearchIconContainer = styled.div`
width: 56px;
`

const StyledAppBar = styled(AppBar)`
margin-left: 240px;
`

const Header = () => {
return (
<StyledContainer>
<AppBar position="static">
<StyledAppBar position="static">
<Toolbar>
<StyledSearchContainer>
<StyledSearchIconContainer>
Expand All @@ -49,7 +52,7 @@ const Header = () => {
/>
</StyledSearchContainer>
</Toolbar>
</AppBar>
</StyledAppBar>
</StyledContainer>
)
}
Expand Down
2 changes: 1 addition & 1 deletion documentation/src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function HTML(props) {
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
href="https://raw.githack.com/alexlee-dev/pickitt/rewrite/documentation/prism.css"
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-tomorrow.min.css"
rel="stylesheet"
/>
{props.headComponents}
Expand Down
63 changes: 63 additions & 0 deletions documentation/src/pages/404.js
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
Binary file added documentation/src/static/dog404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c559c9c

Please sign in to comment.