CSS tweaks, add reverse properties to services

This commit is contained in:
Moris Zen
2018-07-06 17:49:35 +02:00
parent 6469d1bcfa
commit 191c298a49
2 changed files with 8 additions and 4 deletions

View File

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