feat(hero): overhaul hero and interactive try-it widget with neo-studio aesthetics

This commit is contained in:
2026-11-03 12:59:38 +05:30
parent a23776ad7c
commit 7aa031f6db
3 changed files with 143 additions and 110 deletions
+47 -35
View File
@@ -1,6 +1,6 @@
import React from 'react';
import Link from 'next/link';
import { Sparkles, ArrowRight, Smartphone, ShieldCheck, Zap } from 'lucide-react';
import { Sparkles, ArrowRight, Smartphone, ShieldCheck, Zap, Layers, Cpu } from 'lucide-react';
import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types';
import { TryItWidget } from './TryItWidget';
@@ -34,38 +34,50 @@ export function HeroSection({
if (variant === 'tryit' && tool) {
return (
<section className="relative overflow-hidden pt-8 pb-14 sm:pt-12 sm:pb-20 lg:pt-16 lg:pb-24">
{/* Ambient Radial Gradient Lights */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-96 bg-gradient-to-tr from-blue-600/15 via-cyan-500/10 to-indigo-600/15 blur-3xl pointer-events-none -z-10" />
<section className="relative overflow-hidden pt-10 pb-16 sm:pt-16 sm:pb-24 lg:pt-20 lg:pb-28">
{/* Ambient Cosmic Radial Background */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-[550px] bg-gradient-to-tr from-cyan-500/15 via-purple-600/15 to-transparent blur-3xl pointer-events-none -z-10" />
<div className="absolute top-20 right-10 w-72 h-72 bg-teal-500/10 rounded-full blur-3xl pointer-events-none -z-10" />
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="text-center max-w-3xl mx-auto space-y-4 mb-8 sm:mb-12">
<div className="text-center max-w-3xl mx-auto space-y-5 mb-10 sm:mb-14">
{/* Live Core Status Pill */}
{resolvedBadge && (
<div className="inline-flex items-center space-x-2 px-4 py-1.5 rounded-full bg-blue-50/80 dark:bg-blue-950/80 border border-blue-200/80 dark:border-blue-800/80 text-xs font-bold text-blue-700 dark:text-cyan-300 shadow-sm backdrop-blur-md">
<Sparkles className="w-3.5 h-3.5 text-blue-500 dark:text-cyan-400" />
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-cyan-950/60 border border-cyan-500/30 text-xs font-mono text-cyan-300 shadow-[0_0_20px_rgba(0,240,255,0.15)] backdrop-blur-xl">
<span className="relative flex h-2 w-2">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-cyan-400 opacity-75"></span>
<span className="relative inline-flex rounded-full h-2 w-2 bg-cyan-500"></span>
</span>
<span>{resolvedBadge}</span>
</div>
)}
<h1 className="text-3xl sm:text-5xl lg:text-6xl font-black text-slate-900 dark:text-white tracking-tight leading-tight">
{resolvedTitle}
{/* Main Headline with Chromatic Gradient */}
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-display font-black text-white tracking-tight leading-[1.1]">
Transform Photos with <br className="hidden sm:inline" />
<span className="text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 via-teal-300 to-purple-400">
Next-Gen Neural AI
</span>
</h1>
<p className="text-sm sm:text-lg text-slate-600 dark:text-slate-300 leading-relaxed max-w-2xl mx-auto">
{/* Subtitle */}
<p className="text-sm sm:text-lg text-slate-300 leading-relaxed max-w-2xl mx-auto font-normal">
{resolvedSubtitle}
</p>
{/* Quick Guarantees Pill */}
<div className="pt-1 flex flex-wrap items-center justify-center gap-3 sm:gap-6 text-xs font-semibold text-slate-500 dark:text-slate-400">
<span className="flex items-center space-x-1.5">
<ShieldCheck className="w-4 h-4 text-emerald-500" />
<span>Zero Storage Retention</span>
{/* Quick Badges Bar */}
<div className="pt-2 flex flex-wrap items-center justify-center gap-4 sm:gap-6 text-xs font-mono text-slate-400">
<span className="flex items-center gap-1.5 bg-white/[0.03] border border-white/[0.06] px-3 py-1 rounded-full">
<ShieldCheck className="w-3.5 h-3.5 text-emerald-400" />
<span className="text-slate-300">100% In-Memory RAM Stream</span>
</span>
<span className="flex items-center space-x-1.5">
<Zap className="w-4 h-4 text-amber-500" />
<span>Hardware Accelerated</span>
<span className="flex items-center gap-1.5 bg-white/[0.03] border border-white/[0.06] px-3 py-1 rounded-full">
<Cpu className="w-3.5 h-3.5 text-cyan-400" />
<span className="text-slate-300">Commercial Sub-Pore Models</span>
</span>
<span className="flex items-center space-x-1.5">
<Sparkles className="w-4 h-4 text-blue-500" />
<span>Pore-Preserving Texture</span>
<span className="flex items-center gap-1.5 bg-white/[0.03] border border-white/[0.06] px-3 py-1 rounded-full">
<Zap className="w-3.5 h-3.5 text-amber-400" />
<span className="text-slate-300">Zero Watermark Free Trials</span>
</span>
</div>
</div>
@@ -84,40 +96,40 @@ export function HeroSection({
);
}
// Centered Hero
// Centered Hero for Tools/Apps/Pricing pages
return (
<section className="relative overflow-hidden pt-12 pb-16 sm:pt-20 sm:pb-24 text-center">
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-80 bg-gradient-to-b from-blue-500/10 via-cyan-500/5 to-transparent blur-3xl pointer-events-none -z-10" />
<section className="relative overflow-hidden pt-16 pb-20 sm:pt-24 sm:pb-28 text-center bg-[#07090E]/60 border-b border-white/[0.06]">
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-96 bg-gradient-to-b from-cyan-500/10 via-purple-500/5 to-transparent blur-3xl pointer-events-none -z-10" />
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6">
{resolvedBadge && (
<div className="inline-flex items-center space-x-2 px-4 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950/80 border border-blue-200 dark:border-blue-800 text-xs font-bold text-blue-700 dark:text-cyan-300">
<Sparkles className="w-3.5 h-3.5" />
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-cyan-950/60 border border-cyan-500/30 text-xs font-mono text-cyan-300 shadow-sm">
<Sparkles className="w-3.5 h-3.5 text-cyan-400" />
<span>{resolvedBadge}</span>
</div>
)}
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-black text-slate-900 dark:text-white tracking-tight leading-tight">
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-display font-black text-white tracking-tight leading-tight">
{resolvedTitle}
</h1>
<p className="text-base sm:text-xl text-slate-600 dark:text-slate-300 max-w-2xl mx-auto leading-relaxed">
<p className="text-base sm:text-xl text-slate-300 max-w-2xl mx-auto leading-relaxed">
{resolvedSubtitle}
</p>
<div className="flex flex-wrap items-center justify-center gap-3 sm:gap-4 pt-4">
<div className="flex flex-wrap items-center justify-center gap-4 pt-4">
<Link
href="/tools"
className="inline-flex items-center space-x-2 px-7 py-3.5 rounded-2xl font-bold text-sm text-white bg-blue-600 hover:bg-blue-700 shadow-xl shadow-blue-500/25 transition-all hover:scale-105 active:scale-95"
href="/#tools-stack"
className="inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-xs sm:text-sm text-black bg-gradient-to-r from-cyan-400 to-teal-300 hover:from-cyan-300 hover:to-teal-200 shadow-[0_0_25px_rgba(0,240,255,0.35)] transition-all hover:scale-105 active:scale-95"
>
<span>Explore All Free Tools</span>
<ArrowRight className="w-4 h-4" />
<Layers className="w-4 h-4 text-black" />
<span>Vertical Tools Stack</span>
</Link>
<Link
href="/apps"
className="inline-flex items-center space-x-2 px-7 py-3.5 rounded-2xl font-bold text-sm text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors"
className="inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-xs sm:text-sm text-slate-200 bg-white/[0.05] border border-white/[0.1] hover:bg-white/[0.1] hover:text-white transition-colors"
>
<Smartphone className="w-4 h-4 text-slate-500" />
<Smartphone className="w-4 h-4 text-cyan-400" />
<span>Mobile Apps Suite</span>
</Link>
</div>