feat(homepage+tools): tools page card refinement and homepage fixes
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { ArrowRight } from 'lucide-react';
|
||||
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;
|
||||
@@ -24,42 +30,73 @@ export function CtaBannerSection({
|
||||
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-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" />
|
||||
<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="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="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="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 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>
|
||||
|
||||
Reference in New Issue
Block a user