4
0
forked from crowetic/commerce

Changes to the Hero Component

This commit is contained in:
Belen Curcio 2020-10-23 13:25:33 -03:00
parent db68e663ac
commit ef2d647a99
2 changed files with 14 additions and 21 deletions

View File

@ -1,6 +1,4 @@
import cn from 'classnames'
import React, { FC } from 'react' import React, { FC } from 'react'
import s from './Hero.module.css'
import { Container } from '@components/ui' import { Container } from '@components/ui'
import { RightArrow } from '@components/icon' import { RightArrow } from '@components/icon'
interface Props { interface Props {
@ -9,27 +7,22 @@ interface Props {
description: string description: string
} }
const Hero: FC<Props> = ({ headline, description, className }) => { const Hero: FC<Props> = ({ headline, description }) => {
const rootClassName = cn('bg-black py-40 min-h-72', className)
return ( return (
<div className={rootClassName}> <Container>
<Container> <div className="mx-auto grid grid-cols-2 bg-black py-32">
<div className="mx-auto grid grid-cols-2"> <h2 className="text-4xl leading-10 font-extrabold text-white sm:text-5xl sm:leading-none sm:tracking-tight lg:text-6xl">
<h2 className="text-4xl leading-10 font-extrabold text-white sm:text-5xl sm:leading-none sm:tracking-tight lg:text-6xl"> {headline}
{headline} </h2>
</h2> <div className="flex flex-col justify-between">
<div className="flex flex-col justify-between"> <p className="mt-5 text-xl leading-7 text-accent-2">{description}</p>
<p className="mt-5 text-xl leading-7 text-accent-2"> <a className="block text-white pt-3 font-bold hover:underline flex flex-row cursor-pointer">
{description} <span>Read it here</span>
</p> <RightArrow width="20" heigh="20" className="ml-1" />
<a className="block text-white pt-3 font-bold hover:underline flex flex-row cursor-pointer"> </a>
<span>Read it here</span>
<RightArrow width="20" heigh="20" className="ml-1" />
</a>
</div>
</div> </div>
</Container> </div>
</div> </Container>
) )
} }