From 6e60e79f528e6075fdd89bceb559dc38514e63c6 Mon Sep 17 00:00:00 2001 From: Levi Thomason Date: Mon, 19 Sep 2016 18:36:18 -0700 Subject: [PATCH] docs(PageNotFound): fix layout and embed atari (#515) docs(PageNotFound): fix layout and embed atari --- docs/app/Views/PageNotFound.js | 106 +++++++++++++++------------------ 1 file changed, 47 insertions(+), 59 deletions(-) diff --git a/docs/app/Views/PageNotFound.js b/docs/app/Views/PageNotFound.js index 47f92cc3b9..c9e4b20fd9 100644 --- a/docs/app/Views/PageNotFound.js +++ b/docs/app/Views/PageNotFound.js @@ -1,61 +1,49 @@ -import _ from 'lodash' -import React, { Component } from 'react' - -import { Button, Header, Loader } from 'stardust' - -const containerStyle = { - position: 'absolute', - top: 0, - bottom: 0, - left: 0, - right: 0, - height: '100vh', - zIndex: 3000, -} - -const textStyle = { - position: 'absolute', - padding: '1em', - top: 0, - left: 0, - right: 0, - backgroundImage: 'linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2 ))', - zIndex: 4000, -} - -const imageStyle = { - position: 'absolute', - backgroundSize: 'cover', - width: '100%', - height: '100%', - zIndex: 2000, -} - -// we use slightly random image sizes to ensure we get a new image from unsplash.it -const getImageUrl = () => `url(//unsplash.it/${_.random(1500, 1600)}/${_.random(1100, 1200)}})` - -class PageNotFound extends Component { - state = { backgroundImage: getImageUrl() } - - getNewImage = () => this.setState({ backgroundImage: getImageUrl() }) - - render() { - const { backgroundImage } = this.state - return ( -
-
-
- Couldn't find that, but check this out: -
- -
-
- -
- ) - } -} +import React from 'react' +import { Grid, Segment, Header, Icon } from 'stardust' + +const PageNotFound = () => ( + + + +
+ + 404 + + How about some good old Atari? + +
+
+
+ + + + + + + + + + + + +
+) export default PageNotFound