forked from patrickhulce/third-party-web
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
d404c2d
commit 3641adf
Showing
8 changed files
with
742 additions
and
22 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
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
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,16 +1,46 @@ | ||
import React from 'react' | ||
import {Link} from 'gatsby' | ||
import {Link, StaticQuery, graphql} from 'gatsby' | ||
|
||
import SEO from '../components/seo' | ||
import PageContent from '../components/page-content' | ||
|
||
const SecondPage = () => ( | ||
<PageContent> | ||
<SEO title="About" /> | ||
<h1>About the Project</h1> | ||
<p>Welcome to page 2</p> | ||
<Link to="/">Go back to the homepage</Link> | ||
</PageContent> | ||
<StaticQuery | ||
query={graphql` | ||
query AboutPageQuery { | ||
allMarkdownRemark { | ||
edges { | ||
node { | ||
html | ||
frontmatter { | ||
name | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`} | ||
render={data => { | ||
const partials = data.allMarkdownRemark.edges.reduce((map, edge) => { | ||
map[edge.node.frontmatter.name] = edge.node.html | ||
return map | ||
}, {}) | ||
|
||
return ( | ||
<PageContent> | ||
<SEO title="About" /> | ||
<h1>About the Project</h1> | ||
<h2>Goals</h2> | ||
<div dangerouslySetInnerHTML={{__html: partials.goals}} /> | ||
<h2>Methodology</h2> | ||
<div dangerouslySetInnerHTML={{__html: partials.methodology}} /> | ||
<h2>FAQs</h2> | ||
<div dangerouslySetInnerHTML={{__html: partials.faqs}} /> | ||
<Link to="/">Get back to the data</Link> | ||
</PageContent> | ||
) | ||
}} | ||
/> | ||
) | ||
|
||
export default SecondPage |
Oops, something went wrong.