Loading data from network...
import { useNavigate } from 'react-router-dom'
const heroImage =
'https://images.pexels.com/photos/19518397/pexels-photo-19518397.jpeg?cs=srgb&dl=pexels-abubakar-isa-847811056-19518397.jpg&fm=jpg'
export default function Hero() {
const navigate = useNavigate()
return (
<section className="relative overflow-hidden">
<div className="relative flex w-full flex-col items-center gap-10 px-6 py-16 lg:flex-row lg:py-20">
<div className="flex-1 space-y-6">
<p className="text-xs uppercase tracking-[0.35em] text-ink/50">Trusted savings circles</p>
<h1 className="text-4xl font-display text-ink sm:text-5xl">
Save together,
<br /> grow together.
</h1>
<p className="max-w-xl text-lg text-ink/70">
Join trusted savings groups, contribute with ease, and receive your payout right on time. Cosave keeps
things simple while the automation runs quietly in the background.
</p>
<div className="flex flex-wrap gap-4">
<button className="button-primary" type="button" onClick={() => navigate('/welcome')}>
Get started
</button>
<button className="button-secondary" type="button">
Play video
</button>
</div>
<div className="flex items-center gap-4 text-sm text-ink/60">
<div className="flex -space-x-2">
{['A', 'T', 'J', 'M'].map((letter) => (
<div
key={letter}
className="flex h-9 w-9 items-center justify-center rounded-full border-2 border-white bg-[#6f63ff] text-xs font-semibold text-white"
>
{letter}
</div>
))}
</div>
<p>Trusted by 1,200+ savers across Lagos & Abuja</p>
</div>
</div>
<div className="relative flex-1">
<div className="relative mx-auto w-full max-w-sm">
<div className="absolute -left-8 top-10 hidden h-12 w-12 items-center justify-center rounded-2xl bg-white shadow-md lg:flex">
<span className="text-lg font-semibold text-ink">NGN</span>
</div>
<div className="absolute -right-10 top-10 hidden rounded-2xl bg-white px-4 py-3 text-xs shadow-lg lg:block">
<p className="text-ink/50">Message from John</p>
<p className="font-semibold text-ink">Paid my share</p>
</div>
<div className="absolute -left-8 bottom-10 hidden rounded-2xl bg-white px-4 py-3 text-xs shadow-lg lg:block">
<p className="text-ink/50">Contribution</p>
<p className="font-semibold text-ink">NGN 10,000</p>
</div>
<div className="absolute -bottom-8 right-4 hidden rounded-3xl bg-white px-5 py-4 text-xs shadow-lg lg:block">
<p className="text-ink/50">Weekly contribution</p>
<p className="text-lg font-semibold text-ink">NGN 10,000</p>
</div>
<div className="relative rounded-[36px] bg-white/70 p-5 shadow-2xl backdrop-blur">
<div className="overflow-hidden rounded-[28px] bg-white">
<img
src={heroImage}
alt="Smiling saver holding a phone"
className="h-[360px] w-full object-cover"
/>
</div>
<div className="mt-4 rounded-2xl bg-white/80 p-4 text-sm text-ink/70">
<div className="flex items-center justify-between">
<div>
<p className="text-xs text-ink/50">Azaman Group</p>
<p className="text-base font-semibold text-ink">Payout Nov 9</p>
</div>
<div className="rounded-full bg-[#e8f0ff] px-3 py-1 text-xs font-semibold text-[#2f6bff]">+6</div>
</div>
<div className="mt-3">
<div className="flex items-center justify-between text-xs text-ink/50">
<span>30 rounds complete</span>
<span>80%</span>
</div>
<div className="mt-2 h-2 w-full rounded-full bg-ink/10">
<div className="h-2 w-4/5 rounded-full bg-gradient-to-r from-[#6f63ff] to-[#3ac9a8]" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
)
}