diff --git a/src/components/Layout.module.scss b/src/components/Layout.module.scss index f6ee50b..76aa6c0 100644 --- a/src/components/Layout.module.scss +++ b/src/components/Layout.module.scss @@ -7,7 +7,7 @@ display: grid; grid-template-columns: [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]; > * { diff --git a/src/components/organisms/Header.module.scss b/src/components/organisms/Header.module.scss index 62bb371..506c7ad 100644 --- a/src/components/organisms/Header.module.scss +++ b/src/components/organisms/Header.module.scss @@ -24,10 +24,6 @@ padding-top: $spacer * 2; padding-bottom: 0; - @media (min-width: 30rem) { - padding-bottom: $spacer / 2; - } - .header__link { pointer-events: all; width: auto; diff --git a/src/pages/404.jsx b/src/pages/404.jsx index 23bed97..28aa1f9 100644 --- a/src/pages/404.jsx +++ b/src/pages/404.jsx @@ -21,16 +21,14 @@ export default class NotFound extends Component { this.getRandomGif() } - getRandomGif() { - giphyClient - .random('gifs', { tag }) - .then(response => { - const gif = response.data.images.original.mp4 - this.setState({ gif }) - }) - .catch(err => { - return err - }) + async getRandomGif() { + try { + let response = await giphyClient.random('gifs', { tag }) + const gif = response.data.images.original.mp4 + this.setState({ gif }) + } catch (error) { + return error + } } handleClick = e => { @@ -44,16 +42,16 @@ export default class NotFound extends Component {

Shenanigans, page not found.

You might want to check the url, or{' '} - go back to the homepage. Or just check out some - cat fail gifs, entirely your choice. + go back to the homepage. Or just check out some{' '} + {tag} gifs, entirely your choice.