4
0
forked from crowetic/commerce

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2020-10-04 16:34:22 -03:00
import React, { FC } from 'react'
import { Container } from '@components/ui'
2020-10-26 09:27:21 -03:00
import { RightArrow } from '@components/icons'
2020-10-24 02:45:39 -03:00
import s from './Hero.module.css'
2020-10-25 12:23:07 -03:00
import Link from 'next/link'
2020-10-04 16:34:22 -03:00
interface Props {
className?: string
headline: string
description: string
}
2020-10-23 13:25:33 -03:00
const Hero: FC<Props> = ({ headline, description }) => {
2020-10-04 16:34:22 -03:00
return (
2020-10-23 22:14:46 -03:00
<div className="bg-black">
<Container>
2020-10-24 02:45:39 -03:00
<div className={s.root}>
2020-10-23 22:14:46 -03:00
<h2 className="text-4xl leading-10 font-extrabold text-white sm:text-5xl sm:leading-none sm:tracking-tight lg:text-6xl">
{headline}
</h2>
<div className="flex flex-col justify-between">
<p className="mt-5 text-xl leading-7 text-accent-2 text-white">
{description}
</p>
<Link href="/">
2020-10-25 12:23:07 -03:00
<a className="text-white pt-3 font-bold hover:underline flex flex-row cursor-pointer w-max-content">
Read it here
<RightArrow width="20" heigh="20" className="ml-1" />
</a>
</Link>
2020-10-23 22:14:46 -03:00
</div>
2020-10-04 16:34:22 -03:00
</div>
2020-10-23 22:14:46 -03:00
</Container>
</div>
2020-10-04 16:34:22 -03:00
)
}
export default Hero