Skip to content

Commit

Permalink
Added about page.
Browse files Browse the repository at this point in the history
  • Loading branch information
madelyneriksen committed Dec 22, 2018
1 parent abf0489 commit 4f953c9
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/copy/about__bio.md
@@ -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.
Binary file added content/img/about__banner.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions src/pages/about.js
@@ -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
}
}
}
}
`

0 comments on commit 4f953c9

Please sign in to comment.