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

107 lines
4.6 KiB
TypeScript

'use client';
import React from 'react';
import Link from 'next/link';
import { ArrowRight, Smartphone, Sparkles, ShieldCheck } from 'lucide-react';
import { resolveLocalised } from '@/types';
import { BorderBeam } from '@/components/magicui/border-beam';
import { RainbowButton } from '@/components/magicui/rainbow-button';
import { InteractiveHoverButton } from '@/components/magicui/interactive-hover-button';
import { KineticText } from '@/components/magicui/kinetic-text';
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) {
const resolvedTitle = resolveLocalised(title, locale) || 'Need Batch Processing or 4K Lossless Export?';
const resolvedSubtitle = resolveLocalised(subtitle, locale) || 'Each tool connects directly to its dedicated mobile app with advanced brush tools and unlimited processing.';
const primaryHref = primaryCta?.href || '/apps';
const primaryLabel = resolveLocalised(primaryCta?.label, locale) || 'View Mobile Apps';
const secondaryHref = secondaryCta?.href || '/#our-tools';
const secondaryLabel = resolveLocalised(secondaryCta?.label, locale) || 'Explore Studio Tools';
return (
<section className="py-16 sm:py-24 bg-paper border-t border-rule relative overflow-hidden">
{/* Studio Lighting Ambient Glow */}
<div
className="pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[400px] [background:radial-gradient(circle_at_center,color-mix(in_oklab,var(--color-accent)_10%,transparent)_0%,transparent_70%)]"
aria-hidden="true"
/>
<div
className="pointer-events-none absolute inset-0 opacity-20 studio-proof-grid"
aria-hidden="true"
/>
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 relative z-10">
<div className="studio-sheet rounded-3xl p-8 sm:p-14 lg:p-16 text-center bg-paper-hi border border-rule shadow-sheet relative overflow-hidden">
{/* Subtle Border Beam animation */}
<BorderBeam size={160} duration={12} borderWidth={1.5} colorFrom="var(--color-accent)" colorTo="var(--color-accent-hi)" />
<div className="relative z-10 max-w-2xl mx-auto space-y-5">
{/* Studio Badge */}
<div className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-paper-2 border border-rule text-xs font-body text-ink shadow-xs">
<Smartphone className="w-3.5 h-3.5 text-accent" />
<span>Mobile studio suite</span>
<span className="w-1 h-1 rounded-full bg-accent" />
<span className="text-muted">Direct QR handoff</span>
</div>
{/* Headline with kinetic typography */}
<h2 className="text-2xl sm:text-4xl lg:text-5xl font-display font-extrabold text-ink tracking-tight text-balance">
<KineticText>{resolvedTitle}</KineticText>
</h2>
{/* Subtitle */}
<p className="text-sm sm:text-base text-ink-2 font-body max-w-xl mx-auto leading-relaxed text-pretty">
{resolvedSubtitle}
</p>
{/* Privacy & Speed Pills */}
<div className="pt-2 flex flex-wrap items-center justify-center gap-2 text-xs font-body text-muted">
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-2 border border-rule">
<ShieldCheck className="w-3.5 h-3.5 text-emerald-600" />
<span>Zero server storage</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-2 border border-rule">
<Sparkles className="w-3.5 h-3.5 text-amber-500" />
<span>4K ultra-resolution batch</span>
</span>
</div>
{/* Action Buttons */}
<div className="pt-4 flex flex-wrap items-center justify-center gap-4">
<RainbowButton href={primaryHref} className="min-w-[180px]">
<span>{primaryLabel}</span>
<ArrowRight className="w-4 h-4 ml-1 inline" aria-hidden="true" />
</RainbowButton>
<InteractiveHoverButton
text={secondaryLabel}
href={secondaryHref}
className="min-h-[48px] min-w-[180px]"
/>
</div>
</div>
</div>
</div>
</section>
);
}