diff --git a/src/pages/404.jsx b/src/pages/404.jsx index 967e230d..8eb0b92a 100755 --- a/src/pages/404.jsx +++ b/src/pages/404.jsx @@ -19,6 +19,8 @@ const tag = 'ocean' export default class NotFoundPage extends Component { state = { gif: '' } + browser = typeof window !== 'undefined' && window + static propTypes = { location: PropTypes.object } @@ -45,27 +47,31 @@ export default class NotFoundPage extends Component { render() { return ( <> - - - -
-

Page not found.

-

- You just hit a route that doesn't exist... the sadness. - Check your url, go back to the homepage, or - check out some {tag} gifs, entirely your choice. -

+ {this.browser && ( + <> + + + +
+

Page not found.

+

+ You just hit a route that doesn't exist... the sadness. + Check your url, go back to the homepage, + or check out some {tag} gifs, entirely your choice. +

-
-
-
+
+ +
+
+
+
+ + )} ) }