Hero 06
A split product hero with dual CTA, a compact logo row, and the Spot 01 illustration.
hero-06.tsx
import Balancer from 'react-wrap-balancer'
import { Button } from '@/components/ui/button'
import { Spot01 } from '@/components/flx/illustrations/spot/spot-01'
const logos = ['Acme', 'Globex', 'Initech', 'Umbrella']
export function Hero06() {
return (
<section className="bg-background relative w-full overflow-hidden">
<div
aria-hidden
className="pointer-events-none absolute inset-0 -z-10 opacity-70 dark:opacity-40"
style={{
backgroundImage:
'linear-gradient(to right, var(--border) 1px, transparent 1px), linear-gradient(to bottom, var(--border) 1px, transparent 1px)',
backgroundSize: '64px 64px',
maskImage:
'radial-gradient(ellipse 80% 60% at 75% 25%, black 30%, transparent 72%)',
WebkitMaskImage:
'radial-gradient(ellipse 80% 60% at 75% 25%, black 30%, transparent 72%)',
}}
/>
<div className="mx-auto grid max-w-6xl grid-cols-1 items-center gap-12 px-6 py-16 sm:py-24 lg:grid-cols-2 lg:gap-16">
<div className="flex flex-col items-start gap-8">
<div className="flex flex-col items-start gap-5">
<h1 className="text-foreground font-serif text-2xl font-normal tracking-tight text-balance sm:text-3xl md:text-4xl">
<Balancer>Ship your best work,</Balancer>{' '}
<span className="text-muted-foreground">
without the busywork.
</span>
</h1>
<p className="text-muted-foreground max-w-md text-base sm:text-lg">
<Balancer>
One workspace to plan, build, and launch. No context switching,
no clutter.
</Balancer>
</p>
</div>
<div className="flex w-full flex-col gap-3 sm:w-auto sm:flex-row">
<Button
className="w-full rounded-full px-4 sm:w-fit"
nativeButton={false}
render={<a href="#" />}
>
Start for free
</Button>
<Button
variant="outline"
className="w-full rounded-full px-4 sm:w-fit"
nativeButton={false}
render={<a href="#" />}
>
Book a demo
</Button>
</div>
<div className="flex flex-col gap-3">
<p className="text-muted-foreground/80 text-xs tracking-wide uppercase">
Trusted by fast-moving teams
</p>
<div className="flex flex-wrap items-center gap-x-6 gap-y-3">
{logos.map((logo) => (
<span
key={logo}
className="text-muted-foreground/60 text-sm font-semibold tracking-tight"
>
{logo}
</span>
))}
</div>
</div>
</div>
<div className="w-full">
<Spot01 size="lg" />
</div>
</div>
</section>
)
}
spot-01.tsx
import { TrendingUp } from 'lucide-react'
import { Badge } from '@/components/ui/badge'
import { Card } from '@/components/ui/card'
import { cn } from '@/lib/utils'
const sizeStyles = {
default: {
shell: 'h-40',
cardWrap: 'w-56',
backCard:
'absolute -top-3 -right-3 h-28 w-44 rotate-3 rounded-2xl opacity-60',
frontCard: 'rounded-2xl p-4',
label: 'text-xs',
headerGap: '',
value: 'mt-2 text-2xl',
chart: 'mt-3 h-12 gap-1',
},
lg: {
shell: 'h-64 sm:h-72',
cardWrap: 'w-full max-w-md',
backCard:
'absolute -top-5 right-2 h-full w-3/4 rotate-6 rounded-2xl opacity-50 sm:right-0',
frontCard: 'rounded-2xl p-5',
label: 'text-sm',
headerGap: 'gap-3',
value: 'mt-4 text-3xl',
chart: 'mt-5 h-20 gap-1.5',
},
} as const
const sparkBySize = {
default: [
'h-3',
'h-5',
'h-4',
'h-6',
'h-4',
'h-7',
'h-5',
'h-6',
'h-4',
'h-7',
'h-5',
'h-6',
],
lg: [
'h-6',
'h-10',
'h-8',
'h-14',
'h-9',
'h-16',
'h-12',
'h-20',
'h-10',
'h-16',
'h-14',
'h-20',
],
} as const
export function Spot01({
size = 'default',
className,
}: Readonly<{
size?: keyof typeof sizeStyles
className?: string
}>) {
const vs = sizeStyles[size]
const spark = sparkBySize[size]
return (
<div
className={cn(
'relative flex w-full items-center justify-center',
vs.shell,
className,
)}
>
<div className={cn('relative', vs.cardWrap)}>
<Card className={cn('gap-0 p-0 shadow-sm', vs.backCard)} />
<Card className={cn('relative gap-0 shadow-sm', vs.frontCard)}>
<div
className={cn('flex items-center justify-between', vs.headerGap)}
>
<span
className={cn('text-muted-foreground font-medium', vs.label)}
>
Revenue
</span>
<Badge
variant="secondary"
className="gap-1 text-emerald-600 dark:text-emerald-400"
>
<TrendingUp className="size-3" />
12%
</Badge>
</div>
<div
className={cn('font-semibold tracking-tight tabular-nums', vs.value)}
>
$48,262
</div>
<div className={cn('flex w-full items-end', vs.chart)}>
{spark.map((height, index) => (
<div
key={index}
className={cn(
'bg-primary/60 min-w-0 flex-1 rounded-full',
height,
)}
/>
))}
</div>
</Card>
</div>
</div>
)
}