Stylistic fixes and using reusable components

This commit is contained in:
Moris Zen
2018-06-30 15:04:24 +02:00
parent 05e9635c7c
commit 1d1a9d5271
5 changed files with 17 additions and 18 deletions

View File

@@ -4,14 +4,12 @@ import Link from 'gatsby-link'
import Button from './Button'
const IntroDefault = ({ intro, headline, text }) => (
<section className="lg:flex items-center p-3">
<div className="max-w-xs">
<h3>{intro}</h3>
<h1>{headline}</h1>
<p>{text}</p>
<Button text="Let's Get In Touch" url="/proposal" classes="rounded-full" />
</div>
</section >
<div className="max-w-xs">
<h3>{intro}</h3>
<h1>{headline}</h1>
<p>{text}</p>
<Button text="Let's Get In Touch" url="/proposal" classes="rounded-full" />
</div>
)
export default IntroDefault