2026-11-03 12:24:43 +05:30
|
|
|
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 (
|
2026-11-03 13:16:16 +05:30
|
|
|
<section className="py-20 sm:py-28 bg-[#FAF8F5] border-t border-slate-900/[0.08]">
|
2026-11-03 12:24:43 +05:30
|
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
2026-11-03 13:16:16 +05:30
|
|
|
<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" />
|
|
|
|
|
|
2026-11-03 12:24:43 +05:30
|
|
|
<div className="relative z-10 max-w-2xl mx-auto space-y-4">
|
|
|
|
|
{title && (
|
2026-11-03 13:16:16 +05:30
|
|
|
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black tracking-tight">
|
2026-11-03 12:24:43 +05:30
|
|
|
{resolveLocalised(title, locale)}
|
|
|
|
|
</h2>
|
|
|
|
|
)}
|
|
|
|
|
{subtitle && (
|
2026-11-03 13:16:16 +05:30
|
|
|
<p className="text-base sm:text-lg text-blue-100 font-normal">
|
2026-11-03 12:24:43 +05:30
|
|
|
{resolveLocalised(subtitle, locale)}
|
|
|
|
|
</p>
|
|
|
|
|
)}
|
|
|
|
|
|
2026-11-03 13:16:16 +05:30
|
|
|
<div className="pt-6 flex flex-wrap items-center justify-center gap-4">
|
2026-11-03 12:24:43 +05:30
|
|
|
{primaryCta && (
|
|
|
|
|
<Link
|
|
|
|
|
href={primaryCta.href}
|
2026-11-03 13:16:16 +05:30
|
|
|
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"
|
2026-11-03 12:24:43 +05:30
|
|
|
>
|
|
|
|
|
{resolveLocalised(primaryCta.label, locale)}
|
|
|
|
|
</Link>
|
|
|
|
|
)}
|
|
|
|
|
{secondaryCta && (
|
|
|
|
|
<Link
|
|
|
|
|
href={secondaryCta.href}
|
2026-11-03 13:16:16 +05:30
|
|
|
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"
|
2026-11-03 12:24:43 +05:30
|
|
|
>
|
|
|
|
|
{resolveLocalised(secondaryCta.label, locale)}
|
|
|
|
|
</Link>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|