's'
This commit is contained in:
@@ -42,18 +42,39 @@ export function CategoryTabs({
|
||||
export function HeroSection() {
|
||||
const { track } = useTrack();
|
||||
return (
|
||||
<motion.section initial={{ opacity: 0, y: 24 }} animate={{ opacity: 1, y: 0 }} className="w-full min-w-0 space-y-4 py-4">
|
||||
<h1 className="text-3xl font-bold leading-tight tracking-tight md:text-4xl">找软件,直接下载</h1>
|
||||
<p className="max-w-2xl text-sm text-slate-400">每日更新,版本清晰,来源可查。</p>
|
||||
<SearchBar placeholder="试试搜索:AI 绘图、剪辑、开发工具..." />
|
||||
<div className="flex flex-wrap gap-1.5">
|
||||
{hotKeywords.map((k) => (
|
||||
<span key={k} className="pill">{k}</span>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<Link href="/apps" onClick={() => track(TRACKING_EVENTS.ctaClick, { position: "hero", target: "apps" })} className="cta-main">进入资源库</Link>
|
||||
<Link href="/unlock" onClick={() => track(TRACKING_EVENTS.ctaClick, { position: "hero", target: "unlock" })} className="cta-sub">输入解锁码</Link>
|
||||
<motion.section initial={{ opacity: 0, y: 24 }} animate={{ opacity: 1, y: 0 }} className="panel-strong relative w-full min-w-0 overflow-hidden">
|
||||
<div className="pointer-events-none absolute -top-20 right-[-60px] h-56 w-56 rounded-full bg-cyan-300/20 blur-3xl" />
|
||||
<div className="pointer-events-none absolute -bottom-24 left-[-80px] h-60 w-60 rounded-full bg-indigo-400/15 blur-3xl" />
|
||||
<div className="relative grid gap-6 lg:grid-cols-12 lg:items-center">
|
||||
<div className="space-y-4 lg:col-span-8">
|
||||
<p className="text-xs uppercase tracking-[0.3em] text-cyan-200/80">Download Nova</p>
|
||||
<h1 className="text-3xl font-bold leading-tight tracking-tight md:text-5xl">网盘资源下载,一站直达</h1>
|
||||
<p className="max-w-2xl text-sm text-slate-300 md:text-base">每日更新,版本清晰,渠道可查。热门软件、学习资料、影音资源快速下载。</p>
|
||||
<SearchBar placeholder="试试搜索:AI 绘图、剪辑、开发工具..." />
|
||||
<div className="flex flex-wrap gap-1.5">
|
||||
{hotKeywords.map((k) => (
|
||||
<span key={k} className="pill">{k}</span>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<Link href="/apps" onClick={() => track(TRACKING_EVENTS.ctaClick, { position: "hero", target: "apps" })} className="cta-main">进入资源库</Link>
|
||||
<Link href="/unlock" onClick={() => track(TRACKING_EVENTS.ctaClick, { position: "hero", target: "unlock" })} className="cta-sub">输入解锁码</Link>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid gap-2 sm:grid-cols-3 lg:col-span-4 lg:grid-cols-1">
|
||||
<div className="rounded-xl border border-white/10 bg-slate-900/35 p-3">
|
||||
<p className="text-xs text-slate-400">今日更新</p>
|
||||
<p className="mt-1 text-2xl font-bold text-cyan-200">27</p>
|
||||
</div>
|
||||
<div className="rounded-xl border border-white/10 bg-slate-900/35 p-3">
|
||||
<p className="text-xs text-slate-400">可用资源</p>
|
||||
<p className="mt-1 text-2xl font-bold text-cyan-200">1,286</p>
|
||||
</div>
|
||||
<div className="rounded-xl border border-white/10 bg-slate-900/35 p-3">
|
||||
<p className="text-xs text-slate-400">总下载量</p>
|
||||
<p className="mt-1 text-2xl font-bold text-cyan-200">8.4M</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user