4
0
forked from crowetic/commerce

28 lines
768 B
TypeScript
Raw Normal View History

2020-10-04 16:34:22 -03:00
import cn from 'classnames'
import React, { FC } from 'react'
import s from './Hero.module.css'
import { Container } from '@components/ui'
interface Props {
className?: string
headline: string
description: string
}
const Hero: FC<Props> = ({ headline, description, className }) => {
2020-10-13 14:34:24 -03:00
const rootClassName = cn('bg-black py-12', className)
2020-10-04 16:34:22 -03:00
return (
<div className={rootClassName}>
<Container>
<div className="max-w-xl">
<h2 className="text-4xl leading-10 font-extrabold text-white sm:text-5xl sm:leading-none sm:tracking-tight lg:text-6xl">
{headline}
</h2>
<p className="mt-5 text-xl leading-7 text-gray-400">{description}</p>
</div>
</Container>
</div>
)
}
export default Hero