mirror of
https://github.com/vercel/commerce.git
synced 2025-03-28 08:15:54 +00:00
35 lines
967 B
TypeScript
35 lines
967 B
TypeScript
import React, { FC } from 'react'
|
|
import { Container } from '@components/ui'
|
|
import { ArrowRight } from '@components/icons'
|
|
import s from './Hero.module.css'
|
|
import Link from 'next/link'
|
|
interface HeroProps {
|
|
className?: string
|
|
headline: string
|
|
description: string
|
|
}
|
|
|
|
const Hero: FC<HeroProps> = ({ headline, description }) => {
|
|
return (
|
|
<div className="bg-accent-9 border-b border-t border-accent-2">
|
|
<Container>
|
|
<div className={s.root}>
|
|
<h2 className={s.title}>{headline}</h2>
|
|
<div className={s.description}>
|
|
<p>{description}</p>
|
|
<Link
|
|
href="/"
|
|
className="flex items-center text-accent-0 pt-3 font-bold hover:underline cursor-pointer w-max-content"
|
|
>
|
|
Read it here
|
|
<ArrowRight width="20" heigh="20" className="ml-1" />
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</Container>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Hero
|