Markup structure, add InfoBox components

This commit is contained in:
Moris Zen
2018-06-30 15:28:45 +02:00
parent 1d1a9d5271
commit 0074bc5c9a
3 changed files with 49 additions and 10 deletions

11
src/components/InfoBox.js Normal file
View File

@@ -0,0 +1,11 @@
import React from 'react'
import Link from 'gatsby-link'
const InfoBox = ({ headline, text, classes }) => (
<div className={`${classes}`}>
<h3>{headline}</h3>
<p>{text}</p>
</div>
)
export default InfoBox

View File

@@ -1,14 +1,11 @@
import React from 'react'
import Link from 'gatsby-link'
import Button from './Button'
const IntroDefault = ({ intro, headline, text }) => (
<div className="max-w-xs">
const IntroDefault = ({ intro, headline, text, classes }) => (
<div className={`${classes}`}>
<h3>{intro}</h3>
<h1>{headline}</h1>
<p>{text}</p>
<Button text="Let's Get In Touch" url="/proposal" classes="rounded-full" />
</div>
)