Markup structure, add InfoBox components
This commit is contained in:
11
src/components/InfoBox.js
Normal file
11
src/components/InfoBox.js
Normal 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
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user