-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add UI state to docs website
- Loading branch information
1 parent
b8c1576
commit 30b013a
Showing
9 changed files
with
39 additions
and
50 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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import React from 'react' | ||
import Layout from './src/components/layout' | ||
require('prismjs/themes/prism-tomorrow.css') | ||
require('./src/main.css') | ||
|
||
/** | ||
* Implement Gatsby's Browser APIs in this file. | ||
* | ||
* See: https://www.gatsbyjs.org/docs/browser-apis/ | ||
*/ | ||
|
||
// You can delete this file if you're not using it | ||
export const wrapPageElement = ({ element, props }) => { | ||
return <Layout {...props} >{element}</Layout> | ||
} |
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,6 @@ | ||
import React from 'react' | ||
import Layout from './src/components/layout' | ||
|
||
export const wrapPageElement = ({ element, props }) => { | ||
return <Layout {...props} >{element}</Layout> | ||
} |
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
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
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,19 +1,12 @@ | ||
import React from 'react' | ||
|
||
import Layout from 'src/components/Layout' | ||
import SEO from 'src/components/seo' | ||
|
||
import {ThemeProvider} from 'styled-components' | ||
import {theme} from 'src/theme' | ||
|
||
const NotFoundPage = () => ( | ||
<ThemeProvider theme={theme}> | ||
<Layout> | ||
<SEO title='404: Not found' /> | ||
<h1>NOT FOUND</h1> | ||
<p>You just hit a route that doesn't exist... the sadness.</p> | ||
</Layout> | ||
</ThemeProvider> | ||
<React.Fragment> | ||
<SEO title='404: Not found' /> | ||
<h1>NOT FOUND</h1> | ||
<p>You just hit a route that doesn't exist... the sadness.</p> | ||
</React.Fragment> | ||
) | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
import React from 'react' | ||
import Layout from 'src/components/Layout' | ||
import Features from 'src/components/home/Features' | ||
import SEO from 'src/components/seo' | ||
import Hero from 'src/components/home/Hero' | ||
import DarkBlock from 'src/components/home/DarkBlock' | ||
import Footer from 'src/components/home/footer' | ||
import {ThemeProvider} from 'styled-components' | ||
import {theme} from 'src/theme' | ||
|
||
const IndexPage = () => ( | ||
<ThemeProvider theme={theme}> | ||
<Layout showSidebar={false}> | ||
<SEO title='npm cli' /> | ||
<Hero /> | ||
<Features /> | ||
<DarkBlock /> | ||
<Footer /> | ||
</Layout> | ||
</ThemeProvider> | ||
<React.Fragment> | ||
<SEO title='npm cli' /> | ||
<Hero /> | ||
<Features /> | ||
<DarkBlock /> | ||
</React.Fragment> | ||
) | ||
|
||
export default IndexPage |
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