mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-03 10:25:00 +01:00
404 button tweak
This commit is contained in:
parent
697544c23c
commit
5491f42493
@ -12,6 +12,12 @@
|
|||||||
border: .05rem solid rgba($brand-cyan, .75);
|
border: .05rem solid rgba($brand-cyan, .75);
|
||||||
font-size: $font-size-small;
|
font-size: $font-size-small;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
@media (min-width: 30rem) {
|
||||||
|
display: inline-block;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $brand-grey-light;
|
fill: $brand-grey-light;
|
||||||
|
@ -16,6 +16,11 @@
|
|||||||
margin-left: $spacer / 2;
|
margin-left: $spacer / 2;
|
||||||
margin-bottom: $spacer / 2;
|
margin-bottom: $spacer / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
@ -4,6 +4,7 @@ import { Link } from 'gatsby'
|
|||||||
import giphyAPI from 'giphy-js-sdk-core'
|
import giphyAPI from 'giphy-js-sdk-core'
|
||||||
import Layout from '../components/Layout'
|
import Layout from '../components/Layout'
|
||||||
import Content from '../components/atoms/Content'
|
import Content from '../components/atoms/Content'
|
||||||
|
import Button from '../components/atoms/Button'
|
||||||
import './404.scss'
|
import './404.scss'
|
||||||
|
|
||||||
// Famous last words:
|
// Famous last words:
|
||||||
@ -48,15 +49,15 @@ class NotFound extends Component {
|
|||||||
<p>
|
<p>
|
||||||
You might want to check the url, or{' '}
|
You might want to check the url, or{' '}
|
||||||
<Link to={'/'}>go back to the homepage</Link>. Or just check out
|
<Link to={'/'}>go back to the homepage</Link>. Or just check out
|
||||||
some fail gifs, entirely your choice.
|
some cat fail gifs, entirely your choice.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<video className="gif" src={this.state.gif} autoPlay loop />
|
<video className="gif" src={this.state.gif} autoPlay loop />
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a className="gif__action" href="#" onClick={this.handleClick}>
|
<Button onClick={this.handleClick}>
|
||||||
Show me another cat fail gif
|
Show me another cat fail gif
|
||||||
</a>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</Content>
|
</Content>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
.content--404 {
|
.content--404 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
max-width: 35rem;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
|
||||||
.gif {
|
.gif {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -13,11 +16,4 @@
|
|||||||
margin-top: $spacer / 4;
|
margin-top: $spacer / 4;
|
||||||
margin-bottom: $spacer / 2;
|
margin-bottom: $spacer / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gif__action {
|
|
||||||
font-size: $font-size-small;
|
|
||||||
padding: $spacer / 6 $spacer / 2;
|
|
||||||
border: 1px solid $brand-cyan;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user