feat(ui): smooth horizontal scroll with script lerp and add interactive 3d kinetic typography
This commit is contained in:
@@ -7,6 +7,7 @@ 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';
|
||||
|
||||
interface HeroSectionProps {
|
||||
title?: any;
|
||||
@@ -43,6 +44,17 @@ export function HeroSection({
|
||||
<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" />
|
||||
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
{/* 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>
|
||||
|
||||
{/* 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" />
|
||||
@@ -61,23 +73,17 @@ export function HeroSection({
|
||||
<span>{resolvedBadge}</span>
|
||||
</div>
|
||||
)}
|
||||
<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">
|
||||
<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>VOL. 26 // NEURAL STUDIO</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Main Headline with Editorial Kerning and Fluid Scale */}
|
||||
<h1 className="text-4xl sm:text-5xl lg:text-6xl xl:text-7xl font-display font-black text-slate-900 tracking-tight leading-[1.08] max-w-4xl mx-auto">
|
||||
Transform Photos with <br className="hidden sm:inline" />
|
||||
<span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-700 via-indigo-600 to-amber-600">
|
||||
Next-Gen Neural AI
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
{/* Subtitle with Refined Editorial Measure */}
|
||||
<p className="text-base sm:text-lg lg:text-xl text-slate-600 leading-relaxed max-w-2xl mx-auto font-normal">
|
||||
{resolvedSubtitle}
|
||||
</p>
|
||||
{/* 3D Kinetic Interactive Typography */}
|
||||
<Kinetic3DText
|
||||
primaryText="Transform Photos with"
|
||||
highlightText="Next-Gen Neural AI"
|
||||
subtitle={resolvedSubtitle}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Embedded Interactive Free Try-It Widget wrapped with 3D Tilt Card */}
|
||||
|
||||
Reference in New Issue
Block a user