-
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
Showing
20 changed files
with
374 additions
and
333 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
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,32 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import Content from './Content' | ||
|
||
const AboutPageTemplate = ({ title, content, contentComponent }) => { | ||
const PageContent = contentComponent || Content | ||
|
||
return ( | ||
<section className="section section--gradient"> | ||
<div className="container"> | ||
<div className="columns"> | ||
<div className="column is-10 is-offset-1"> | ||
<div className="section"> | ||
<h2 className="title is-size-3 has-text-weight-bold is-bold-light"> | ||
{title} | ||
</h2> | ||
<PageContent className="content" content={content} /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
} | ||
|
||
AboutPageTemplate.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
content: PropTypes.string, | ||
contentComponent: PropTypes.func, | ||
} | ||
|
||
export default AboutPageTemplate |
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,56 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { kebabCase } from 'lodash' | ||
import Helmet from 'react-helmet' | ||
import { Link } from 'gatsby' | ||
import Content from './Content' | ||
|
||
const BlogPostTemplate = ({ | ||
content, | ||
contentComponent, | ||
description, | ||
tags, | ||
title, | ||
helmet, | ||
}) => { | ||
const PostContent = contentComponent || Content | ||
|
||
return ( | ||
<section className="section"> | ||
{helmet || ''} | ||
<div className="container content"> | ||
<div className="columns"> | ||
<div className="column is-10 is-offset-1"> | ||
<h1 className="title is-size-2 has-text-weight-bold is-bold-light"> | ||
{title} | ||
</h1> | ||
<p>{description}</p> | ||
<PostContent content={content} /> | ||
{tags && tags.length ? ( | ||
<div style={{ marginTop: `4rem` }}> | ||
<h4>Tags</h4> | ||
<ul className="taglist"> | ||
{tags.map(tag => ( | ||
<li key={tag + `tag`}> | ||
<Link to={`/tags/${kebabCase(tag)}/`}>{tag}</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
) : null} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
} | ||
|
||
BlogPostTemplate.propTypes = { | ||
content: PropTypes.string.isRequired, | ||
contentComponent: PropTypes.func, | ||
description: PropTypes.string, | ||
title: PropTypes.string, | ||
helmet: PropTypes.instanceOf(Helmet), | ||
} | ||
|
||
export default BlogPostTemplate |
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 |
---|---|---|
@@ -0,0 +1,132 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import Features from './Features' | ||
import Testimonials from './Testimonials' | ||
import Pricing from './Pricing' | ||
|
||
const ProductPageTemplate = ({ | ||
image, | ||
title, | ||
heading, | ||
description, | ||
intro, | ||
main, | ||
testimonials, | ||
fullImage, | ||
pricing, | ||
}) => ( | ||
<section className="section section--gradient"> | ||
<div className="container"> | ||
<div className="section"> | ||
<div className="columns"> | ||
<div className="column is-10 is-offset-1"> | ||
<div className="content"> | ||
<div | ||
className="full-width-image-container margin-top-0" | ||
style={{ backgroundImage: `url(${image})` }} | ||
> | ||
<h2 | ||
className="has-text-weight-bold is-size-1" | ||
style={{ | ||
boxShadow: '0.5rem 0 0 #f40, -0.5rem 0 0 #f40', | ||
backgroundColor: '#f40', | ||
color: 'white', | ||
padding: '1rem', | ||
}} | ||
> | ||
{title} | ||
</h2> | ||
</div> | ||
<div className="columns"> | ||
<div className="column is-7"> | ||
<h3 className="has-text-weight-semibold is-size-2"> | ||
{heading} | ||
</h3> | ||
<p>{description}</p> | ||
</div> | ||
</div> | ||
<Features gridItems={intro.blurbs} /> | ||
<div className="columns"> | ||
<div className="column is-7"> | ||
<h3 className="has-text-weight-semibold is-size-3"> | ||
{main.heading} | ||
</h3> | ||
<p>{main.description}</p> | ||
</div> | ||
</div> | ||
<div className="tile is-ancestor"> | ||
<div className="tile is-vertical"> | ||
<div className="tile"> | ||
<div className="tile is-parent is-vertical"> | ||
<article className="tile is-child"> | ||
<img | ||
style={{ borderRadius: '5px' }} | ||
src={main.image1.image} | ||
alt={main.image1.alt} | ||
/> | ||
</article> | ||
</div> | ||
<div className="tile is-parent"> | ||
<article className="tile is-child"> | ||
<img | ||
style={{ borderRadius: '5px' }} | ||
src={main.image2.image} | ||
alt={main.image2.alt} | ||
/> | ||
</article> | ||
</div> | ||
</div> | ||
<div className="tile is-parent"> | ||
<article className="tile is-child"> | ||
<img | ||
style={{ borderRadius: '5px' }} | ||
src={main.image3.image} | ||
alt={main.image3.alt} | ||
/> | ||
</article> | ||
</div> | ||
</div> | ||
</div> | ||
<Testimonials testimonials={testimonials} /> | ||
<div | ||
className="full-width-image-container" | ||
style={{ backgroundImage: `url(${fullImage})` }} | ||
/> | ||
<h2 className="has-text-weight-semibold is-size-2"> | ||
{pricing.heading} | ||
</h2> | ||
<p className="is-size-5">{pricing.description}</p> | ||
<Pricing data={pricing.plans} /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
|
||
ProductPageTemplate.propTypes = { | ||
image: PropTypes.string, | ||
title: PropTypes.string, | ||
heading: PropTypes.string, | ||
description: PropTypes.string, | ||
intro: PropTypes.shape({ | ||
blurbs: PropTypes.array, | ||
}), | ||
main: PropTypes.shape({ | ||
heading: PropTypes.string, | ||
description: PropTypes.string, | ||
image1: PropTypes.object, | ||
image2: PropTypes.object, | ||
image3: PropTypes.object, | ||
}), | ||
testimonials: PropTypes.array, | ||
fullImage: PropTypes.string, | ||
pricing: PropTypes.shape({ | ||
heading: PropTypes.string, | ||
description: PropTypes.string, | ||
plans: PropTypes.array, | ||
}), | ||
} | ||
|
||
export default ProductPageTemplate |
File renamed without changes.
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,13 @@ | ||
import React from 'react' | ||
import Layout from '../components/Layout' | ||
|
||
const NotFoundPage = () => ( | ||
<div> | ||
<h1>NOT FOUND</h1> | ||
<p>You just hit a route that doesn't exist... the sadness.</p> | ||
</div> | ||
<Layout> | ||
<div> | ||
<h1>NOT FOUND</h1> | ||
<p>You just hit a route that doesn't exist... the sadness.</p> | ||
</div> | ||
</Layout> | ||
) | ||
|
||
export default NotFoundPage |
Oops, something went wrong.