mirror of
https://github.com/vercel/commerce.git
synced 2025-07-30 13:41:22 +00:00
.vscode
assets
components
auth
cart
common
icons
product
ui
Button
Container
Grid
Hero
Hero.module.css
Hero.tsx
index.ts
Input
Link
LoadingDots
Logo
Marquee
Modal
Sidebar
Skeleton
Text
README.md
context.tsx
index.ts
wishlist
config
docs
framework
lib
pages
public
.editorconfig
.env.template
.gitignore
.prettierignore
.prettierrc
README.md
codegen.json
commerce.config.json
global.d.ts
license.md
next-env.d.ts
next.config.js
package.json
postcss.config.js
tailwind.config.js
tsconfig.json
yarn.lock
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import React, { FC } from 'react'
|
|
import { Container } from '@components/ui'
|
|
import { RightArrow } from '@components/icons'
|
|
import s from './Hero.module.css'
|
|
import Link from 'next/link'
|
|
interface Props {
|
|
className?: string
|
|
headline: string
|
|
description: string
|
|
}
|
|
|
|
const Hero: FC<Props> = ({ headline, description }) => {
|
|
return (
|
|
<div className="bg-black">
|
|
<Container>
|
|
<div className={s.root}>
|
|
<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="/blog">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</Container>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Hero
|