-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
157 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Img from 'gatsby-image' | ||
import React from 'react' | ||
import { StaticQuery, graphql } from 'gatsby' | ||
|
||
const Image = () => ( | ||
<StaticQuery | ||
query={graphql` | ||
query { | ||
placeholderImage: file(relativePath: { eq: "404.png" }) { | ||
childImageSharp { | ||
fluid(maxWidth: 800) { | ||
...GatsbyImageSharpFluid | ||
} | ||
} | ||
} | ||
} | ||
`} | ||
render={data => <Img fluid={data.placeholderImage.childImageSharp.fluid} />} | ||
/> | ||
) | ||
export default Image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as Image } from './Image' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,51 @@ | ||
import '../styles/app.scss' | ||
|
||
import React from 'react' | ||
import { Link } from 'gatsby' | ||
|
||
import { Layout } from '../components/common/layout' | ||
import Footer from '../components/common/layout/Footer' | ||
import Logo from '../components/common/layout/Logo' | ||
import { Image } from '../components/404' | ||
import { Seo } from '../components/common/seo' | ||
|
||
const NotFoundPage = () => ( | ||
<Layout> | ||
<Seo title='404' /> | ||
<div className='page-404'> | ||
<Seo title='Spring Cloud Data Flow - 404' /> | ||
|
||
<div className='container'> | ||
<div class='layout-basic'> | ||
<h1>NOT FOUND</h1> | ||
<p>You just hit a route that doesn't exist... the sadness.</p> | ||
</div> | ||
<main> | ||
<div className='logo-dataflow'> | ||
<Link to='/'> | ||
<Logo /> | ||
Spring Cloud <strong>Data Flow</strong> | ||
</Link> | ||
</div> | ||
|
||
<Image /> | ||
<h1>Page not found...</h1> | ||
<p>You just land nowhere... the sadness.</p> | ||
|
||
<ul> | ||
<li> | ||
<Link to='/'>Homepage</Link> | ||
</li> | ||
<li> | ||
<Link to='/features/'>Features</Link> | ||
</li> | ||
<li> | ||
<Link to='/docs/'>Documentation</Link> | ||
</li> | ||
<li> | ||
<Link to='/getting-started/'>Getting Started</Link> | ||
</li> | ||
<li> | ||
<Link to='/community/'>Community</Link> | ||
</li> | ||
</ul> | ||
</main> | ||
<Footer /> | ||
</div> | ||
</Layout> | ||
</div> | ||
) | ||
|
||
export default NotFoundPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.page-404 { | ||
.container { | ||
text-align: center; | ||
max-width: 500px; | ||
} | ||
main { | ||
padding: $spring-8points * 8 0; | ||
p { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
h1 { | ||
margin: 0; | ||
padding: 0; | ||
font-size: 20px; | ||
} | ||
ul { | ||
margin: 0; | ||
@include links; | ||
color: #666; | ||
padding: 24px 0; | ||
display: inline-block; | ||
text-align: left; | ||
} | ||
} | ||
.gatsby-image-wrapper { | ||
width: 457px; | ||
margin: 36px auto; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
@import 'getting-started'; | ||
@import 'documentation'; | ||
@import 'home'; | ||
@import '404'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters