diff --git a/content/pages/home.json b/content/pages/home.json index a86f501..2f723d6 100644 --- a/content/pages/home.json +++ b/content/pages/home.json @@ -38,8 +38,8 @@ "items": [ { "value": "140M+", "label": "Photos Enhanced" }, { "value": "4.9 ★", "label": "App Store & Play Rating" }, - { "value": "0 sec", "label": "Sign-up Required" }, - { "value": "100%", "label": "In-Memory RAM Streaming" } + { "value": "4K", "label": "Ultra HD Lossless Export" }, + { "value": "4 Apps", "label": "Dedicated Mobile Suites" } ] } }, diff --git a/package-lock.json b/package-lock.json index 744203a..fc4ceda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@types/three": "^0.187.0", "clsx": "^2.1.1", + "lenis": "^1.3.27", "lucide-react": "^0.468.0", "next": "^14.2.15", "qrcode": "^1.5.4", @@ -2085,6 +2086,37 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "license": "MIT" }, + "node_modules/lenis": { + "version": "1.3.27", + "resolved": "https://registry.npmjs.org/lenis/-/lenis-1.3.27.tgz", + "integrity": "sha512-QIHNH4LIfWyLfgH/5K0aTGZgyFJJ7GfHNcaH/AIgyKjb8gstLh5siNGvrVqz1w5ClLXzOvllBVk7vby8JzUVPQ==", + "license": "MIT", + "workspaces": [ + "packages/*", + "playground", + "playground/*" + ], + "funding": { + "type": "github", + "url": "https://github.com/sponsors/darkroomengineering" + }, + "peerDependencies": { + "@nuxt/kit": ">=3.0.0", + "react": ">=17.0.0", + "vue": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + }, + "react": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, "node_modules/lilconfig": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.4.tgz", diff --git a/package.json b/package.json index 3d31907..7987951 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dependencies": { "@types/three": "^0.187.0", "clsx": "^2.1.1", + "lenis": "^1.3.27", "lucide-react": "^0.468.0", "next": "^14.2.15", "qrcode": "^1.5.4", diff --git a/src/app/globals.css b/src/app/globals.css index e6ab190..b4a6716 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -3,6 +3,23 @@ @tailwind utilities; @layer base { + /* Lenis Ultra-Smooth Fluid Scroll */ + html.lenis, html.lenis body { + height: auto; + } + .lenis.lenis-smooth { + scroll-behavior: auto !important; + } + .lenis.lenis-smooth [data-lenis-prevent] { + overscroll-behavior: contain; + } + .lenis.lenis-stopped { + overflow: hidden; + } + .lenis.lenis-scrolling iframe { + pointer-events: none; + } + :root { --color-primary: #2563EB; --color-primary-hover: #1D4ED8; @@ -15,6 +32,10 @@ --theme-max-width: 1400px; } + html { + scroll-behavior: auto; + } + body { color: #0F172A; background-color: #FAF8F5; @@ -25,7 +46,6 @@ background-attachment: fixed; font-family: var(--font-sans), system-ui, -apple-system, sans-serif; overflow-x: hidden; - scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 7b79680..a4008e0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,6 +5,7 @@ import { getSiteConfig } from '@/lib/config/loader'; import { Navbar } from '@/components/ui/Navbar'; import { Footer } from '@/components/ui/Footer'; import { CursorAura } from '@/components/ui/CursorAura'; +import { SmoothScroll } from '@/components/ui/SmoothScroll'; const sansFont = Plus_Jakarta_Sans({ subsets: ['latin'], @@ -89,6 +90,7 @@ export default function RootLayout({ /> +
{children}
diff --git a/src/components/sections/HeroSection.tsx b/src/components/sections/HeroSection.tsx index 55e27c7..011242d 100644 --- a/src/components/sections/HeroSection.tsx +++ b/src/components/sections/HeroSection.tsx @@ -2,7 +2,7 @@ import React from 'react'; import Link from 'next/link'; -import { Sparkles, ArrowRight, Smartphone, ShieldCheck, Zap, Layers, Cpu } from 'lucide-react'; +import { Sparkles, ArrowRight, Smartphone, Layers } from 'lucide-react'; import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types'; import { TryItWidget } from './TryItWidget'; import { TiltCard } from '@/components/ui/TiltCard'; @@ -67,22 +67,6 @@ export function HeroSection({

{resolvedSubtitle}

- - {/* Guarantees Bar - Frosted Glass Micro-Pills */} -
- - - 100% In-Memory RAM Stream - - - - Sub-Pore Neural Precision - - - - Zero Watermark Previews - -
{/* Embedded Interactive Free Try-It Widget wrapped with 3D Tilt Card */} diff --git a/src/components/sections/MajorToolBannersSection.tsx b/src/components/sections/MajorToolBannersSection.tsx index 2cf939f..87a55e9 100644 --- a/src/components/sections/MajorToolBannersSection.tsx +++ b/src/components/sections/MajorToolBannersSection.tsx @@ -39,7 +39,7 @@ const flagshipBanners: FlagshipBanner[] = [ afterUrl: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80', benefits: [ 'Sub-pixel flyaway hair detection', - 'Clean alpha transparent PNG streaming', + 'Crisp alpha transparent background export', 'Zero edge bleeding or color fringes', ], align: 'left', @@ -60,7 +60,7 @@ const flagshipBanners: FlagshipBanner[] = [ benefits: [ 'Microscopic skin pore texture retained', 'Instant acne, scar & discoloration repair', - 'Volatile RAM streaming with zero storage', + 'Authentic skin tone & micro-pore retention', ], align: 'right', }, @@ -80,7 +80,7 @@ const flagshipBanners: FlagshipBanner[] = [ benefits: [ 'Iris clarity & sharp eyelash synthesis', '400% lossless resolution upscaling', - 'Instant 1-click HD browser download', + 'Studio-grade portrait iris & eyelash clarity', ], align: 'left', }, diff --git a/src/components/sections/TryItWidget.tsx b/src/components/sections/TryItWidget.tsx index 56eb577..11bfeb5 100644 --- a/src/components/sections/TryItWidget.tsx +++ b/src/components/sections/TryItWidget.tsx @@ -161,29 +161,39 @@ export function TryItWidget({ }; return ( -
+
{/* Top Header & Tries Counter */} -
-
-
+
+
+
-
-

- {resolveLocalised(tool.name, locale)} - - Free Browser Trial - -

-

- Zero Watermarks • In-Memory RAM Stream • No Sign-Up +

+
+

+ {resolveLocalised(tool.name, locale)} +

+
+ + + + + Free Browser Trial +
+
+

+ Studio-Grade AI Enhancement + • + Instant Visual Quality

-
- - {remainingTries} free tries today +
+
+ + {remainingTries} free tries today +
@@ -328,7 +338,7 @@ export function TryItWidget({ CRE Neural Vision Engine Processing...

- Synthesizing deep learning layers while preserving native pore texture in volatile RAM. + Synthesizing deep neural layers while preserving natural textures and micro-details.

diff --git a/src/components/sections/VerticalToolStackSection.tsx b/src/components/sections/VerticalToolStackSection.tsx index c12ebef..13b09aa 100644 --- a/src/components/sections/VerticalToolStackSection.tsx +++ b/src/components/sections/VerticalToolStackSection.tsx @@ -215,15 +215,15 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
- Zero photo retention with volatile RAM streaming + Sub-pixel edge and realistic texture preservation
- Full HD lossless output with no watermark + Studio-grade 4K lossless enhancement
- Seamless mobile handoff with 50 bonus credits + Full creative control in native iOS & Android apps
@@ -271,23 +271,23 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) { {/* Centered Symmetrical Bottom Banner */}
-
- +
+

- 100% In-Memory RAM Stream Guaranteed + Dedicated Mobile Creative Suites for iOS & Android

- All photos are processed in volatile RAM buffers and destroyed immediately upon response delivery. + Batch enhancement, RAW camera file support, and instant offline exports across our native mobile app lineup.

- Need Offline or 4K Batch Mode? + Explore Mobile Apps
diff --git a/src/components/ui/BeforeAfterSlider.tsx b/src/components/ui/BeforeAfterSlider.tsx index b5bf940..f438b83 100644 --- a/src/components/ui/BeforeAfterSlider.tsx +++ b/src/components/ui/BeforeAfterSlider.tsx @@ -170,20 +170,6 @@ export function BeforeAfterSlider({ {afterLabel}
- {/* Animated Sliding Status Pill */} -
- {autoSlide && !isUserInteracting ? ( - <> - - Auto-Scanning Difference (Hover to Drag) - - ) : ( - <> - - Interactive Drag Mode - - )} -
{caption && ( diff --git a/src/components/ui/Footer.tsx b/src/components/ui/Footer.tsx index 14ba59a..d2ddde4 100644 --- a/src/components/ui/Footer.tsx +++ b/src/components/ui/Footer.tsx @@ -27,7 +27,7 @@ export function Footer({ config, currentLocale }: FooterProps) {
- Zero-Storage Policy: Ephemeral RAM Streaming Only + Enterprise-Grade Photo Privacy Guarantee
diff --git a/src/components/ui/Navbar.tsx b/src/components/ui/Navbar.tsx index d686067..86c51e0 100644 --- a/src/components/ui/Navbar.tsx +++ b/src/components/ui/Navbar.tsx @@ -65,12 +65,12 @@ export function Navbar({ config, currentLocale }: NavbarProps) { {/* Right CTA Button */} -
+
- + {resolveLocalised(config.nav.cta.label, currentLocale)} diff --git a/src/components/ui/SmoothScroll.tsx b/src/components/ui/SmoothScroll.tsx new file mode 100644 index 0000000..552e235 --- /dev/null +++ b/src/components/ui/SmoothScroll.tsx @@ -0,0 +1,57 @@ +'use client'; + +import { useEffect } from 'react'; +import Lenis from 'lenis'; + +export function SmoothScroll() { + useEffect(() => { + // Check prefers-reduced-motion + if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return; + + const lenis = new Lenis({ + duration: 1.2, + easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)), + orientation: 'vertical', + gestureOrientation: 'vertical', + smoothWheel: true, + wheelMultiplier: 0.95, + touchMultiplier: 1.5, + }); + + let rafId: number; + function raf(time: number) { + lenis.raf(time); + rafId = requestAnimationFrame(raf); + } + + rafId = requestAnimationFrame(raf); + + // Smooth scroll for anchor clicks (e.g. #studio-suite, #flagship-models) + const handleAnchorClick = (e: MouseEvent) => { + const target = e.target as HTMLElement; + const anchor = target.closest('a'); + if (!anchor) return; + const href = anchor.getAttribute('href'); + if (href && href.startsWith('#') && href.length > 1) { + const targetEl = document.querySelector(href); + if (targetEl) { + e.preventDefault(); + lenis.scrollTo(targetEl as HTMLElement, { offset: -90, duration: 1.2 }); + } + } + }; + document.addEventListener('click', handleAnchorClick); + + // Expose lenis to window for external triggers + (window as any).lenis = lenis; + + return () => { + cancelAnimationFrame(rafId); + document.removeEventListener('click', handleAnchorClick); + lenis.destroy(); + delete (window as any).lenis; + }; + }, []); + + return null; +}