Restructuring of components, extracting to reusable components, styling

This commit is contained in:
Moris Zen
2018-07-04 11:24:50 +02:00
parent c6cd4d19ad
commit 6df7085f1b
11 changed files with 981 additions and 1635 deletions

19
src/components/Service.js Normal file
View File

@@ -0,0 +1,19 @@
import React from 'react'
import InfoBox from './InfoBox'
const Service = ({ ...props }) => (
<div className="lg:flex items-center justify-center m-auto">
<img
src={props.img}
className={`w-full lg:max-w-sm p-4 z-10 ${props.imgClasses}`}
alt={`${props.title} agency`}
/>
<InfoBox
classes="bg-white p-8 shadow lg:m-0 opacity-75 lg:max-w-sm"
headline={props.title}
text={props.text}
/>
</div>
)
export default Service