Restructuring and layout fixes

This commit is contained in:
Moris Zen
2018-07-07 00:07:28 +02:00
parent 3ec8275596
commit 81ab174b02
4 changed files with 129 additions and 127 deletions

View File

@@ -9,10 +9,10 @@ class Blog extends Component {
const data = this.props.data
return (
<div>
<PageIntro intro="Blog" headline="Occasionally we find the time to have fun and publish" />
<PageIntro intro="Blog" headline="Occasionally we find the time to have fun and publish" sectionClasses="mb-16 lg:mb-4" />
<div className="container mx-auto p-4 w-full md:flex md:flex-wrap items-stretch w-full">
{data.allWordpressPost.edges.map(({ node }) => (
<div key={node.id} className="md:w-1/2 p-2">
<div key={node.id} className="mt-4 md:w-1/2 p-2">
<Card
url={`blog/${node.slug}`}
title={node.title}