2026-11-03 13:36:36 +05:30
|
|
|
'use client';
|
|
|
|
|
|
2026-11-03 12:24:43 +05:30
|
|
|
import React from 'react';
|
|
|
|
|
import Link from 'next/link';
|
2026-11-03 18:06:20 +05:30
|
|
|
import { Sparkles, ArrowRight, Smartphone, Layers, Zap } from 'lucide-react';
|
2026-11-03 12:24:43 +05:30
|
|
|
import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types';
|
|
|
|
|
import { TryItWidget } from './TryItWidget';
|
2026-11-03 16:44:13 +05:30
|
|
|
import { Hero3DCanvas } from '@/components/3d/Hero3DCanvas';
|
2026-11-03 16:49:56 +05:30
|
|
|
import { Kinetic3DText } from '@/components/ui/Kinetic3DText';
|
2026-11-03 18:06:20 +05:30
|
|
|
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
|
|
|
|
|
import { BorderBeam } from '@/components/animate-ui/BorderBeam';
|
|
|
|
|
import { MorphingText } from '@/components/animate-ui/MorphingText';
|
2026-11-03 12:24:43 +05:30
|
|
|
|
|
|
|
|
interface HeroSectionProps {
|
|
|
|
|
title?: any;
|
|
|
|
|
subtitle?: any;
|
|
|
|
|
variant?: string;
|
|
|
|
|
badge?: any;
|
|
|
|
|
tryIt?: {
|
|
|
|
|
toolRef: string;
|
|
|
|
|
};
|
|
|
|
|
tool?: ToolItem | null;
|
|
|
|
|
homeApp?: AppItem | null;
|
|
|
|
|
variants?: VariantSpec[];
|
|
|
|
|
locale?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function HeroSection({
|
|
|
|
|
title,
|
|
|
|
|
subtitle,
|
|
|
|
|
variant = 'centered',
|
|
|
|
|
badge,
|
|
|
|
|
tool,
|
|
|
|
|
homeApp,
|
|
|
|
|
variants = [],
|
|
|
|
|
locale = 'en',
|
|
|
|
|
}: HeroSectionProps) {
|
|
|
|
|
const resolvedTitle = resolveLocalised(title, locale);
|
|
|
|
|
const resolvedSubtitle = resolveLocalised(subtitle, locale);
|
|
|
|
|
const resolvedBadge = resolveLocalised(badge, locale);
|
|
|
|
|
|
|
|
|
|
if (variant === 'tryit' && tool) {
|
|
|
|
|
return (
|
2026-11-03 14:30:31 +05:30
|
|
|
<section className="relative overflow-hidden pt-24 pb-20 sm:pt-32 sm:pb-28 lg:pt-36 lg:pb-32 bg-[#FAF8F5]">
|
2026-11-03 13:36:36 +05:30
|
|
|
{/* Ambient Radial Lighting Glow */}
|
2026-11-03 13:16:16 +05:30
|
|
|
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-[450px] bg-gradient-to-b from-blue-500/[0.04] via-indigo-500/[0.03] to-transparent blur-3xl pointer-events-none -z-10" />
|
2026-11-03 12:24:43 +05:30
|
|
|
|
2026-11-03 13:36:36 +05:30
|
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
2026-11-03 16:49:56 +05:30
|
|
|
{/* Subtle Massive 3D Background Typographic Watermark (Enigma Style) */}
|
|
|
|
|
<div
|
|
|
|
|
className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-max select-none pointer-events-none opacity-[0.04] -z-20 preserve-3d"
|
|
|
|
|
style={{ transform: 'perspective(1000px) rotateX(10deg)' }}
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
>
|
|
|
|
|
<span className="text-[14vw] font-display font-black tracking-tighter text-slate-950 uppercase leading-none block">
|
|
|
|
|
CRE INNOVATIONS // NEURAL VISION
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-11-03 16:44:13 +05:30
|
|
|
{/* 3D Ambient Kinetic Prism Floating Behind Header */}
|
|
|
|
|
<div className="absolute top-12 left-1/2 -translate-x-1/2 w-[320px] h-[320px] pointer-events-none -z-10 opacity-70 hidden md:block">
|
|
|
|
|
<Hero3DCanvas className="w-full h-full" />
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-11-03 13:36:36 +05:30
|
|
|
{/* Main Hero Header */}
|
2026-11-03 18:06:20 +05:30
|
|
|
<div className="text-center max-w-4xl mx-auto space-y-6 mb-10 sm:mb-14 relative z-10">
|
|
|
|
|
{/* Live Core Status & Animate UI Shimmer Badge */}
|
|
|
|
|
<div className="flex flex-wrap items-center justify-center gap-2.5">
|
|
|
|
|
<ShimmerBadge>
|
|
|
|
|
<span className="relative flex h-2 w-2 mr-1">
|
|
|
|
|
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-500 opacity-75"></span>
|
|
|
|
|
<span className="relative inline-flex rounded-full h-2 w-2 bg-blue-600"></span>
|
|
|
|
|
</span>
|
|
|
|
|
<span>{resolvedBadge || 'NEXT-GEN NEURAL STUDIO v4.2'}</span>
|
|
|
|
|
</ShimmerBadge>
|
|
|
|
|
|
|
|
|
|
<div className="hidden sm:inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-amber-50/80 border border-amber-200/60 text-[11px] font-mono font-bold text-amber-800 shadow-sm">
|
|
|
|
|
<span>FP16 LOSSLESS PIPELINE</span>
|
2026-11-03 12:24:43 +05:30
|
|
|
</div>
|
2026-11-03 16:44:13 +05:30
|
|
|
</div>
|
2026-11-03 12:59:38 +05:30
|
|
|
|
2026-11-03 16:49:56 +05:30
|
|
|
{/* 3D Kinetic Interactive Typography */}
|
|
|
|
|
<Kinetic3DText
|
|
|
|
|
primaryText="Transform Photos with"
|
|
|
|
|
highlightText="Next-Gen Neural AI"
|
|
|
|
|
subtitle={resolvedSubtitle}
|
|
|
|
|
/>
|
2026-11-03 18:06:20 +05:30
|
|
|
|
|
|
|
|
{/* Pixelcut-Style Dynamic Morphing Capability Bar */}
|
|
|
|
|
<div className="flex flex-wrap items-center justify-center gap-2 pt-1 pb-1">
|
|
|
|
|
<span className="text-xs font-mono text-slate-500 font-semibold mr-1">Live Engine Focus:</span>
|
|
|
|
|
<span className="inline-flex items-center px-3 py-1 rounded-full bg-white border border-blue-200 text-blue-700 text-xs font-mono font-bold shadow-sm">
|
|
|
|
|
<MorphingText
|
|
|
|
|
texts={[
|
|
|
|
|
'Sub-Pore Skin Texture Retouching ✦',
|
|
|
|
|
'0.02px Flyaway Hair Strand Matting ✦',
|
|
|
|
|
'4K Generative Facial Super-Resolution ✦',
|
|
|
|
|
'Historical Emulsion Tear Inpainting ✦',
|
|
|
|
|
'Manga Vector Dynamic Cel Shading ✦',
|
|
|
|
|
'64-Channel Deep Spectral Colorization ✦',
|
|
|
|
|
]}
|
|
|
|
|
interval={2600}
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Pixelcut-Style Interactive Tool Chips */}
|
|
|
|
|
<div className="flex flex-wrap items-center justify-center gap-2 pt-1">
|
|
|
|
|
<Link
|
|
|
|
|
href="/tools/blemish-remover"
|
|
|
|
|
className="px-3.5 py-1.5 rounded-full bg-white hover:bg-blue-50 border border-slate-200 hover:border-blue-300 text-xs font-semibold text-slate-700 hover:text-blue-700 shadow-sm transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0 flex items-center gap-1.5"
|
|
|
|
|
>
|
|
|
|
|
<span>✨ Retouch Skin</span>
|
|
|
|
|
</Link>
|
|
|
|
|
<Link
|
|
|
|
|
href="/tools/background-remover"
|
|
|
|
|
className="px-3.5 py-1.5 rounded-full bg-white hover:bg-blue-50 border border-slate-200 hover:border-blue-300 text-xs font-semibold text-slate-700 hover:text-blue-700 shadow-sm transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0 flex items-center gap-1.5"
|
|
|
|
|
>
|
|
|
|
|
<span>✂️ Cut Out Hair</span>
|
|
|
|
|
</Link>
|
|
|
|
|
<Link
|
|
|
|
|
href="/tools/photo-enhancer"
|
|
|
|
|
className="px-3.5 py-1.5 rounded-full bg-white hover:bg-blue-50 border border-slate-200 hover:border-blue-300 text-xs font-semibold text-slate-700 hover:text-blue-700 shadow-sm transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0 flex items-center gap-1.5"
|
|
|
|
|
>
|
|
|
|
|
<span>🔍 4K Upscale</span>
|
|
|
|
|
</Link>
|
|
|
|
|
<Link
|
|
|
|
|
href="/tools/colorization"
|
|
|
|
|
className="px-3.5 py-1.5 rounded-full bg-white hover:bg-blue-50 border border-slate-200 hover:border-blue-300 text-xs font-semibold text-slate-700 hover:text-blue-700 shadow-sm transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0 flex items-center gap-1.5"
|
|
|
|
|
>
|
|
|
|
|
<span>🎨 Colorize B&W</span>
|
|
|
|
|
</Link>
|
|
|
|
|
</div>
|
2026-11-03 12:24:43 +05:30
|
|
|
</div>
|
|
|
|
|
|
2026-11-03 18:06:20 +05:30
|
|
|
{/* Embedded Interactive Free Try-It Widget wrapped with Animate UI Border Beam */}
|
2026-11-03 13:36:36 +05:30
|
|
|
<div className="max-w-4xl mx-auto relative z-10">
|
2026-11-03 18:06:20 +05:30
|
|
|
<div className="relative rounded-3xl overflow-hidden p-1 bg-gradient-to-b from-blue-500/20 via-slate-900/[0.04] to-transparent shadow-2xl">
|
|
|
|
|
<BorderBeam duration={12} size={300} borderWidth={2} colorFrom="#3b82f6" colorTo="#8b5cf6" />
|
2026-11-03 13:36:36 +05:30
|
|
|
<TryItWidget
|
|
|
|
|
tool={tool}
|
|
|
|
|
homeApp={homeApp}
|
|
|
|
|
variants={variants}
|
|
|
|
|
locale={locale}
|
|
|
|
|
/>
|
2026-11-03 18:06:20 +05:30
|
|
|
</div>
|
2026-11-03 12:24:43 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2026-11-03 12:59:38 +05:30
|
|
|
// Centered Hero for Tools/Apps/Pricing pages
|
2026-11-03 12:24:43 +05:30
|
|
|
return (
|
2026-11-03 14:30:31 +05:30
|
|
|
<section className="relative overflow-hidden pt-28 pb-20 sm:pt-36 sm:pb-28 text-center bg-[#FAF8F5] border-b border-slate-900/[0.07]">
|
2026-11-03 13:16:16 +05:30
|
|
|
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-96 bg-gradient-to-b from-blue-500/[0.04] to-transparent blur-3xl pointer-events-none -z-10" />
|
2026-11-03 12:24:43 +05:30
|
|
|
|
2026-11-03 13:36:36 +05:30
|
|
|
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6 relative z-10">
|
2026-11-03 12:24:43 +05:30
|
|
|
{resolvedBadge && (
|
2026-11-03 13:16:16 +05:30
|
|
|
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-blue-50 border border-blue-200 text-xs font-mono font-semibold text-blue-700 shadow-sm">
|
|
|
|
|
<Sparkles className="w-3.5 h-3.5 text-blue-600" />
|
2026-11-03 12:24:43 +05:30
|
|
|
<span>{resolvedBadge}</span>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
2026-11-03 13:16:16 +05:30
|
|
|
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-display font-black text-slate-900 tracking-tight leading-tight">
|
2026-11-03 12:24:43 +05:30
|
|
|
{resolvedTitle}
|
|
|
|
|
</h1>
|
|
|
|
|
|
2026-11-03 13:16:16 +05:30
|
|
|
<p className="text-base sm:text-xl text-slate-600 max-w-2xl mx-auto leading-relaxed">
|
2026-11-03 12:24:43 +05:30
|
|
|
{resolvedSubtitle}
|
|
|
|
|
</p>
|
|
|
|
|
|
2026-11-03 12:59:38 +05:30
|
|
|
<div className="flex flex-wrap items-center justify-center gap-4 pt-4">
|
2026-11-03 12:24:43 +05:30
|
|
|
<Link
|
2026-11-03 13:16:16 +05:30
|
|
|
href="/#studio-suite"
|
|
|
|
|
className="inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-xs sm:text-sm text-white bg-blue-600 hover:bg-blue-700 shadow-sm shadow-blue-500/20 transition-all hover:scale-105 active:scale-95"
|
2026-11-03 12:24:43 +05:30
|
|
|
>
|
2026-11-03 13:16:16 +05:30
|
|
|
<Layers className="w-4 h-4 text-white" />
|
|
|
|
|
<span>The Creative Suite</span>
|
2026-11-03 12:24:43 +05:30
|
|
|
</Link>
|
|
|
|
|
<Link
|
|
|
|
|
href="/apps"
|
2026-11-03 13:16:16 +05:30
|
|
|
className="inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-xs sm:text-sm text-slate-700 bg-white border border-slate-200 hover:bg-slate-50 transition-colors shadow-sm"
|
2026-11-03 12:24:43 +05:30
|
|
|
>
|
2026-11-03 13:16:16 +05:30
|
|
|
<Smartphone className="w-4 h-4 text-blue-600" />
|
2026-11-03 12:24:43 +05:30
|
|
|
<span>Mobile Apps Suite</span>
|
|
|
|
|
</Link>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|