feat(ui): complete vertical layout overhaul, dynamic JSON banners, and animate-ui text motion graphics

This commit is contained in:
2026-11-03 18:06:20 +05:30
parent 8cec9692dc
commit b47b033ab7
24 changed files with 1419 additions and 608 deletions
+67 -19
View File
@@ -2,12 +2,14 @@
import React from 'react';
import Link from 'next/link';
import { Sparkles, ArrowRight, Smartphone, Layers } from 'lucide-react';
import { Sparkles, ArrowRight, Smartphone, Layers, Zap } from 'lucide-react';
import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types';
import { TryItWidget } from './TryItWidget';
import { TiltCard } from '@/components/ui/TiltCard';
import { Hero3DCanvas } from '@/components/3d/Hero3DCanvas';
import { Kinetic3DText } from '@/components/ui/Kinetic3DText';
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
import { BorderBeam } from '@/components/animate-ui/BorderBeam';
import { MorphingText } from '@/components/animate-ui/MorphingText';
interface HeroSectionProps {
title?: any;
@@ -61,20 +63,19 @@ export function HeroSection({
</div>
{/* Main Hero Header */}
<div className="text-center max-w-4xl mx-auto space-y-6 mb-12 sm:mb-16 relative z-10">
{/* Live Core Status & Enigma Editorial Metadata */}
<div className="flex flex-wrap items-center justify-center gap-2.5 preserve-3d">
{resolvedBadge && (
<div className="badge-3d inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-blue-50/90 border border-blue-200/80 text-xs font-mono font-semibold text-blue-700 shadow-sm backdrop-blur-sm">
<span className="relative flex h-2 w-2">
<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}</span>
</div>
)}
<div className="badge-3d 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>VOL. 26 // NEURAL STUDIO</span>
<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>
</div>
</div>
@@ -84,18 +85,65 @@ export function HeroSection({
highlightText="Next-Gen Neural AI"
subtitle={resolvedSubtitle}
/>
{/* 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>
</div>
{/* Embedded Interactive Free Try-It Widget wrapped with 3D Tilt Card */}
{/* Embedded Interactive Free Try-It Widget wrapped with Animate UI Border Beam */}
<div className="max-w-4xl mx-auto relative z-10">
<TiltCard maxTilt={4} scale={1.01} showGlare={true}>
<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" />
<TryItWidget
tool={tool}
homeApp={homeApp}
variants={variants}
locale={locale}
/>
</TiltCard>
</div>
</div>
</div>
</section>