website-01/components/front/CtaSection.tsx

42 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2026-06-22 14:43:46 +08:00
import Link from 'next/link';
export function CtaSection({ tel }: { tel?: string | null }) {
return (
<section className="relative overflow-hidden bg-slate-950 py-24">
{/* 渐变底 */}
<div className="absolute inset-0 bg-gradient-to-br from-slate-900 via-[#0a0e27] to-black" />
{/* 辉光 */}
<div className="absolute left-1/2 top-0 h-72 w-[600px] -translate-x-1/2 rounded-full bg-brand-600/20 blur-[120px]" />
<div className="absolute bottom-0 right-1/4 h-56 w-56 rounded-full bg-brand-500/10 blur-[100px]" />
<div className="container-page relative text-center">
<h2 className="text-3xl font-bold text-white sm:text-4xl">
</h2>
<p className="mt-4 text-lg text-brand-200">
&ldquo;&rdquo;便
</p>
<div className="mt-8 flex flex-col items-center justify-center gap-4 sm:flex-row">
<Link
href="/contact"
className="rounded-lg bg-white px-8 py-3.5 text-base font-semibold text-brand-700 shadow-xl transition-all hover:scale-105"
>
</Link>
<Link
href="/products"
className="rounded-lg border border-white/20 px-8 py-3.5 text-base font-medium text-white transition-colors hover:bg-white/10"
>
</Link>
</div>
{tel && (
<p className="mt-6 text-sm text-brand-300">
<span className="font-semibold text-white">{tel}</span>
</p>
)}
</div>
</section>
);
}