Skip to content

Commit

Permalink
Improves Page Not Found UX (#9613)
Browse files Browse the repository at this point in the history
* Updates Page Not Found UX with Link

* Adds Link to 404.js

* Updates code indentation

Co-Authored-By: pranshuchittora <pranshuchittora17@gmail.com>

* Updates routes from './' to '/'

Co-Authored-By: pranshuchittora <pranshuchittora17@gmail.com>
  • Loading branch information
pranshuchittora authored and DSchau committed Nov 1, 2018
1 parent 550121d commit 53639f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions www/src/pages/404.js
@@ -1,13 +1,20 @@
import React from "react"
import Container from "../components/container"
import Layout from "../components/layout"
import { Link } from "gatsby"

class FourOhFour extends React.Component {
render() {
return (
<Layout location={this.props.location}>
<Container>
<h1>Page not found</h1>
<p>
Oops! The page you are looking for has been removed or relocated.
</p>
<Link to="/">
<p>Go Back</p>
</Link>
</Container>
</Layout>
)
Expand Down

0 comments on commit 53639f1

Please sign in to comment.