mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-03 18:35:00 +01:00
fixes
This commit is contained in:
parent
f1c3e42b75
commit
2f84a3f496
@ -7,7 +7,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns:
|
grid-template-columns:
|
||||||
[full-start] minmax($spacer, 1fr)
|
[full-start] minmax($spacer, 1fr)
|
||||||
[main-start] minmax(0, $screen-sm) [main-end]
|
[main-start] minmax(0, 38rem) [main-end]
|
||||||
minmax($spacer, 1fr) [full-end];
|
minmax($spacer, 1fr) [full-end];
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
|
@ -24,10 +24,6 @@
|
|||||||
padding-top: $spacer * 2;
|
padding-top: $spacer * 2;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
||||||
@media (min-width: 30rem) {
|
|
||||||
padding-bottom: $spacer / 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header__link {
|
.header__link {
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
@ -21,16 +21,14 @@ export default class NotFound extends Component {
|
|||||||
this.getRandomGif()
|
this.getRandomGif()
|
||||||
}
|
}
|
||||||
|
|
||||||
getRandomGif() {
|
async getRandomGif() {
|
||||||
giphyClient
|
try {
|
||||||
.random('gifs', { tag })
|
let response = await giphyClient.random('gifs', { tag })
|
||||||
.then(response => {
|
const gif = response.data.images.original.mp4
|
||||||
const gif = response.data.images.original.mp4
|
this.setState({ gif })
|
||||||
this.setState({ gif })
|
} catch (error) {
|
||||||
})
|
return error
|
||||||
.catch(err => {
|
}
|
||||||
return err
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleClick = e => {
|
handleClick = e => {
|
||||||
@ -44,16 +42,16 @@ export default class NotFound extends Component {
|
|||||||
<h1>Shenanigans, page not found.</h1>
|
<h1>Shenanigans, page not found.</h1>
|
||||||
<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 some
|
<Link to={'/'}>go back to the homepage</Link>. Or just check out some{' '}
|
||||||
cat fail gifs, entirely your choice.
|
{tag} 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>
|
||||||
<Button onClick={this.handleClick}>
|
<Button
|
||||||
Show me another cat fail gif
|
onClick={this.handleClick}
|
||||||
</Button>
|
>{`Get another '${tag}' gif`}</Button>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
)
|
)
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
@import 'variables';
|
@import 'variables';
|
||||||
|
|
||||||
.content--404 {
|
.content {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-width: 35rem;
|
max-width: 35rem;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
|
||||||
.gif {
|
video {
|
||||||
display: inline-block;
|
display: block;
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
box-shadow: 0 3px 5px rgba($brand-main, .15),
|
box-shadow: 0 3px 5px rgba($brand-main, .15),
|
||||||
0 5px 16px rgba($brand-main, .15);
|
0 5px 16px rgba($brand-main, .15);
|
||||||
margin-top: $spacer / 4;
|
margin: $spacer / 4 auto $spacer / 2 auto;
|
||||||
margin-bottom: $spacer / 2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,10 @@
|
|||||||
.projects {
|
.projects {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-gap: $spacer * 6;
|
grid-gap: $spacer * 3;
|
||||||
|
|
||||||
@media (min-width: $screen-md) {
|
@media (min-width: $screen-md) {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
grid-gap: $spacer * 3;
|
|
||||||
max-width: calc(#{$projectImageMaxWidth} + #{$spacer * 2});
|
max-width: calc(#{$projectImageMaxWidth} + #{$spacer * 2});
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: $spacer $spacer * 3;
|
padding: $spacer $spacer * 3;
|
||||||
|
@ -19,14 +19,15 @@
|
|||||||
|
|
||||||
.project__description {
|
.project__description {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
margin-bottom: $spacer * 3;
|
margin-bottom: $spacer * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project__meta {
|
.project__meta {
|
||||||
|
margin-top: -($spacer);
|
||||||
margin-bottom: $spacer * 5;
|
margin-bottom: $spacer * 5;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-gap: $spacer;
|
grid-gap: $spacer * 2;
|
||||||
|
|
||||||
@media (min-width: $screen-sm) {
|
@media (min-width: $screen-sm) {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
|
Loading…
Reference in New Issue
Block a user