mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Hero Component
This commit is contained in:
@@ -2,6 +2,7 @@ import cn from 'classnames'
|
||||
import React, { FC } from 'react'
|
||||
import s from './Hero.module.css'
|
||||
import { Container } from '@components/ui'
|
||||
import { RightArrow } from '@components/icon'
|
||||
interface Props {
|
||||
className?: string
|
||||
headline: string
|
||||
@@ -9,15 +10,23 @@ interface Props {
|
||||
}
|
||||
|
||||
const Hero: FC<Props> = ({ headline, description, className }) => {
|
||||
const rootClassName = cn('bg-black py-12', className)
|
||||
const rootClassName = cn('bg-black py-24', className)
|
||||
return (
|
||||
<div className={rootClassName}>
|
||||
<Container>
|
||||
<div className="max-w-xl">
|
||||
<div className="mx-auto grid lg: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">
|
||||
{headline}
|
||||
</h2>
|
||||
<p className="mt-5 text-xl leading-7 text-gray-400">{description}</p>
|
||||
<div>
|
||||
<p className="mt-5 text-xl leading-7 text-accent-2">
|
||||
{description}
|
||||
</p>
|
||||
<a className="block text-white py-3 font-bold hover:underline flex flex-row cursor-pointer">
|
||||
<span>Read it here</span>
|
||||
<RightArrow width="20" heigh="20" className="ml-1" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</Container>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user