Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 404 page styling #322

Merged
merged 1 commit into from
Mar 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 25 additions & 27 deletions src/pages/404.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,31 @@ import React from 'react';
import { Heading, Text, TextContainer } from '../components/shared/Typography';

const NotFoundPage = () => (
<TextContainer>
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
}}
>
<Heading>Whoops - That Page Doesn’t Exist (404)</Heading>
<Text>
Looks like the page you requested either doesn’t exist or has been
moved. If you think this is an error or ended up at this page by
following a link, please{' '}
<a href="https://github.com/gatsbyjs/gatsby/issues/new">
open an issue
</a>{' '}
to let us know.
</Text>
<Text>
{' '}
<a href="https://store.gatsbyjs.org/">Gatsby Store Home page</a>{' '}
<a href="https://www.gatsbyjs.org/">Gatsby Home</a>{' '}
<a href="https://github.com/gatsbyjs/store.gatsbyjs.org">
Gatsby Github Page
</a>{' '}
</Text>
</div>
<TextContainer
style={{
flex: 1,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center'
}}
>
<Heading>Whoops - That Page Doesn’t Exist (404)</Heading>
<Text>
Looks like the page you requested either doesn’t exist or has been moved.
If you think this is an error or ended up at this page by following a
link, please{' '}
<a href="https://github.com/gatsbyjs/gatsby/issues/new">open an issue</a>{' '}
to let us know.
</Text>
<Text>
{' '}
<a href="https://store.gatsbyjs.org/">Gatsby Store Home page</a>{' '}
<a href="https://www.gatsbyjs.org/">Gatsby Home</a>{' '}
<a href="https://github.com/gatsbyjs/store.gatsbyjs.org">
Gatsby Github Page
</a>{' '}
</Text>
</TextContainer>
);

Expand Down