feat(ui): overhaul reel, use-cases, pipeline, and app handoff sections
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import QRCode from 'qrcode';
|
||||
import { Smartphone, QrCode, Copy, Check, Gift, ExternalLink } from 'lucide-react';
|
||||
import { Smartphone, QrCode, Copy, Check, Gift, ExternalLink, Zap } from 'lucide-react';
|
||||
import { AppItem, ToolItem, resolveLocalised } from '@/types';
|
||||
|
||||
interface AppHandoffSectionProps {
|
||||
@@ -36,7 +36,7 @@ export function AppHandoffSection({
|
||||
width: 200,
|
||||
margin: 1,
|
||||
color: {
|
||||
dark: '#0f172a',
|
||||
dark: '#030508',
|
||||
light: '#ffffff',
|
||||
},
|
||||
})
|
||||
@@ -52,48 +52,51 @@ export function AppHandoffSection({
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="py-12 sm:py-16 bg-gradient-to-br from-blue-50/50 via-white to-cyan-50/50 dark:from-slate-900/60 dark:via-slate-900/40 dark:to-slate-950/60 border-y border-slate-200/80 dark:border-slate-800/80">
|
||||
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="bg-white/95 dark:bg-slate-900/95 backdrop-blur-xl rounded-3xl p-6 sm:p-10 border border-slate-200/80 dark:border-slate-800/80 shadow-2xl flex flex-col md:flex-row items-center justify-between gap-8 sm:gap-12">
|
||||
<section className="py-16 sm:py-24 bg-[#07090E] border-y border-white/[0.08] relative overflow-hidden">
|
||||
{/* Ambient background glow */}
|
||||
<div className="absolute top-1/2 right-1/4 -translate-y-1/2 w-96 h-96 bg-purple-500/10 blur-3xl rounded-full pointer-events-none" />
|
||||
|
||||
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
<div className="glass-card rounded-3xl p-6 sm:p-12 border border-white/[0.08] shadow-2xl flex flex-col md:flex-row items-center justify-between gap-8 sm:gap-12">
|
||||
{/* Left Column: Copy & Store CTA */}
|
||||
<div className="space-y-4 max-w-xl">
|
||||
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-cyan-400 text-xs font-bold border border-blue-100 dark:border-blue-900/40">
|
||||
<Smartphone className="w-3.5 h-3.5" />
|
||||
<span>Native iOS & Android Application</span>
|
||||
<div className="space-y-5 max-w-xl">
|
||||
<div className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-cyan-950/60 border border-cyan-500/30 text-xs font-mono text-cyan-300">
|
||||
<Smartphone className="w-3.5 h-3.5 text-cyan-400" />
|
||||
<span>NATIVE IOS & ANDROID APPS</span>
|
||||
</div>
|
||||
|
||||
<h3 className="text-2xl sm:text-3xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
<h3 className="text-2xl sm:text-3xl lg:text-4xl font-display font-extrabold text-white tracking-tight">
|
||||
{tool
|
||||
? `Continue in ${resolveLocalised(app.name, locale)} with 4K Lossless Export`
|
||||
: `Download ${resolveLocalised(app.name, locale)}`}
|
||||
</h3>
|
||||
|
||||
<p className="text-xs sm:text-sm text-slate-600 dark:text-slate-400 leading-relaxed">
|
||||
<p className="text-xs sm:text-sm text-slate-400 leading-relaxed">
|
||||
Experience zero-latency hardware-accelerated neural processing, batch photoshoot enhancement, and professional fine-tuning sliders on your phone.
|
||||
</p>
|
||||
|
||||
{/* Welcome Bonus Promo Banner */}
|
||||
{showBonus && (
|
||||
<div className="p-4 sm:p-5 rounded-2xl bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-950/40 dark:to-orange-950/40 border border-amber-200/80 dark:border-amber-800/60 flex items-center justify-between shadow-sm">
|
||||
<div className="flex items-center space-x-3.5">
|
||||
<div className="w-11 h-11 rounded-xl bg-amber-100 dark:bg-amber-900/60 flex items-center justify-center text-amber-600 shrink-0">
|
||||
<div className="p-4 sm:p-5 rounded-2xl bg-gradient-to-r from-purple-950/40 to-cyan-950/40 border border-purple-500/30 flex items-center justify-between shadow-sm">
|
||||
<div className="flex items-center gap-3.5">
|
||||
<div className="w-11 h-11 rounded-xl bg-purple-500/20 border border-purple-500/30 flex items-center justify-center text-purple-400 shrink-0">
|
||||
<Gift className="w-5 h-5" />
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs sm:text-sm font-extrabold text-slate-900 dark:text-white">
|
||||
<p className="text-xs sm:text-sm font-display font-bold text-white">
|
||||
{app.welcomeBonus?.title || '50 Free HD Export Credits'}
|
||||
</p>
|
||||
<p className="text-[11px] text-slate-600 dark:text-slate-400">
|
||||
Claim promo code upon first mobile install
|
||||
<p className="text-[11px] font-mono text-slate-400">
|
||||
Claim promo code on first mobile launch
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={copyPromo}
|
||||
className="inline-flex items-center space-x-1.5 px-3 py-1.5 rounded-xl text-xs font-mono font-bold bg-white dark:bg-slate-900 border border-amber-300 dark:border-amber-700 text-amber-800 dark:text-amber-300 hover:bg-amber-100 dark:hover:bg-amber-950 shadow-sm transition-colors"
|
||||
className="inline-flex items-center gap-1.5 px-3.5 py-2 rounded-xl text-xs font-mono font-bold bg-[#07090E] border border-cyan-500/40 text-cyan-300 hover:bg-cyan-950/40 shadow-sm transition-all active:scale-95"
|
||||
>
|
||||
{copied ? <Check className="w-3.5 h-3.5 text-emerald-600" /> : <Copy className="w-3.5 h-3.5" />}
|
||||
{copied ? <Check className="w-3.5 h-3.5 text-emerald-400" /> : <Copy className="w-3.5 h-3.5 text-cyan-400" />}
|
||||
<span>{bonusCode}</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -105,7 +108,7 @@ export function AppHandoffSection({
|
||||
href={app.stores.android?.url || '#'}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="px-5 py-3 rounded-2xl text-xs font-bold text-white bg-slate-900 hover:bg-slate-800 dark:bg-white dark:text-slate-900 dark:hover:bg-slate-100 shadow-md transition-all flex items-center space-x-2"
|
||||
className="px-5 py-3 rounded-full text-xs font-bold text-black bg-white hover:bg-slate-200 shadow-md transition-all flex items-center gap-2 hover:scale-105 active:scale-95"
|
||||
>
|
||||
<span>Google Play</span>
|
||||
<ExternalLink className="w-3.5 h-3.5 opacity-60" />
|
||||
@@ -114,7 +117,7 @@ export function AppHandoffSection({
|
||||
href={app.stores.ios?.url || '#'}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="px-5 py-3 rounded-2xl text-xs font-bold text-white bg-slate-900 hover:bg-slate-800 dark:bg-white dark:text-slate-900 dark:hover:bg-slate-100 shadow-md transition-all flex items-center space-x-2"
|
||||
className="px-5 py-3 rounded-full text-xs font-bold text-white bg-white/[0.08] border border-white/[0.15] hover:bg-white/[0.15] shadow-md transition-all flex items-center gap-2 hover:scale-105 active:scale-95"
|
||||
>
|
||||
<span>Apple App Store</span>
|
||||
<ExternalLink className="w-3.5 h-3.5 opacity-60" />
|
||||
@@ -122,23 +125,23 @@ export function AppHandoffSection({
|
||||
</div>
|
||||
|
||||
{/* Disclaimer */}
|
||||
<p className="text-[11px] text-slate-400 dark:text-slate-500 italic">
|
||||
<p className="text-[11px] font-mono text-slate-500 italic">
|
||||
{resolveLocalised(app.creditsNote, locale, 'Credits and in-app purchases are specific to this app.')}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Right Column: QR Code Handoff */}
|
||||
{showQr && qrDataUrl && (
|
||||
<div className="text-center p-6 sm:p-8 rounded-3xl bg-slate-50/80 dark:bg-slate-950/80 border border-slate-200/80 dark:border-slate-800/80 shadow-inner shrink-0">
|
||||
<div className="p-3 bg-white rounded-2xl shadow-md inline-block">
|
||||
<div className="text-center p-6 sm:p-8 rounded-3xl bg-[#05070B] border border-white/[0.08] shadow-2xl shrink-0">
|
||||
<div className="p-3 bg-white rounded-2xl shadow-xl inline-block">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={qrDataUrl} alt="Scan QR code to install app" className="w-36 h-36 sm:w-40 sm:h-40" />
|
||||
</div>
|
||||
<div className="mt-3.5 flex items-center justify-center space-x-2 text-xs font-bold text-slate-700 dark:text-slate-300">
|
||||
<QrCode className="w-4 h-4 text-blue-600 dark:text-cyan-400" />
|
||||
<div className="mt-4 flex items-center justify-center gap-2 text-xs font-mono font-bold text-cyan-400">
|
||||
<QrCode className="w-4 h-4 text-cyan-400" />
|
||||
<span>Scan with phone camera</span>
|
||||
</div>
|
||||
<p className="text-[10px] text-slate-500 mt-0.5">Instant redirect to store listing</p>
|
||||
<p className="text-[10px] font-mono text-slate-500 mt-1">Instant redirect to store listing</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -11,15 +11,15 @@ export function StatsSection({ items = [] }: StatsSectionProps) {
|
||||
if (!items || items.length === 0) return null;
|
||||
|
||||
return (
|
||||
<section className="py-8 bg-slate-50/50 dark:bg-slate-950/40 border-y border-slate-200 dark:border-slate-800">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-6 text-center">
|
||||
<section className="py-10 bg-[#030508] border-y border-white/[0.08] relative overflow-hidden">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-8 text-center divide-y md:divide-y-0 md:divide-x divide-white/[0.06]">
|
||||
{items.map((stat, idx) => (
|
||||
<div key={idx} className="space-y-1">
|
||||
<p className="text-3xl sm:text-4xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-blue-600 to-teal-500">
|
||||
<div key={idx} className="pt-4 md:pt-0 space-y-1.5">
|
||||
<p className="text-3xl sm:text-4xl lg:text-5xl font-display font-black bg-clip-text text-transparent bg-gradient-to-r from-cyan-400 via-teal-300 to-purple-400 tracking-tight">
|
||||
{stat.value}
|
||||
</p>
|
||||
<p className="text-xs font-medium text-slate-500 dark:text-slate-400">
|
||||
<p className="text-xs font-mono uppercase tracking-wider text-slate-400">
|
||||
{stat.label}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import React, { useState, useMemo } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Search, Sparkles, ArrowRight, Wand2, Scissors, Smile, Palette, RefreshCcw, Eye } from 'lucide-react';
|
||||
import { Search, ArrowRight, Wand2, Scissors, Smile, Palette, RefreshCcw } from 'lucide-react';
|
||||
import { ToolItem, CategoryItem, AppItem, resolveLocalised } from '@/types';
|
||||
|
||||
interface ToolGridSectionProps {
|
||||
@@ -56,31 +56,31 @@ export function ToolGridSection({
|
||||
const getCategoryIcon = (catId: string) => {
|
||||
switch (catId) {
|
||||
case 'portrait-retouch':
|
||||
return <Smile className="w-4 h-4 text-rose-500" />;
|
||||
return <Smile className="w-4 h-4 text-cyan-400" />;
|
||||
case 'restoration':
|
||||
return <RefreshCcw className="w-4 h-4 text-amber-500" />;
|
||||
return <RefreshCcw className="w-4 h-4 text-purple-400" />;
|
||||
case 'background-cutout':
|
||||
return <Scissors className="w-4 h-4 text-emerald-500" />;
|
||||
return <Scissors className="w-4 h-4 text-emerald-400" />;
|
||||
case 'creative-art':
|
||||
return <Palette className="w-4 h-4 text-purple-500" />;
|
||||
return <Palette className="w-4 h-4 text-pink-400" />;
|
||||
default:
|
||||
return <Wand2 className="w-4 h-4 text-blue-500" />;
|
||||
return <Wand2 className="w-4 h-4 text-cyan-400" />;
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="py-12 sm:py-16 lg:py-20">
|
||||
<section className="py-16 sm:py-20 lg:py-24 bg-[#05070B] border-t border-white/[0.08]">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
{/* Section Heading */}
|
||||
{(title || subtitle) && (
|
||||
<div className="text-center max-w-3xl mx-auto mb-10 space-y-3">
|
||||
<div className="text-center max-w-3xl mx-auto mb-12 space-y-3">
|
||||
{title && (
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-white tracking-tight">
|
||||
{resolveLocalised(title, locale)}
|
||||
</h2>
|
||||
)}
|
||||
{subtitle && (
|
||||
<p className="text-sm sm:text-base text-slate-600 dark:text-slate-400">
|
||||
<p className="text-sm sm:text-base text-slate-400">
|
||||
{resolveLocalised(subtitle, locale)}
|
||||
</p>
|
||||
)}
|
||||
@@ -96,8 +96,8 @@ export function ToolGridSection({
|
||||
onClick={() => setSelectedCategory('all')}
|
||||
className={`px-4 py-2 rounded-xl text-xs font-bold transition-all duration-200 ${
|
||||
selectedCategory === 'all'
|
||||
? 'bg-blue-600 text-white shadow-md shadow-blue-500/25 scale-105'
|
||||
: 'bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-700'
|
||||
? 'bg-cyan-500 text-black shadow-lg shadow-cyan-500/25 scale-105'
|
||||
: 'bg-white/[0.04] text-slate-300 border border-white/[0.08] hover:bg-white/[0.08]'
|
||||
}`}
|
||||
>
|
||||
All Tools
|
||||
@@ -106,10 +106,10 @@ export function ToolGridSection({
|
||||
<button
|
||||
key={cat.id}
|
||||
onClick={() => setSelectedCategory(cat.id)}
|
||||
className={`flex items-center space-x-1.5 px-3.5 py-2 rounded-xl text-xs font-bold transition-all duration-200 ${
|
||||
className={`flex items-center gap-1.5 px-3.5 py-2 rounded-xl text-xs font-bold transition-all duration-200 ${
|
||||
selectedCategory === cat.id
|
||||
? 'bg-blue-600 text-white shadow-md shadow-blue-500/25 scale-105'
|
||||
: 'bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-700'
|
||||
? 'bg-cyan-500 text-black shadow-lg shadow-cyan-500/25 scale-105'
|
||||
: 'bg-white/[0.04] text-slate-300 border border-white/[0.08] hover:bg-white/[0.08]'
|
||||
}`}
|
||||
>
|
||||
<span>{getCategoryIcon(cat.id)}</span>
|
||||
@@ -127,7 +127,7 @@ export function ToolGridSection({
|
||||
placeholder="Search AI photo tools..."
|
||||
value={searchQuery}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
className="w-full pl-10 pr-4 py-2.5 rounded-2xl text-xs sm:text-sm border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 text-slate-900 dark:text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500 shadow-sm"
|
||||
className="w-full pl-10 pr-4 py-2.5 rounded-2xl text-xs sm:text-sm border border-white/[0.1] bg-[#0B0F17] text-white placeholder-slate-400 focus:outline-none focus:border-cyan-400 focus:ring-1 focus:ring-cyan-400 shadow-sm"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
@@ -143,12 +143,12 @@ export function ToolGridSection({
|
||||
return (
|
||||
<div
|
||||
key={tool.id}
|
||||
className="group relative bg-white dark:bg-slate-900/95 rounded-3xl p-5 sm:p-6 border border-slate-200/80 dark:border-slate-800/80 shadow-md hover:shadow-2xl hover:shadow-blue-500/10 hover:border-blue-500/40 hover:-translate-y-1.5 transition-all duration-300 flex flex-col justify-between"
|
||||
className="group relative glass-card rounded-3xl p-5 sm:p-6 border border-white/[0.08] hover:border-cyan-500/30 transition-all duration-300 flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
{/* Visual Before/After Preview Card */}
|
||||
{example ? (
|
||||
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-4 bg-slate-950 shadow-inner group/thumb">
|
||||
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-4 bg-[#05070B] border border-white/[0.08] shadow-inner group/thumb">
|
||||
<div className="grid grid-cols-2 h-full w-full">
|
||||
<div className="relative h-full overflow-hidden border-r border-white/20">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
@@ -158,7 +158,7 @@ export function ToolGridSection({
|
||||
loading="lazy"
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
<span className="absolute bottom-1.5 left-1.5 bg-black/75 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
|
||||
<span className="absolute bottom-1.5 left-1.5 bg-black/80 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-slate-300 border border-white/10">
|
||||
Before
|
||||
</span>
|
||||
</div>
|
||||
@@ -168,10 +168,10 @@ export function ToolGridSection({
|
||||
src={example.after}
|
||||
alt="After preview"
|
||||
loading="lazy"
|
||||
className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-300"
|
||||
className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-500"
|
||||
/>
|
||||
<span className="absolute bottom-1.5 right-1.5 bg-blue-600/90 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
|
||||
After
|
||||
<span className="absolute bottom-1.5 right-1.5 bg-gradient-to-r from-cyan-500 to-purple-600 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-white shadow-sm border border-white/20">
|
||||
CRE AI
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -180,28 +180,28 @@ export function ToolGridSection({
|
||||
|
||||
{/* Category Tag & Icon */}
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<span className="text-[11px] font-bold tracking-wider uppercase text-blue-600 dark:text-cyan-400 bg-blue-50 dark:bg-blue-950/60 px-3 py-1 rounded-lg border border-blue-100 dark:border-blue-900/40">
|
||||
<span className="text-[10.5px] font-mono font-bold uppercase tracking-wider text-cyan-400 bg-cyan-950/60 px-2.5 py-0.5 rounded-lg border border-cyan-500/30">
|
||||
{tool.category}
|
||||
</span>
|
||||
<div className="w-8 h-8 rounded-xl bg-slate-100 dark:bg-slate-800 flex items-center justify-center text-slate-600 dark:text-slate-300 group-hover:scale-110 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 group-hover:text-blue-600 transition-all duration-200">
|
||||
<div className="w-8 h-8 rounded-xl bg-white/[0.04] border border-white/[0.08] flex items-center justify-center text-slate-300 group-hover:scale-110 group-hover:border-cyan-500/30 transition-all duration-200">
|
||||
{getCategoryIcon(tool.category)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 className="text-lg font-bold text-slate-900 dark:text-white group-hover:text-blue-600 dark:group-hover:text-cyan-400 transition-colors">
|
||||
<h3 className="text-lg font-display font-bold text-white group-hover:text-cyan-300 transition-colors">
|
||||
{resolveLocalised(tool.name, locale)}
|
||||
</h3>
|
||||
|
||||
<p className="mt-2 text-xs text-slate-600 dark:text-slate-400 line-clamp-2 leading-relaxed">
|
||||
<p className="mt-2 text-xs text-slate-400 line-clamp-2 leading-relaxed">
|
||||
{resolveLocalised(tool.summary, locale)}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-5 pt-4 border-t border-slate-100 dark:border-slate-800/80 space-y-3">
|
||||
<div className="mt-5 pt-4 border-t border-white/[0.08] space-y-3">
|
||||
{homeApp && (
|
||||
<div className="text-[11px] text-slate-500 dark:text-slate-400 flex items-center justify-between">
|
||||
<span className="font-medium">Home App:</span>
|
||||
<span className="font-bold text-slate-700 dark:text-slate-300 truncate max-w-[140px]">
|
||||
<div className="text-[11px] font-mono text-slate-400 flex items-center justify-between">
|
||||
<span>Home App:</span>
|
||||
<span className="font-bold text-slate-300 truncate max-w-[140px]">
|
||||
{resolveLocalised(homeApp.name, locale)}
|
||||
</span>
|
||||
</div>
|
||||
@@ -209,7 +209,7 @@ export function ToolGridSection({
|
||||
|
||||
<Link
|
||||
href={`/tools/${tool.slug}`}
|
||||
className="w-full inline-flex items-center justify-center space-x-2 py-3 rounded-2xl text-xs font-bold text-blue-600 dark:text-cyan-400 bg-blue-50 dark:bg-blue-950/40 hover:bg-blue-600 hover:text-white dark:hover:bg-blue-600 dark:hover:text-white transition-all duration-200 shadow-sm group-hover:shadow-md"
|
||||
className="w-full inline-flex items-center justify-center gap-2 py-3 rounded-2xl text-xs font-bold text-black bg-gradient-to-r from-cyan-400 to-teal-300 hover:from-cyan-300 hover:to-teal-200 shadow-md transition-all duration-200"
|
||||
>
|
||||
<span>Try Free Online</span>
|
||||
<ArrowRight className="w-3.5 h-3.5 group-hover:translate-x-1 transition-transform" />
|
||||
@@ -221,7 +221,7 @@ export function ToolGridSection({
|
||||
</div>
|
||||
|
||||
{filteredTools.length === 0 && (
|
||||
<div className="text-center py-16 text-slate-500 dark:text-slate-400 space-y-2">
|
||||
<div className="text-center py-16 text-slate-400 space-y-2 font-mono">
|
||||
<p className="font-bold">No photo tools found matching "{searchQuery}"</p>
|
||||
<p className="text-xs">Try searching for "blemish", "background", "photo", or clear filters.</p>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { ArrowRight, Sparkles } from 'lucide-react';
|
||||
import { ArrowRight, Sparkles, Zap } from 'lucide-react';
|
||||
|
||||
interface TransformationItem {
|
||||
toolSlug: string;
|
||||
@@ -66,64 +66,67 @@ const transformations: TransformationItem[] = [
|
||||
|
||||
export function TransformationReelSection() {
|
||||
return (
|
||||
<section className="py-10 bg-slate-100/50 dark:bg-slate-950/40 border-y border-slate-200/80 dark:border-slate-800/80 overflow-hidden">
|
||||
<section className="py-12 bg-[#05070B] border-y border-white/[0.08] overflow-hidden relative">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mb-6 flex items-center justify-between">
|
||||
<div className="flex items-center space-x-2">
|
||||
<Sparkles className="w-4 h-4 text-cyan-500 animate-pulse" />
|
||||
<h3 className="text-xs sm:text-sm font-extrabold uppercase tracking-wider text-slate-900 dark:text-white">
|
||||
<div className="flex items-center gap-2.5">
|
||||
<span className="flex h-2 w-2 relative">
|
||||
<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>
|
||||
<h3 className="text-xs sm:text-sm font-mono uppercase tracking-widest text-slate-300">
|
||||
Live Transformations by CRE Neural Engine
|
||||
</h3>
|
||||
</div>
|
||||
<Link
|
||||
href="/tools"
|
||||
className="text-xs font-bold text-blue-600 dark:text-cyan-400 hover:underline flex items-center space-x-1"
|
||||
href="/#tools-stack"
|
||||
className="text-xs font-mono text-cyan-400 hover:text-cyan-300 hover:underline flex items-center gap-1.5 transition-colors"
|
||||
>
|
||||
<span>Explore all 8+ tools</span>
|
||||
<span>Explore All 8+ Tools</span>
|
||||
<ArrowRight className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
{/* Horizontal scrolling showcase */}
|
||||
<div className="flex gap-4 sm:gap-6 overflow-x-auto pb-4 px-4 sm:px-8 no-scrollbar scroll-smooth">
|
||||
<div className="flex gap-5 sm:gap-6 overflow-x-auto pb-4 px-4 sm:px-8 no-scrollbar scroll-smooth">
|
||||
{transformations.map((item, idx) => (
|
||||
<Link
|
||||
key={idx}
|
||||
href={`/tools/${item.toolSlug}`}
|
||||
className="group shrink-0 w-64 sm:w-72 bg-white dark:bg-slate-900 rounded-2xl p-3 border border-slate-200/80 dark:border-slate-800/80 shadow-sm hover:shadow-xl hover:border-blue-500/50 hover:-translate-y-1 transition-all duration-300"
|
||||
className="group shrink-0 w-64 sm:w-72 bg-[#0B0F17]/80 rounded-2xl p-3.5 border border-white/[0.08] hover:border-cyan-500/40 shadow-xl hover:shadow-[0_0_25px_rgba(0,240,255,0.15)] hover:-translate-y-1 transition-all duration-300"
|
||||
>
|
||||
{/* Visual side-by-side or split thumbnail */}
|
||||
<div className="relative aspect-[16/10] rounded-xl overflow-hidden mb-3 bg-slate-950">
|
||||
<div className="relative aspect-[16/10] rounded-xl overflow-hidden mb-3 bg-[#07090E] border border-white/[0.06]">
|
||||
<div className="grid grid-cols-2 h-full w-full">
|
||||
<div className="relative h-full overflow-hidden border-r border-white/20">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={item.before} alt="Before" className="h-full w-full object-cover" />
|
||||
<span className="absolute bottom-1.5 left-1.5 bg-black/70 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
|
||||
<span className="absolute bottom-1.5 left-1.5 bg-black/80 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-slate-300 border border-white/10">
|
||||
Before
|
||||
</span>
|
||||
</div>
|
||||
<div className="relative h-full overflow-hidden">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={item.after} alt="After" className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-300" />
|
||||
<span className="absolute bottom-1.5 right-1.5 bg-blue-600/90 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
|
||||
After
|
||||
<img src={item.after} alt="After" className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-500" />
|
||||
<span className="absolute bottom-1.5 right-1.5 bg-gradient-to-r from-cyan-500/90 to-purple-600/90 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-white shadow-sm border border-white/20">
|
||||
CRE AI
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-1">
|
||||
<div className="space-y-1.5">
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-[10px] font-bold text-cyan-600 dark:text-cyan-400 uppercase tracking-wide">
|
||||
<span className="text-[10px] font-mono uppercase tracking-wider text-cyan-400">
|
||||
{item.category}
|
||||
</span>
|
||||
<span className="text-[10px] font-medium text-slate-400">
|
||||
<span className="text-[10px] font-mono text-slate-400 group-hover:text-cyan-300 transition-colors">
|
||||
Try Free →
|
||||
</span>
|
||||
</div>
|
||||
<p className="font-bold text-xs sm:text-sm text-slate-900 dark:text-white truncate group-hover:text-blue-600 transition-colors">
|
||||
<p className="font-display font-bold text-sm text-white group-hover:text-cyan-300 transition-colors truncate">
|
||||
{item.toolName}
|
||||
</p>
|
||||
<p className="text-[11px] text-slate-500 dark:text-slate-400 truncate">
|
||||
<p className="text-[11px] font-mono text-slate-400 truncate">
|
||||
{item.tag}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Sparkles, ArrowRight, CheckCircle2, ShoppingBag, Camera, Archive, Palette } from 'lucide-react';
|
||||
import { Sparkles, ArrowRight, CheckCircle2, ShoppingBag, Camera, Archive, Palette, Zap } from 'lucide-react';
|
||||
|
||||
interface UseCaseCard {
|
||||
title: string;
|
||||
@@ -68,17 +68,17 @@ const useCases: UseCaseCard[] = [
|
||||
|
||||
export function VisualUseCasesSection() {
|
||||
return (
|
||||
<section className="py-16 sm:py-24 bg-white dark:bg-slate-900 border-t border-slate-200/80 dark:border-slate-800/80">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="text-center max-w-3xl mx-auto mb-14 space-y-3">
|
||||
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-cyan-50 dark:bg-cyan-950/70 border border-cyan-200 dark:border-cyan-800 text-xs font-bold text-cyan-700 dark:text-cyan-300">
|
||||
<Sparkles className="w-3.5 h-3.5 text-cyan-500" />
|
||||
<span>Real-World Visual Capabilities</span>
|
||||
<section className="py-20 sm:py-28 bg-[#07090E] border-t border-white/[0.08] relative overflow-hidden">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
<div className="text-center max-w-3xl mx-auto mb-16 space-y-4">
|
||||
<div className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-cyan-950/60 border border-cyan-500/30 text-xs font-mono text-cyan-300">
|
||||
<Zap className="w-3.5 h-3.5 text-cyan-400" />
|
||||
<span>REAL-WORLD VISUAL CAPABILITIES</span>
|
||||
</div>
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
Engineered for Creators & Studios
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-extrabold text-white tracking-tight">
|
||||
Engineered for <span className="text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-purple-400">Creators & Studios</span>
|
||||
</h2>
|
||||
<p className="text-sm sm:text-base text-slate-600 dark:text-slate-400">
|
||||
<p className="text-sm sm:text-base text-slate-400 max-w-2xl mx-auto">
|
||||
From single-click browser trials to full 4K studio batch exports, CRE Innovations powers every stage of your visual workflow.
|
||||
</p>
|
||||
</div>
|
||||
@@ -90,23 +90,23 @@ export function VisualUseCasesSection() {
|
||||
return (
|
||||
<div
|
||||
key={idx}
|
||||
className="group relative bg-slate-50/80 dark:bg-slate-950/80 rounded-3xl p-6 sm:p-8 border border-slate-200/80 dark:border-slate-800/80 shadow-md hover:shadow-2xl hover:border-blue-500/40 transition-all duration-300 flex flex-col justify-between"
|
||||
className="group relative glass-card rounded-3xl p-6 sm:p-8 border border-white/[0.08] hover:border-cyan-500/30 transition-all duration-300 flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
{/* Visual Before / After Split Frame */}
|
||||
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-6 bg-slate-950 shadow-inner">
|
||||
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-6 bg-[#05070B] border border-white/[0.08] shadow-inner">
|
||||
<div className="grid grid-cols-2 h-full w-full">
|
||||
<div className="relative h-full overflow-hidden border-r border-white/20">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={uc.beforeImg} alt={`${uc.title} before`} className="h-full w-full object-cover" />
|
||||
<span className="absolute top-3 left-3 bg-black/75 backdrop-blur-md px-2.5 py-1 rounded-md text-[10px] font-bold text-white">
|
||||
<span className="absolute top-3 left-3 bg-black/80 backdrop-blur-md px-2.5 py-1 rounded-md text-[9px] font-mono font-bold text-slate-300 border border-white/10">
|
||||
Original Input
|
||||
</span>
|
||||
</div>
|
||||
<div className="relative h-full overflow-hidden">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={uc.afterImg} alt={`${uc.title} after`} className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-300" />
|
||||
<span className="absolute top-3 right-3 bg-gradient-to-r from-blue-600 to-cyan-500 backdrop-blur-md px-2.5 py-1 rounded-md text-[10px] font-bold text-white shadow-md">
|
||||
<img src={uc.afterImg} alt={`${uc.title} after`} className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-500" />
|
||||
<span className="absolute top-3 right-3 bg-gradient-to-r from-cyan-500 to-purple-600 backdrop-blur-md px-2.5 py-1 rounded-md text-[9px] font-mono font-bold text-white shadow-md border border-white/20">
|
||||
CRE AI Result
|
||||
</span>
|
||||
</div>
|
||||
@@ -114,29 +114,29 @@ export function VisualUseCasesSection() {
|
||||
</div>
|
||||
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<div className="flex items-center space-x-2 text-xs font-bold text-cyan-600 dark:text-cyan-400">
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<div className="flex items-center gap-2 text-xs font-mono font-bold text-cyan-400">
|
||||
<Icon className="w-4 h-4" />
|
||||
<span>{uc.category}</span>
|
||||
</div>
|
||||
<span className="text-[11px] font-bold text-slate-500 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 px-2.5 py-0.5 rounded-full">
|
||||
<span className="text-[10.5px] font-mono text-slate-300 bg-white/[0.04] border border-white/[0.08] px-2.5 py-0.5 rounded-full">
|
||||
{uc.badge}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<h3 className="text-xl sm:text-2xl font-black text-slate-900 dark:text-white">
|
||||
<h3 className="text-xl sm:text-2xl font-display font-bold text-white group-hover:text-cyan-300 transition-colors">
|
||||
{uc.title}
|
||||
</h3>
|
||||
|
||||
<p className="mt-2 text-xs sm:text-sm text-slate-600 dark:text-slate-400 leading-relaxed">
|
||||
<p className="mt-2 text-xs sm:text-sm text-slate-400 leading-relaxed">
|
||||
{uc.desc}
|
||||
</p>
|
||||
|
||||
{/* Benefit points */}
|
||||
<div className="mt-4 pt-4 border-t border-slate-200/60 dark:border-slate-800/60 space-y-2">
|
||||
<div className="mt-5 pt-4 border-t border-white/[0.08] space-y-2">
|
||||
{uc.benefits.map((b, bIdx) => (
|
||||
<div key={bIdx} className="flex items-center space-x-2 text-xs font-medium text-slate-700 dark:text-slate-300">
|
||||
<CheckCircle2 className="w-3.5 h-3.5 text-emerald-500 shrink-0" />
|
||||
<div key={bIdx} className="flex items-center gap-2 text-xs text-slate-300">
|
||||
<CheckCircle2 className="w-3.5 h-3.5 text-cyan-400 shrink-0" />
|
||||
<span>{b}</span>
|
||||
</div>
|
||||
))}
|
||||
@@ -146,7 +146,7 @@ export function VisualUseCasesSection() {
|
||||
<div className="mt-6 pt-4">
|
||||
<Link
|
||||
href={`/tools/${uc.toolSlug}`}
|
||||
className="inline-flex items-center space-x-2 text-xs font-bold text-blue-600 dark:text-cyan-400 hover:text-blue-700 group-hover:translate-x-1 transition-all"
|
||||
className="inline-flex items-center gap-2 text-xs font-mono font-bold text-cyan-400 hover:text-cyan-300 group-hover:translate-x-1 transition-all"
|
||||
>
|
||||
<span>Launch {uc.toolName} online</span>
|
||||
<ArrowRight className="w-3.5 h-3.5" />
|
||||
|
||||
@@ -6,42 +6,45 @@ export function WorkflowVisualizerSection() {
|
||||
{
|
||||
num: '01',
|
||||
title: 'Upload Any Photo',
|
||||
desc: 'Drag & drop JPG, PNG, or WEBP up to 12MB. Client-side signature checks ensure fast, safe processing.',
|
||||
desc: 'Drag & drop JPG, PNG, or WEBP up to 12MB. Client-side signature checks ensure instantaneous, secure processing.',
|
||||
icon: UploadCloud,
|
||||
highlight: 'Zero Sign-Up Required',
|
||||
badgeColor: 'text-blue-500 bg-blue-50 dark:bg-blue-950/60',
|
||||
gradient: 'from-cyan-500/20 to-blue-500/10 text-cyan-400 border-cyan-500/30',
|
||||
},
|
||||
{
|
||||
num: '02',
|
||||
title: 'In-Memory Neural Inference',
|
||||
desc: 'Our neural models process pixels in volatile RAM and stream the result straight back. Nothing is stored.',
|
||||
desc: 'Our neural models process pixels purely in volatile RAM buffers and stream the binary result directly back. Zero disk storage.',
|
||||
icon: Cpu,
|
||||
highlight: 'Zero Storage Guarantee',
|
||||
badgeColor: 'text-cyan-500 bg-cyan-50 dark:bg-cyan-950/60',
|
||||
gradient: 'from-purple-500/20 to-pink-500/10 text-purple-400 border-purple-500/30',
|
||||
},
|
||||
{
|
||||
num: '03',
|
||||
title: 'Instant HD & 4K Mobile Handoff',
|
||||
desc: 'Download your result in standard HD or scan the QR code to unlock batch processing and 4K export in our app.',
|
||||
desc: 'Download your result in standard HD or scan the dynamic QR code to unlock batch processing and 4K lossless export in our mobile apps.',
|
||||
icon: Smartphone,
|
||||
highlight: '50 Free App Credits',
|
||||
badgeColor: 'text-indigo-500 bg-indigo-50 dark:bg-indigo-950/60',
|
||||
gradient: 'from-emerald-500/20 to-teal-500/10 text-emerald-400 border-emerald-500/30',
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section className="py-16 sm:py-24 bg-slate-50/60 dark:bg-slate-950/60 border-t border-slate-200/80 dark:border-slate-800/80">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="text-center max-w-3xl mx-auto mb-14 space-y-3">
|
||||
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-cyan-400 text-xs font-bold border border-blue-200/60 dark:border-blue-800/60">
|
||||
<Zap className="w-3.5 h-3.5 text-blue-500" />
|
||||
<span>High-Speed Architecture</span>
|
||||
<section className="py-20 sm:py-28 bg-[#05070B] border-t border-white/[0.08] relative overflow-hidden">
|
||||
{/* Ambient background glow */}
|
||||
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-3/4 h-64 bg-cyan-500/5 blur-3xl pointer-events-none" />
|
||||
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
<div className="text-center max-w-3xl mx-auto mb-16 space-y-4">
|
||||
<div className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-cyan-950/60 border border-cyan-500/30 text-xs font-mono text-cyan-300">
|
||||
<Zap className="w-3.5 h-3.5 text-cyan-400" />
|
||||
<span>HIGH-SPEED ZERO-STORAGE PIPELINE</span>
|
||||
</div>
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
How CRE Innovations Works
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-extrabold text-white tracking-tight">
|
||||
How <span className="text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-teal-300">CRE Innovations</span> Works
|
||||
</h2>
|
||||
<p className="text-sm sm:text-base text-slate-600 dark:text-slate-400">
|
||||
A frictionless pipeline engineered for speed, privacy, and seamless mobile transition.
|
||||
<p className="text-sm sm:text-base text-slate-400 max-w-2xl mx-auto">
|
||||
A frictionless pipeline engineered for microsecond latency, cryptographic user privacy, and fluid mobile transition.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -51,28 +54,28 @@ export function WorkflowVisualizerSection() {
|
||||
return (
|
||||
<div
|
||||
key={idx}
|
||||
className="relative bg-white dark:bg-slate-900 rounded-3xl p-7 sm:p-8 border border-slate-200/80 dark:border-slate-800/80 shadow-md hover:shadow-xl hover:-translate-y-1 transition-all duration-300 flex flex-col justify-between"
|
||||
className="relative glass-card rounded-3xl p-7 sm:p-8 border border-white/[0.08] hover:border-cyan-500/30 transition-all duration-300 flex flex-col justify-between group"
|
||||
>
|
||||
<div>
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<span className="text-3xl font-black text-slate-300 dark:text-slate-700 tracking-tighter">
|
||||
<span className="text-4xl font-mono font-black text-white/10 group-hover:text-cyan-400/30 transition-colors">
|
||||
{st.num}
|
||||
</span>
|
||||
<div className={`w-12 h-12 rounded-2xl flex items-center justify-center ${st.badgeColor} shadow-inner`}>
|
||||
<div className={`w-12 h-12 rounded-2xl flex items-center justify-center bg-gradient-to-br ${st.gradient} border shadow-lg`}>
|
||||
<Icon className="w-6 h-6" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 className="text-xl font-bold text-slate-900 dark:text-white mb-2">
|
||||
<h3 className="text-xl font-display font-bold text-white mb-2 group-hover:text-cyan-300 transition-colors">
|
||||
{st.title}
|
||||
</h3>
|
||||
<p className="text-xs sm:text-sm text-slate-600 dark:text-slate-400 leading-relaxed mb-6">
|
||||
<p className="text-xs sm:text-sm text-slate-400 leading-relaxed mb-6">
|
||||
{st.desc}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="pt-4 border-t border-slate-100 dark:border-slate-800 flex items-center space-x-2 text-xs font-bold text-slate-700 dark:text-slate-300">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-500" />
|
||||
<div className="pt-4 border-t border-white/[0.08] flex items-center gap-2 text-xs font-mono text-slate-300">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-400" />
|
||||
<span>{st.highlight}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user