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
abf0489
commit 4f953c9
Showing
3 changed files
with
57 additions
and
0 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,11 @@ | ||
--- | ||
|
||
type: "copy" | ||
name: "about__bio" | ||
title: "Tyra is a fast, feminine, and chic Gatsby.js Starter. Kickstart your online presence, powered by React." | ||
|
||
--- | ||
|
||
Built on a strong foundation of React and Gatsby, Tyra is a modern, sleek, and _fast_ template for a blog. Created with an emphasis on SEO and the goal of showcasing content, Tyra is the perfect starter for creating your new project. | ||
|
||
Tyra is MIT Licensed, and so works well as a starting point, a springboard, or even a finished product. |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from 'react'; | ||
import Layout from '../common/layouts'; | ||
import Img from 'gatsby-image'; | ||
import { graphql, Link } from 'gatsby'; | ||
|
||
|
||
export default ({props, data}) => ( | ||
<Layout> | ||
<div className="relative"> | ||
<Img fluid={data.banner.childImageSharp.fluid} /> | ||
<h1 | ||
className="fw1 tc f2 display absolute dn dib-ns" | ||
style={{bottom: "50%", left: "50%", transform: "translate(-50%, -50%)"}}>About {data.site.siteMetadata.title}</h1> | ||
</div> | ||
<div className="mw9 center flex flex-wrap pv5-l w-100"> | ||
<div className="mw7 w-100 pa2"> | ||
<h1 className="display fw1 db lh-copy">{data.markdownRemark.frontmatter.title}</h1> | ||
<Link to="/blog" className="dib bg-dark-gray b near-white hover-bg-mid-gray pv3 ph4 ttu tracked sans-serif no-underline mv2">Read the blog</Link> | ||
</div> | ||
<div className="mw7 w-100 lh-copy serif pa2 flex flex-column justify-center f4" dangerouslySetInnerHTML={{__html: data.markdownRemark.html}} /> | ||
</div> | ||
</Layout> | ||
) | ||
|
||
export const dataQuery = graphql` | ||
query { | ||
site { | ||
siteMetadata { | ||
title | ||
} | ||
} | ||
markdownRemark(frontmatter: {name: {eq: "about__bio"}}) { | ||
html | ||
frontmatter { | ||
title | ||
} | ||
} | ||
banner: file(relativePath: {eq: "img/about__banner.jpg"}) { | ||
childImageSharp { | ||
fluid(maxHeight: 720, maxWidth: 1920) { | ||
...GatsbyImageSharpFluid | ||
} | ||
} | ||
} | ||
} | ||
` |