Files
webb/src/components/sections/CtaBannerSection.tsx
T

70 lines
2.3 KiB
TypeScript
Raw Normal View History

import React from 'react';
import Link from 'next/link';
import { ArrowRight } from 'lucide-react';
import { resolveLocalised } from '@/types';
interface CtaBannerSectionProps {
title?: any;
subtitle?: any;
primaryCta?: {
label: any;
href: string;
};
secondaryCta?: {
label: any;
href: string;
};
locale?: string;
}
export function CtaBannerSection({
title,
subtitle,
primaryCta,
secondaryCta,
locale = 'en',
}: CtaBannerSectionProps) {
return (
<section className="py-20 sm:py-28 bg-[#FAF8F5] border-t border-slate-900/[0.08]">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="rounded-3xl bg-gradient-to-r from-blue-700 via-indigo-700 to-blue-800 p-10 sm:p-16 text-center text-white shadow-cream-lg relative overflow-hidden">
{/* Subtle background glow */}
<div className="absolute top-0 right-0 w-96 h-96 bg-white/[0.08] rounded-full blur-3xl pointer-events-none" />
<div className="relative z-10 max-w-2xl mx-auto space-y-4">
{title && (
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black tracking-tight">
{resolveLocalised(title, locale)}
</h2>
)}
{subtitle && (
<p className="text-base sm:text-lg text-blue-100 font-normal">
{resolveLocalised(subtitle, locale)}
</p>
)}
<div className="pt-6 flex flex-wrap items-center justify-center gap-4">
{primaryCta && (
<Link
href={primaryCta.href}
className="px-7 py-3.5 rounded-full text-xs sm:text-sm font-bold text-slate-900 bg-white hover:bg-slate-100 shadow-md transition-all hover:scale-105 active:scale-95"
>
{resolveLocalised(primaryCta.label, locale)}
</Link>
)}
{secondaryCta && (
<Link
href={secondaryCta.href}
className="px-7 py-3.5 rounded-full text-xs sm:text-sm font-bold text-white border border-white/40 hover:bg-white/10 transition-colors"
>
{resolveLocalised(secondaryCta.label, locale)}
</Link>
)}
</div>
</div>
</div>
</div>
</section>
);
}