feat(ui): redesign free browser trial tag, optimize phone/tablet responsiveness, integrate lenis smooth scroll, and focus copy strictly on effects & mobile apps
This commit is contained in:
@@ -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" }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Generated
+32
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
+21
-1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
/>
|
||||
</head>
|
||||
<body className="min-h-screen flex flex-col antialiased selection:bg-blue-600 selection:text-white bg-[#FAF8F5] text-slate-900 relative">
|
||||
<SmoothScroll />
|
||||
<CursorAura />
|
||||
<Navbar config={config} currentLocale="en" />
|
||||
<main className="flex-1">{children}</main>
|
||||
|
||||
@@ -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({
|
||||
<p className="text-base sm:text-lg lg:text-xl text-slate-600 leading-relaxed max-w-2xl mx-auto font-normal">
|
||||
{resolvedSubtitle}
|
||||
</p>
|
||||
|
||||
{/* Guarantees Bar - Frosted Glass Micro-Pills */}
|
||||
<div className="pt-2 flex flex-wrap items-center justify-center gap-3 sm:gap-4 text-xs font-mono">
|
||||
<span className="inline-flex items-center gap-2 bg-white/80 backdrop-blur-sm border border-slate-900/[0.08] px-4 py-2 rounded-full shadow-sm text-slate-800">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-600 shrink-0" />
|
||||
<span className="font-semibold text-slate-800">100% In-Memory RAM Stream</span>
|
||||
</span>
|
||||
<span className="inline-flex items-center gap-2 bg-white/80 backdrop-blur-sm border border-slate-900/[0.08] px-4 py-2 rounded-full shadow-sm text-slate-800">
|
||||
<Cpu className="w-4 h-4 text-blue-600 shrink-0" />
|
||||
<span className="font-semibold text-slate-800">Sub-Pore Neural Precision</span>
|
||||
</span>
|
||||
<span className="inline-flex items-center gap-2 bg-white/80 backdrop-blur-sm border border-slate-900/[0.08] px-4 py-2 rounded-full shadow-sm text-slate-800">
|
||||
<Zap className="w-4 h-4 text-amber-500 shrink-0" />
|
||||
<span className="font-semibold text-slate-800">Zero Watermark Previews</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Embedded Interactive Free Try-It Widget wrapped with 3D Tilt Card */}
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
@@ -161,29 +161,39 @@ export function TryItWidget({
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={`relative bg-white rounded-3xl p-6 sm:p-10 border border-slate-900/[0.08] shadow-cream-md overflow-hidden ${className}`}>
|
||||
<div className={`relative bg-white rounded-3xl p-5 sm:p-8 lg:p-10 border border-slate-900/[0.08] shadow-cream-md overflow-hidden ${className}`}>
|
||||
{/* Top Header & Tries Counter */}
|
||||
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 pb-6 border-b border-slate-100">
|
||||
<div className="flex items-center gap-3.5">
|
||||
<div className="w-11 h-11 rounded-2xl bg-gradient-to-tr from-blue-600 to-indigo-600 flex items-center justify-center text-white shadow-md shadow-blue-500/20 shrink-0">
|
||||
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-5 sm:pb-6 border-b border-slate-100">
|
||||
<div className="flex items-center gap-3 sm:gap-4 min-w-0">
|
||||
<div className="w-10 h-10 sm:w-11 sm:h-11 rounded-2xl bg-gradient-to-tr from-blue-600 via-indigo-600 to-blue-700 flex items-center justify-center text-white shadow-md shadow-blue-500/20 shrink-0">
|
||||
<Zap className="w-5 h-5" />
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="font-display font-bold text-slate-900 text-base sm:text-lg flex items-center gap-2">
|
||||
<span>{resolveLocalised(tool.name, locale)}</span>
|
||||
<span className="text-[10px] font-mono text-blue-700 bg-blue-50 border border-blue-200 px-2 py-0.5 rounded-full font-semibold">
|
||||
Free Browser Trial
|
||||
</span>
|
||||
</h3>
|
||||
<p className="text-xs font-mono text-slate-500 mt-0.5">
|
||||
Zero Watermarks • In-Memory RAM Stream • No Sign-Up
|
||||
<div className="min-w-0">
|
||||
<div className="flex flex-wrap items-center gap-2 sm:gap-2.5">
|
||||
<h3 className="font-display font-bold text-slate-900 text-base sm:text-lg tracking-tight">
|
||||
{resolveLocalised(tool.name, locale)}
|
||||
</h3>
|
||||
<div className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-[11px] font-mono font-semibold text-blue-700 bg-gradient-to-r from-blue-50 via-indigo-50/60 to-blue-50 border border-blue-200/80 shadow-2xs whitespace-nowrap">
|
||||
<span className="relative flex h-2 w-2">
|
||||
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"></span>
|
||||
<span className="relative inline-flex rounded-full h-2 w-2 bg-blue-600"></span>
|
||||
</span>
|
||||
<span>Free Browser Trial</span>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-xs text-slate-500 mt-1 font-normal flex items-center gap-1.5 flex-wrap">
|
||||
<span>Studio-Grade AI Enhancement</span>
|
||||
<span className="text-slate-300 hidden sm:inline">•</span>
|
||||
<span className="hidden sm:inline">Instant Visual Quality</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="self-end sm:self-auto flex items-center gap-2 bg-emerald-50 border border-emerald-200 px-3.5 py-1.5 rounded-full text-xs font-mono text-emerald-800 font-semibold">
|
||||
<span className="w-2 h-2 rounded-full bg-emerald-500 animate-pulse"></span>
|
||||
<span>{remainingTries} free tries today</span>
|
||||
<div className="flex items-center justify-between sm:justify-end gap-2 shrink-0 pt-2.5 sm:pt-0 border-t sm:border-t-0 border-slate-100">
|
||||
<div className="inline-flex items-center gap-2 bg-emerald-50 border border-emerald-200/90 px-3.5 py-1.5 rounded-full text-xs font-mono text-emerald-800 font-semibold shadow-2xs">
|
||||
<span className="w-2 h-2 rounded-full bg-emerald-500 animate-pulse"></span>
|
||||
<span>{remainingTries} free tries today</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -328,7 +338,7 @@ export function TryItWidget({
|
||||
CRE Neural Vision Engine Processing...
|
||||
</h4>
|
||||
<p className="text-xs sm:text-sm text-slate-500 max-w-sm mx-auto mt-1 font-mono">
|
||||
Synthesizing deep learning layers while preserving native pore texture in volatile RAM.
|
||||
Synthesizing deep neural layers while preserving natural textures and micro-details.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -215,15 +215,15 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
|
||||
<div className="space-y-2.5 pt-2">
|
||||
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
|
||||
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
|
||||
<span>Zero photo retention with volatile RAM streaming</span>
|
||||
<span>Sub-pixel edge and realistic texture preservation</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
|
||||
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
|
||||
<span>Full HD lossless output with no watermark</span>
|
||||
<span>Studio-grade 4K lossless enhancement</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
|
||||
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
|
||||
<span>Seamless mobile handoff with 50 bonus credits</span>
|
||||
<span>Full creative control in native iOS & Android apps</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -271,23 +271,23 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
|
||||
{/* Centered Symmetrical Bottom Banner */}
|
||||
<div className="mt-16 max-w-5xl mx-auto rounded-3xl bg-white p-6 sm:p-8 border border-slate-900/[0.08] shadow-cream-sm flex flex-col sm:flex-row items-center justify-between gap-5 text-center sm:text-left">
|
||||
<div className="flex items-center gap-3.5">
|
||||
<div className="w-10 h-10 rounded-2xl bg-emerald-50 border border-emerald-200 flex items-center justify-center text-emerald-700 shrink-0">
|
||||
<ShieldCheck className="w-5 h-5" />
|
||||
<div className="w-10 h-10 rounded-2xl bg-blue-50 border border-blue-200 flex items-center justify-center text-blue-600 shrink-0">
|
||||
<Smartphone className="w-5 h-5" />
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-sm font-display font-bold text-slate-900">
|
||||
100% In-Memory RAM Stream Guaranteed
|
||||
Dedicated Mobile Creative Suites for iOS & Android
|
||||
</p>
|
||||
<p className="text-xs text-slate-500 font-normal">
|
||||
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.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<Link
|
||||
href="/apps"
|
||||
className="shrink-0 inline-flex items-center gap-2 px-5 py-2.5 rounded-full text-xs font-bold text-blue-700 bg-blue-50 border border-blue-200 hover:bg-blue-100 transition-colors"
|
||||
className="shrink-0 inline-flex items-center gap-2 px-5 py-2.5 rounded-full text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-sm shadow-blue-500/20 transition-all"
|
||||
>
|
||||
<span>Need Offline or 4K Batch Mode?</span>
|
||||
<span>Explore Mobile Apps</span>
|
||||
<ArrowRight className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -170,20 +170,6 @@ export function BeforeAfterSlider({
|
||||
<span>{afterLabel}</span>
|
||||
</div>
|
||||
|
||||
{/* Animated Sliding Status Pill */}
|
||||
<div className="absolute bottom-3 left-1/2 -translate-x-1/2 bg-slate-900/85 backdrop-blur-md px-3.5 py-1 rounded-full text-[10px] font-mono font-semibold text-white pointer-events-none border border-white/10 shadow-sm flex items-center gap-1.5">
|
||||
{autoSlide && !isUserInteracting ? (
|
||||
<>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse" />
|
||||
<span>Auto-Scanning Difference (Hover to Drag)</span>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-blue-400" />
|
||||
<span>Interactive Drag Mode</span>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{caption && (
|
||||
|
||||
@@ -27,7 +27,7 @@ export function Footer({ config, currentLocale }: FooterProps) {
|
||||
<div className="flex flex-wrap items-center gap-3 pt-2">
|
||||
<div className="inline-flex items-center gap-2 text-xs text-emerald-800 bg-emerald-100/70 border border-emerald-300 px-3.5 py-1.5 rounded-full font-mono">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-700" />
|
||||
<span>Zero-Storage Policy: Ephemeral RAM Streaming Only</span>
|
||||
<span>Enterprise-Grade Photo Privacy Guarantee</span>
|
||||
</div>
|
||||
|
||||
<div className="inline-flex items-center gap-2 text-xs text-blue-800 bg-blue-100/70 border border-blue-300 px-3 py-1.5 rounded-full font-mono">
|
||||
|
||||
@@ -65,12 +65,12 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
</nav>
|
||||
|
||||
{/* Right CTA Button */}
|
||||
<div className="hidden lg:flex items-center space-x-3">
|
||||
<div className="hidden md:flex items-center space-x-3">
|
||||
<Link
|
||||
href={config.nav.cta.href}
|
||||
className="group relative inline-flex items-center gap-2 px-5 py-2.5 rounded-full text-xs font-bold text-white bg-gradient-to-r from-blue-600 via-indigo-600 to-blue-600 hover:from-blue-700 hover:to-indigo-700 shadow-md shadow-blue-500/25 hover:shadow-lg hover:shadow-blue-500/35 transition-all duration-300 hover:scale-105 active:scale-95"
|
||||
className="group relative inline-flex items-center gap-1.5 lg:gap-2 px-3.5 py-2 lg:px-5 lg:py-2.5 rounded-full text-xs font-bold text-white bg-gradient-to-r from-blue-600 via-indigo-600 to-blue-600 hover:from-blue-700 hover:to-indigo-700 shadow-md shadow-blue-500/25 hover:shadow-lg hover:shadow-blue-500/35 transition-all duration-300 hover:scale-105 active:scale-95"
|
||||
>
|
||||
<Smartphone className="w-4 h-4 text-white group-hover:rotate-6 transition-transform" />
|
||||
<Smartphone className="w-3.5 h-3.5 lg:w-4 lg:h-4 text-white group-hover:rotate-6 transition-transform" />
|
||||
<span>{resolveLocalised(config.nav.cta.label, currentLocale)}</span>
|
||||
<ArrowUpRight className="w-3.5 h-3.5 opacity-80 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform" />
|
||||
</Link>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user