2026-11-03 12:24:43 +05:30
'use client' ;
2026-11-06 18:38:45 +05:30
import React , { useState , useMemo , useRef , useEffect , useCallback } from 'react' ;
2026-11-03 12:24:43 +05:30
import Link from 'next/link' ;
2026-11-05 16:23:52 +05:30
import {
Search ,
ArrowRight ,
Wand2 ,
Scissors ,
Smile ,
Palette ,
Sparkles ,
X ,
2026-11-05 16:32:17 +05:30
Layers ,
2026-11-06 18:38:45 +05:30
Smartphone ,
ChevronRight ,
RotateCcw ,
2026-11-05 16:23:52 +05:30
} from 'lucide-react' ;
2026-11-03 12:24:43 +05:30
import { ToolItem , CategoryItem , AppItem , resolveLocalised } from '@/types' ;
2026-11-06 18:38:45 +05:30
import { KineticText } from '@/components/magicui/kinetic-text' ;
import { AnimatedShinyText } from '@/components/magicui/animated-shiny-text' ;
import { BorderBeam } from '@/components/magicui/border-beam' ;
import { RainbowButton } from '@/components/magicui/rainbow-button' ;
2026-11-03 12:24:43 +05:30
interface ToolGridSectionProps {
title? : any ;
subtitle? : any ;
tools? : ToolItem [];
categories? : CategoryItem [];
apps? : AppItem [];
showSearch? : boolean ;
showCategoryFilter? : boolean ;
limit? : number ;
columns? : number ;
locale? : string ;
}
2026-11-05 16:23:52 +05:30
type ToolMediaConfig =
| { type : 'comparison' ; before : string ; after : string }
2026-11-06 18:38:45 +05:30
| { type : 'video' ; videoUrl : string ; poster? : string ; badge : string }
2026-11-05 16:23:52 +05:30
| { type : 'single' ; image : string ; badge : string };
2026-11-05 16:32:17 +05:30
// Comprehensive media resolver for all tools
2026-11-05 16:23:52 +05:30
function getToolMedia ( tool : ToolItem ) : ToolMediaConfig {
const example = tool . content ? . examples ? .[ 0 ];
2026-11-05 16:32:17 +05:30
const localDefaults : Record < string , ToolMediaConfig > = {
2026-11-05 16:23:52 +05:30
'blemish-remover' : {
2026-11-05 16:32:17 +05:30
type : 'comparison' ,
2026-11-05 16:23:52 +05:30
before : '/management/pages/home/sections/our-tools/blemish-remover/before.jpg' ,
after : '/management/pages/home/sections/our-tools/blemish-remover/after.jpg' ,
},
'teeth-whitener' : {
2026-11-05 16:32:17 +05:30
type : 'comparison' ,
2026-11-05 16:23:52 +05:30
before : '/management/pages/home/sections/our-tools/teeth-whitener/before.jpg' ,
after : '/management/pages/home/sections/our-tools/teeth-whitener/after.jpg' ,
},
2026-11-05 16:32:17 +05:30
'eye-redness-remover' : {
type : 'comparison' ,
before : '/management/pages/home/sections/our-tools/eye-redness-remover/before.jpg' ,
after : '/management/pages/home/sections/our-tools/eye-redness-remover/after.jpg' ,
},
'eye-bag-remover' : {
type : 'comparison' ,
before : '/management/pages/home/sections/our-tools/eye-bag-remover/before.jpg' ,
after : '/management/pages/home/sections/our-tools/eye-bag-remover/after.jpg' ,
},
'portrait-glow' : {
type : 'comparison' ,
before : '/management/pages/home/sections/our-tools/portrait-glow/before.jpg' ,
after : '/management/pages/home/sections/our-tools/portrait-glow/after.jpg' ,
},
2026-11-05 16:23:52 +05:30
'photo-enhancer' : {
2026-11-05 16:32:17 +05:30
type : 'comparison' ,
2026-11-05 16:23:52 +05:30
before : '/management/pages/home/sections/our-tools/photo-enhancer/before.jpg' ,
after : '/management/pages/home/sections/our-tools/photo-enhancer/after.jpg' ,
},
'old-photo-restorer' : {
2026-11-05 16:32:17 +05:30
type : 'comparison' ,
2026-11-05 16:23:52 +05:30
before : '/management/pages/home/sections/our-tools/old-photo-restorer/before.jpg' ,
after : '/management/pages/home/sections/our-tools/old-photo-restorer/after.jpg' ,
},
'colorization' : {
2026-11-05 16:32:17 +05:30
type : 'comparison' ,
2026-11-05 16:23:52 +05:30
before : '/management/pages/home/sections/our-tools/colorization/before.jpg' ,
after : '/management/pages/home/sections/our-tools/colorization/after.jpg' ,
},
'cartoon-avatar' : {
2026-11-05 16:32:17 +05:30
type : 'comparison' ,
2026-11-05 16:23:52 +05:30
before : '/management/pages/home/sections/our-tools/cartoon-avatar/before.jpg' ,
after : '/management/pages/home/sections/our-tools/cartoon-avatar/after.jpg' ,
},
2026-11-05 16:32:17 +05:30
'object-eraser' : {
type : 'comparison' ,
before : 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80' ,
after : 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80' ,
},
'background-remover' : {
type : 'single' ,
image : '/management/pages/home/sections/our-tools/background-remover/poster.jpg' ,
badge : 'Alpha Matting' ,
},
'polaroid-maker' : {
type : 'single' ,
image : '/management/pages/home/sections/our-tools/polaroid-maker/image.jpg' ,
badge : 'Vintage Polaroid' ,
},
2026-11-05 16:23:52 +05:30
};
const matched = localDefaults [ tool . slug ];
2026-11-05 16:32:17 +05:30
if ( matched ) return matched ;
2026-11-05 16:23:52 +05:30
if ( example && example . before && example . after ) {
return {
type : 'comparison' ,
before : example.before ,
after : example.after ,
};
}
return {
type : 'single' ,
image : example?.after || '/management/pages/home/sections/our-tools/blemish-remover/after.jpg' ,
badge : 'AI Studio' ,
};
}
2026-11-06 18:38:45 +05:30
// Model specification tags for pro-grade UI
const TOOL_MODEL_SPECS : Record < string , string > = {
'blemish-remover' : 'Sub-pore Retouch GAN' ,
'teeth-whitener' : 'Enamel Luminance Refiner' ,
'eye-redness-remover' : 'Sclera Chromatic Balancer' ,
'eye-bag-remover' : 'Periorbital Volume Fill' ,
'portrait-glow' : 'Three-Point Studio Relight' ,
'photo-enhancer' : 'Real-ESRGAN 4K Super-Res' ,
'old-photo-restorer' : 'Archival Scratches & Deblur' ,
'colorization' : 'Historical Spectral Chroma' ,
'cartoon-avatar' : 'CartoonGAN Anime Synthesis' ,
'object-eraser' : 'Edge-Guided Inpainting' ,
'background-remover' : 'P3M Deep Alpha Matting' ,
'polaroid-maker' : 'Emulsion Color Matrix' ,
};
// Category visual themes aligned to Porcelain Light theme
2026-11-05 16:23:52 +05:30
const CATEGORY_THEMES : Record <
string ,
{
icon : React.ReactNode ;
color : string ;
badgeBg : string ;
2026-11-06 18:38:45 +05:30
description : string ;
2026-11-05 16:23:52 +05:30
}
> = {
'portrait-retouch' : {
2026-11-06 18:38:45 +05:30
icon : < Smile className = "w-4 h-4 text-rose-500" />,
2026-11-05 16:23:52 +05:30
color : 'text-rose-600' ,
2026-11-06 18:38:45 +05:30
badgeBg : 'bg-rose-500/10 text-rose-700 border-rose-500/20' ,
description : 'Sub-pore blemish removal, enamel whitening, redness clearing, and radiant studio lighting.' ,
2026-11-05 16:23:52 +05:30
},
'restoration' : {
2026-11-06 18:38:45 +05:30
icon : < Sparkles className = "w-4 h-4 text-indigo-500" />,
2026-11-05 16:23:52 +05:30
color : 'text-indigo-600' ,
2026-11-06 18:38:45 +05:30
badgeBg : 'bg-indigo-500/10 text-indigo-700 border-indigo-500/20' ,
description : 'Super-resolution 4K deblurring, vintage scratch removal, and authentic archival colorization.' ,
2026-11-05 16:23:52 +05:30
},
'background-cutout' : {
2026-11-06 18:38:45 +05:30
icon : < Scissors className = "w-4 h-4 text-emerald-500" />,
2026-11-05 16:23:52 +05:30
color : 'text-emerald-600' ,
2026-11-06 18:38:45 +05:30
badgeBg : 'bg-emerald-500/10 text-emerald-700 border-emerald-500/20' ,
description : 'P3M deep learning alpha matting separating hair strands, semi-transparent glass, and edges.' ,
2026-11-05 16:23:52 +05:30
},
'creative-art' : {
2026-11-06 18:38:45 +05:30
icon : < Palette className = "w-4 h-4 text-amber-500" />,
2026-11-05 16:23:52 +05:30
color : 'text-amber-600' ,
2026-11-06 18:38:45 +05:30
badgeBg : 'bg-amber-500/10 text-amber-700 border-amber-500/20' ,
description : 'Cel-shaded anime synthesis, vintage Polaroid emulsion borders, and object generative fill.' ,
2026-11-05 16:23:52 +05:30
},
};
2026-11-06 18:38:45 +05:30
// Interactive Before/After Card Image Component with Pointer and Touch scrubbing
2026-11-05 16:23:52 +05:30
function ToolCardImage ({ tool , toolName } : { tool : ToolItem ; toolName : string }) {
const [ splitPos , setSplitPos ] = useState < number >( 50 );
2026-11-06 18:38:45 +05:30
const containerRef = useRef < HTMLDivElement >( null );
const isDraggingRef = useRef ( false );
const videoRef = useRef < HTMLVideoElement >( null );
2026-11-05 16:23:52 +05:30
const media = getToolMedia ( tool );
2026-11-06 18:38:45 +05:30
// Video autoplay gating with IntersectionObserver
useEffect (() => {
if ( media . type !== 'video' ) return ;
const video = videoRef . current ;
if ( ! video ) return ;
let isIntersecting = false ;
const updatePlayState = () => {
if ( isIntersecting && ! document . hidden ) {
video . play (). catch (() => {});
} else {
video . pause ();
}
};
const observer = new IntersectionObserver (
([ entry ]) => {
isIntersecting = entry . isIntersecting ;
updatePlayState ();
},
{ threshold : 0.1 }
);
observer . observe ( video );
return () => {
observer . disconnect ();
video . pause ();
};
}, [ media . type ]);
const updatePosition = useCallback (( clientX : number ) => {
if ( ! containerRef . current ) return ;
const rect = containerRef . current . getBoundingClientRect ();
if ( rect . width <= 0 ) return ;
const x = Math . max ( 0 , Math . min ( clientX - rect . left , rect . width ));
const pct = Math . max ( 4 , Math . min ( 96 , ( x / rect . width ) * 100 ));
2026-11-05 16:23:52 +05:30
setSplitPos ( pct );
2026-11-06 18:38:45 +05:30
}, []);
2026-11-07 12:44:57 +05:30
const startDragging = useCallback (( clientX : number , target : HTMLElement , pointerId : number ) => {
2026-11-06 18:38:45 +05:30
isDraggingRef . current = true ;
try {
2026-11-07 12:44:57 +05:30
target . setPointerCapture ( pointerId );
2026-11-06 18:38:45 +05:30
} catch {}
2026-11-07 12:44:57 +05:30
updatePosition ( clientX );
}, [ updatePosition ]);
// On desktop with mouse, clicking anywhere on the stage moves the slider.
// On phones/touch screens, touching the card does NOT move the slider,
// allowing completely unobstructed vertical page scrolling!
const handleContainerPointerDown = ( e : React.PointerEvent < HTMLDivElement >) => {
if ( media . type !== 'comparison' ) return ;
if ( e . pointerType !== 'mouse' || e . button !== 0 ) return ;
startDragging ( e . clientX , e . currentTarget , e . pointerId );
2026-11-05 16:23:52 +05:30
};
2026-11-07 12:44:57 +05:30
const handleContainerPointerMove = ( e : React.PointerEvent < HTMLDivElement >) => {
2026-11-06 18:38:45 +05:30
if ( media . type !== 'comparison' ) return ;
2026-11-07 12:44:57 +05:30
if ( e . pointerType === 'mouse' && ! isDraggingRef . current ) {
2026-11-06 18:38:45 +05:30
updatePosition ( e . clientX );
}
2026-11-05 16:23:52 +05:30
};
2026-11-07 12:44:57 +05:30
const handleContainerPointerLeave = ( e : React.PointerEvent < HTMLDivElement >) => {
2026-11-06 18:38:45 +05:30
if ( e . pointerType === 'mouse' && ! isDraggingRef . current ) {
setSplitPos ( 50 );
}
};
2026-11-07 12:44:57 +05:30
// Dedicated Handle Button Pointer Handlers (Phone Touch & Mouse Dragging)
const handleHandlePointerDown = ( e : React.PointerEvent < HTMLDivElement >) => {
if ( media . type !== 'comparison' ) return ;
if ( e . button !== 0 && e . pointerType === 'mouse' ) return ;
e . stopPropagation ();
startDragging ( e . clientX , e . currentTarget , e . pointerId );
};
const handleHandlePointerMove = ( e : React.PointerEvent < HTMLDivElement >) => {
if ( media . type !== 'comparison' ) return ;
if ( isDraggingRef . current ) {
e . stopPropagation ();
updatePosition ( e . clientX );
}
};
const handleHandlePointerUp = ( e : React.PointerEvent < HTMLDivElement >) => {
if ( media . type !== 'comparison' ) return ;
if ( isDraggingRef . current ) {
e . stopPropagation ();
isDraggingRef . current = false ;
try {
e . currentTarget . releasePointerCapture ( e . pointerId );
} catch {}
}
};
2026-11-06 18:38:45 +05:30
// 1. VIDEO TOOL (Background Remover)
if ( media . type === 'video' ) {
return (
< div className = "relative w-full aspect-[4/3] rounded-2xl overflow-hidden bg-paper-2 select-none group/img isolate shadow-inner" >
< video
ref = { videoRef }
src = { media . videoUrl }
poster = { media . poster }
muted
loop
playsInline
preload = "none"
className = "absolute inset-0 w-full h-full object-cover pointer-events-none"
/>
</ div >
);
}
// 2. SINGLE IMAGE (Polaroid, etc.)
2026-11-05 16:23:52 +05:30
if ( media . type === 'single' ) {
return (
2026-11-06 18:38:45 +05:30
< div className = "relative w-full aspect-[4/3] rounded-2xl overflow-hidden bg-paper-2 select-none group/img shadow-inner" >
2026-11-05 16:23:52 +05:30
{ /* eslint-disable-next-line @next/next/no-img-element */ }
< img
src = { media . image }
alt = { toolName }
loading = "lazy"
decoding = "async"
2026-11-06 18:38:45 +05:30
className = "absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-[1.02]"
2026-11-05 16:23:52 +05:30
/>
</ div >
);
}
2026-11-06 18:38:45 +05:30
// 3. COMPARISON (Interactive Split Slider)
2026-11-05 16:23:52 +05:30
return (
< div
2026-11-06 18:38:45 +05:30
ref = { containerRef }
2026-11-07 12:44:57 +05:30
onPointerDown = { handleContainerPointerDown }
onPointerMove = { handleContainerPointerMove }
onPointerLeave = { handleContainerPointerLeave }
className = "relative w-full aspect-[4/3] rounded-2xl overflow-hidden bg-paper-2 select-none cursor-ew-resize group/img shadow-inner touch-pan-y"
style = {{ touchAction : 'pan-y' }}
2026-11-05 16:23:52 +05:30
>
{ /* Enhanced / After Image (Underneath) */ }
{ /* eslint-disable-next-line @next/next/no-img-element */ }
< img
src = { media . after }
alt = { ` ${ toolName } after` }
loading = "lazy"
decoding = "async"
2026-11-06 18:38:45 +05:30
className = "absolute inset-0 w-full h-full object-cover pointer-events-none"
2026-11-05 16:23:52 +05:30
/>
{ /* Original / Before Image (Clipped overlay) */ }
< div
2026-11-06 18:38:45 +05:30
className = "absolute inset-0 overflow-hidden pointer-events-none"
2026-11-05 16:23:52 +05:30
style = {{
2026-11-06 18:38:45 +05:30
clipPath : `inset(0 ${ 100 - splitPos } % 0 0)` ,
WebkitClipPath : `inset(0 ${ 100 - splitPos } % 0 0)` ,
2026-11-05 16:23:52 +05:30
}}
>
{ /* eslint-disable-next-line @next/next/no-img-element */ }
< img
src = { media . before }
alt = { ` ${ toolName } before` }
loading = "lazy"
decoding = "async"
2026-11-06 18:38:45 +05:30
className = "absolute inset-0 w-full h-full object-cover pointer-events-none"
2026-11-05 16:23:52 +05:30
/>
</ div >
2026-11-07 12:44:57 +05:30
{ /* Vertical Slider Divider Line (pointer-events-none so it doesn't block vertical scrolling) */ }
2026-11-05 16:23:52 +05:30
< div
2026-11-06 18:38:45 +05:30
className = "absolute top-0 bottom-0 w-[2px] bg-paper-hi shadow-md pointer-events-none z-10"
2026-11-05 16:23:52 +05:30
style = {{ left : ` ${ splitPos } %` , transform : 'translateX(-50%)' }}
>
2026-11-07 12:44:57 +05:30
{ /* Dedicated Tactile Handle Button: Phone touch activates ONLY on this button */ }
< div
onPointerDown = { handleHandlePointerDown }
onPointerMove = { handleHandlePointerMove }
onPointerUp = { handleHandlePointerUp }
onPointerCancel = { handleHandlePointerUp }
role = "slider"
aria-label = "Before and after transformation slider"
aria-valuenow = { Math . round ( splitPos )}
tabIndex = { 0 }
style = {{ touchAction : 'none' }}
className = "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-8 rounded-full bg-paper-hi text-ink shadow-md flex items-center justify-center border border-rule pointer-events-auto cursor-ew-resize touch-none before:absolute before:-inset-3 before:content-['']"
>
< div className = "flex items-center gap-[2px] pointer-events-none" >
< div className = "w-0 h-0 border-y-[3.5px] border-y-transparent border-r-[4.5px] border-r-ink" />
< div className = "w-0 h-0 border-y-[3.5px] border-y-transparent border-l-[4.5px] border-l-ink" />
2026-11-05 16:23:52 +05:30
</ div >
</ div >
</ div >
</ div >
);
}
2026-11-06 18:38:45 +05:30
// Spacious Single Tool Card Component
function ToolCard ({
tool ,
locale ,
categoryName ,
} : {
tool : ToolItem ;
locale : string ;
categoryName? : string ;
}) {
2026-11-05 16:23:52 +05:30
const toolName = resolveLocalised ( tool . name , locale );
const toolSummary = resolveLocalised ( tool . summary , locale );
2026-11-11 10:47:00 +05:30
const archetypeBadge =
tool . pageType === 'masking'
? 'Smart Masking'
: tool . pageType === 'image-thumbnail'
? 'Style Presets'
: tool . pageType === 'text-to-image'
? 'Text-to-Image'
: tool . pageType === 'two-images'
? 'Dual Fusion'
: 'Single-Click' ;
2026-11-05 16:23:52 +05:30
return (
2026-11-06 18:38:45 +05:30
< div className = "group studio-sheet p-4 sm:p-5 rounded-3xl bg-paper-hi border border-rule shadow-[0_4px_24px_-4px_rgba(0,0,0,0.03)] hover:border-accent hover:shadow-glow motion-safe:transition-[border-color,box-shadow,transform] duration-300 hover:-translate-y-1 flex flex-col justify-between h-full" >
{ /* Image Dominant Preview Frame */ }
2026-11-05 16:23:52 +05:30
< ToolCardImage tool = { tool } toolName = { toolName } />
2026-11-06 18:38:45 +05:30
{ /* Info Area: Title, Subtitle, and Direct Action Button */ }
< div className = "mt-4 flex-1 flex flex-col justify-between space-y-3.5" >
< div >
2026-11-11 10:47:00 +05:30
{ /* Badge & Tool Title */ }
< div className = "flex items-center justify-between gap-2 mb-1.5" >
< span className = "px-2.5 py-0.5 rounded-full bg-accent/10 border border-accent/20 text-[10px] font-semibold text-accent font-body uppercase tracking-wider" >
{ archetypeBadge }
</ span >
< span className = "text-[11px] text-muted font-body" > Free browser trial </ span >
</ div >
2026-11-06 18:38:45 +05:30
< Link href = { `/tools/ ${ tool . slug } ` } className = "block" >
2026-11-11 10:47:00 +05:30
< h4 className = "text-base sm:text-lg font-display font-bold text-ink tracking-tight leading-snug group-hover:text-accent transition-colors" >
2026-11-06 18:38:45 +05:30
< AnimatedShinyText >{ toolName }</ AnimatedShinyText >
</ h4 >
</ Link >
{ /* Tool Description */ }
< p className = "mt-1.5 text-xs text-ink-2 font-body line-clamp-2 leading-relaxed" >
{ toolSummary }
</ p >
2026-11-05 16:23:52 +05:30
</ div >
2026-11-11 10:47:00 +05:30
{ /* Action Button Row: Highly Visible Prominent Primary Button */ }
2026-11-06 18:38:45 +05:30
< div className = "pt-3 border-t border-rule" >
< Link
href = { `/tools/ ${ tool . slug } ` }
2026-11-11 10:47:00 +05:30
className = "w-full inline-flex items-center justify-between px-5 py-3 rounded-2xl bg-ink hover:bg-accent text-paper-hi font-display font-bold text-xs sm:text-sm transition-all duration-200 shadow-xs hover:shadow-md group/btn active:scale-98"
2026-11-06 18:38:45 +05:30
aria-label = { `Open interactive studio for ${ toolName } ` }
>
2026-11-11 10:47:00 +05:30
< span className = "flex items-center gap-2" >
< Sparkles className = "w-4 h-4 text-accent group-hover/btn:text-white transition-colors" />
< span > Launch Tool Studio </ span >
</ span >
< ArrowRight className = "w-4 h-4 text-paper-hi group-hover/btn:translate-x-1 transition-transform" aria-hidden = "true" />
2026-11-06 18:38:45 +05:30
</ Link >
</ div >
2026-11-05 16:23:52 +05:30
</ div >
2026-11-06 18:38:45 +05:30
</ div >
2026-11-05 16:23:52 +05:30
);
}
2026-11-03 12:24:43 +05:30
export function ToolGridSection ({
title ,
subtitle ,
tools = [],
categories = [],
2026-11-05 16:23:52 +05:30
showSearch = true ,
showCategoryFilter = true ,
2026-11-03 12:24:43 +05:30
locale = 'en' ,
} : ToolGridSectionProps ) {
const [ selectedCategory , setSelectedCategory ] = useState < string >( 'all' );
const [ searchQuery , setSearchQuery ] = useState < string >( '' );
2026-11-05 16:32:17 +05:30
// Group all tools by category
2026-11-05 16:23:52 +05:30
const categorizedTools = useMemo (() => {
const orderedCategoryIds = [
'portrait-retouch' ,
'restoration' ,
'background-cutout' ,
'creative-art' ,
];
2026-11-03 12:24:43 +05:30
2026-11-05 16:23:52 +05:30
const catMap = new Map < string , CategoryItem >();
categories . forEach (( cat ) => catMap . set ( cat . id , cat ));
return orderedCategoryIds
. map (( catId ) => {
const cat = catMap . get ( catId );
const catTools = tools . filter (( t ) => t . category === catId );
return {
id : catId ,
category : cat ,
tools : catTools ,
};
})
. filter (( group ) => group . tools . length > 0 );
}, [ categories , tools ]);
2026-11-06 18:38:45 +05:30
// Synchronize with URL Hash (e.g. #category-portrait-retouch or #portrait-retouch)
useEffect (() => {
const syncFromHash = () => {
if ( typeof window === 'undefined' ) return ;
const hash = window . location . hash . replace ( '#' , '' );
if ( ! hash ) return ;
const rawId = hash . startsWith ( 'category-' ) ? hash . replace ( 'category-' , '' ) : hash ;
const exists = categorizedTools . some (( g ) => g . id === rawId );
if ( exists ) {
setSelectedCategory ( rawId );
setSearchQuery ( '' );
}
};
syncFromHash ();
window . addEventListener ( 'hashchange' , syncFromHash );
return () => window . removeEventListener ( 'hashchange' , syncFromHash );
}, [ categorizedTools ]);
// Handle Category Selection with URL Hash reflection
const handleSelectCategory = ( catId : string ) => {
setSelectedCategory ( catId );
if ( searchQuery ) setSearchQuery ( '' );
if ( typeof window !== 'undefined' ) {
const newHash = catId === 'all' ? '' : `#category- ${ catId } ` ;
window . history . replaceState ( null , '' , newHash || window . location . pathname );
}
};
2026-11-05 16:23:52 +05:30
// Filter tools when search query is active
const searchResults = useMemo (() => {
if ( ! searchQuery . trim ()) return null ;
const q = searchQuery . toLowerCase ();
return tools . filter (( t ) => {
const name = resolveLocalised ( t . name , locale ). toLowerCase ();
const summary = resolveLocalised ( t . summary , locale ). toLowerCase ();
return name . includes ( q ) || summary . includes ( q );
});
}, [ tools , searchQuery , locale ]);
2026-11-06 18:38:45 +05:30
// Active Category details
const activeCategoryItem = useMemo (() => {
if ( selectedCategory === 'all' ) return null ;
return categorizedTools . find (( g ) => g . id === selectedCategory );
}, [ categorizedTools , selectedCategory ]);
// If this is a simple embedded grid (e.g., inside an App detail page), render standard container
if ( ! showCategoryFilter ) {
return (
< section className = "py-12 bg-paper" >
< div className = "max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6" >
{ title && (
< h3 className = "text-2xl font-display font-bold text-ink" >
{ resolveLocalised ( title , locale )}
</ h3 >
)}
< div className = "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" >
{ tools . map (( tool ) => (
< ToolCard key = { tool . id } tool = { tool } locale = { locale } />
))}
2026-11-03 12:24:43 +05:30
</ div >
2026-11-06 18:38:45 +05:30
</ div >
</ section >
);
}
2026-11-03 12:24:43 +05:30
2026-11-06 18:38:45 +05:30
// =========================================================================
// FULL EDGE-TO-EDGE STUDIO WORKSPACE ARCHITECTURE (/tools)
// Left Sidebar is docked directly to the left screen edge.
// Right Main Studio area fills the remaining screen width with spacious cards.
// =========================================================================
return (
< div id = "tools-catalog" className = "w-full min-h-[calc(100vh-73px)] flex flex-col lg:flex-row bg-paper relative" >
{ /* Studio Lighting Ambient Glow */ }
< div
className = "pointer-events-none absolute top-0 right-0 w-[600px] h-[500px] [background:radial-gradient(circle_at_top_right,color-mix(in_oklab,var(--color-accent)_7%,transparent)_0%,transparent_70%)]"
aria-hidden = "true"
/>
< div
className = "pointer-events-none absolute bottom-0 left-0 w-[600px] h-[500px] [background:radial-gradient(circle_at_bottom_left,color-mix(in_oklab,var(--color-ink)_4%,transparent)_0%,transparent_70%)]"
aria-hidden = "true"
/>
< div
className = "pointer-events-none absolute inset-0 opacity-15 studio-proof-grid"
aria-hidden = "true"
/>
2026-11-05 17:04:30 +05:30
2026-11-06 18:38:45 +05:30
{ /* =========================================================================
LEFT SIDEBAR: DOCKED DIRECTLY TO VIEWPORT EDGE (STICKY DESKTOP)
========================================================================= */ }
< aside className = "hidden lg:flex flex-col justify-between w-72 xl:w-80 shrink-0 border-r border-rule bg-paper-hi sticky top-[73px] h-[calc(100vh-73px)] overflow-y-auto no-scrollbar p-5 xl:p-6 z-20" >
{ /* Top: Header, Search, Categories Nav */ }
< div className = "space-y-6" >
2026-11-07 12:44:57 +05:30
{ /* Categories Header */ }
< div className = "pb-3.5 border-b border-rule" >
< h2 className = "text-sm font-bold text-ink font-body" >
Categories
</ h2 >
2026-11-06 18:38:45 +05:30
</ div >
2026-11-05 17:04:30 +05:30
2026-11-06 18:38:45 +05:30
{ /* Instant Search Bar with shortcut hint */ }
{ showSearch && (
< div className = "relative w-full" >
< Search className = "w-3.5 h-3.5 absolute left-3.5 top-1/2 -translate-y-1/2 text-muted pointer-events-none" />
< input
type = "text"
2026-11-07 12:44:57 +05:30
placeholder = "Search tools..."
2026-11-06 18:38:45 +05:30
value = { searchQuery }
onChange = {( e ) => setSearchQuery ( e . target . value )}
className = "w-full pl-9 pr-8 py-2.5 rounded-2xl text-xs border border-rule bg-paper text-ink placeholder:text-muted focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/20 shadow-2xs font-body transition-colors"
/>
{ searchQuery ? (
< button
onClick = {() => setSearchQuery ( '' )}
className = "absolute right-2.5 top-1/2 -translate-y-1/2 text-muted hover:text-ink cursor-pointer p-0.5"
aria-label = "Clear search query"
>
< X className = "w-3.5 h-3.5" />
</ button >
) : (
< kbd className = "absolute right-2.5 top-1/2 -translate-y-1/2 text-[10px] font-mono text-muted bg-paper-2 border border-rule px-1.5 py-0.5 rounded pointer-events-none" >
/
</ kbd >
2026-11-05 17:04:30 +05:30
)}
</ div >
2026-11-06 18:38:45 +05:30
)}
2026-11-03 12:24:43 +05:30
2026-11-06 18:38:45 +05:30
{ /* Categories Navigation */ }
< div className = "space-y-2" >
2026-11-07 12:44:57 +05:30
< div className = "flex items-center justify-between px-1 font-body" >
< span className = "text-xs font-bold text-ink uppercase tracking-wider" > Workspaces </ span >
2026-11-06 18:38:45 +05:30
{( selectedCategory !== 'all' || searchQuery ) && (
< button
onClick = {() => {
handleSelectCategory ( 'all' );
setSearchQuery ( '' );
}}
className = "inline-flex items-center gap-1 text-[11px] font-semibold text-accent hover:underline cursor-pointer lowercase"
>
< RotateCcw className = "w-2.5 h-2.5" />
< span > reset </ span >
</ button >
)}
</ div >
< nav className = "flex flex-col gap-1.5" aria-label = "Tool Categories" >
{ /* All Studio Tools */ }
< button
type = "button"
onClick = {() => handleSelectCategory ( 'all' )}
className = { `w-full flex items-center justify-between px-3.5 py-2.5 rounded-2xl text-xs font-body transition-all duration-150 cursor-pointer ${
selectedCategory === 'all' && ! searchQuery
? 'bg-ink text-paper-hi shadow-xs font-semibold'
: 'bg-transparent text-ink-2 hover:bg-paper hover:text-ink border border-transparent hover:border-rule font-medium'
} ` }
>
< div className = "flex items-center gap-2.5 min-w-0" >
< div className = { `w-6 h-6 rounded-lg flex items-center justify-center shrink-0 ${
selectedCategory === 'all' && ! searchQuery
? 'bg-paper-hi/20 text-accent'
: 'bg-paper-2 text-muted'
} ` }>
< Layers className = "w-3.5 h-3.5" />
</ div >
< span className = "truncate" > All Studio Tools </ span >
</ div >
< span
className = { `text-[10px] font-mono px-2 py-0.5 rounded-full font-bold shrink-0 ${
selectedCategory === 'all' && ! searchQuery
? 'bg-paper-hi/20 text-paper-hi'
: 'bg-paper-2 text-muted'
} ` }
>
{ tools . length }
</ span >
</ button >
{ /* Categorized Workspaces */ }
{ categorizedTools . map (( group ) => {
const isSelected = selectedCategory === group . id && ! searchQuery ;
const catName = group . category
? resolveLocalised ( group . category . name , locale )
: group . id ;
const theme = CATEGORY_THEMES [ group . id ];
return (
< button
key = { group . id }
type = "button"
onClick = {() => handleSelectCategory ( group . id )}
className = { `w-full flex items-center justify-between px-3.5 py-2.5 rounded-2xl text-xs font-body transition-all duration-150 cursor-pointer ${
isSelected
? 'bg-ink text-paper-hi shadow-xs font-semibold'
: 'bg-transparent text-ink-2 hover:bg-paper hover:text-ink border border-transparent hover:border-rule font-medium'
} ` }
>
< div className = "flex items-center gap-2.5 min-w-0" >
< div className = { `w-6 h-6 rounded-lg flex items-center justify-center shrink-0 ${
isSelected
? 'bg-paper-hi/20 text-accent'
: 'bg-paper-2 text-muted'
} ` }>
{ theme ? . icon || < Wand2 className = "w-3.5 h-3.5 text-accent" />}
</ div >
< span className = "truncate" >{ catName }</ span >
</ div >
< span
className = { `text-[10px] font-mono px-2 py-0.5 rounded-full font-bold shrink-0 ${
isSelected
? 'bg-paper-hi/20 text-paper-hi'
: 'bg-paper-2 text-muted'
} ` }
>
{ group . tools . length }
</ span >
</ button >
);
})}
</ nav >
</ div >
</ div >
2026-11-07 12:44:57 +05:30
{ /* Bottom: Native App Suite Link */ }
2026-11-06 18:38:45 +05:30
< div className = "pt-4 border-t border-rule space-y-3" >
< Link
href = "/apps"
className = "w-full inline-flex items-center justify-between px-3.5 py-2.5 rounded-2xl text-xs font-body font-semibold text-ink bg-paper-2 hover:bg-ink hover:text-paper-hi transition-colors duration-150 group shadow-2xs"
>
< div className = "flex items-center gap-2" >
< Smartphone className = "w-3.5 h-3.5 text-accent group-hover:text-paper-hi" />
< span > Mobile studio suite </ span >
</ div >
< ArrowRight className = "w-3 h-3 text-accent group-hover:text-paper-hi group-hover:translate-x-0.5 transition-all" />
</ Link >
</ div >
</ aside >
{ /* =========================================================================
RIGHT MAIN STUDIO WORKSPACE (SPACIOUS 2-TO-3 COLUMN CARDS GALLERY)
========================================================================= */ }
< div className = "flex-1 min-w-0 px-4 sm:px-8 xl:px-12 py-8 xl:py-10 space-y-10 relative z-10" >
{ /* ================= MOBILE FILTER HEADER (< lg) ================= */ }
< div className = "lg:hidden space-y-3 pb-4 border-b border-rule" >
< div className = "flex items-center justify-between" >
2026-11-07 12:44:57 +05:30
< span className = "text-sm font-bold text-ink font-body" >
Categories
2026-11-06 18:38:45 +05:30
</ span >
2026-11-07 12:44:57 +05:30
< span className = "text-xs font-medium text-muted font-body" >
{ tools . length } tools
2026-11-06 18:38:45 +05:30
</ span >
</ div >
{ showSearch && (
< div className = "relative w-full" >
< Search className = "w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2 text-muted pointer-events-none" />
< input
type = "text"
placeholder = "Search studio tools..."
value = { searchQuery }
onChange = {( e ) => setSearchQuery ( e . target . value )}
className = "w-full pl-9 pr-8 py-2.5 rounded-2xl text-xs sm:text-sm border border-rule bg-paper-hi text-ink placeholder:text-muted focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/20 shadow-2xs font-body transition-colors"
/>
{ searchQuery && (
< button
onClick = {() => setSearchQuery ( '' )}
className = "absolute right-3 top-1/2 -translate-y-1/2 text-muted hover:text-ink cursor-pointer p-0.5"
aria-label = "Clear search"
>
< X className = "w-4 h-4" />
</ button >
)}
</ div >
)}
< div className = "flex items-center gap-2 overflow-x-auto no-scrollbar py-1" >
< button
type = "button"
onClick = {() => handleSelectCategory ( 'all' )}
className = { `inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-xs font-body font-semibold shrink-0 transition-colors ${
selectedCategory === 'all' && ! searchQuery
? 'bg-ink text-paper-hi shadow-xs'
: 'bg-paper-hi text-ink-2 border border-rule hover:text-ink'
} ` }
>
< Layers className = "w-3.5 h-3.5" />
< span > All tools ({ tools . length })</ span >
</ button >
{ categorizedTools . map (( group ) => {
const isSelected = selectedCategory === group . id && ! searchQuery ;
const catName = group . category
? resolveLocalised ( group . category . name , locale )
: group . id ;
const theme = CATEGORY_THEMES [ group . id ];
return (
< button
key = { group . id }
type = "button"
onClick = {() => handleSelectCategory ( group . id )}
className = { `inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-xs font-body font-semibold shrink-0 transition-colors ${
isSelected
? 'bg-ink text-paper-hi shadow-xs'
: 'bg-paper-hi text-ink-2 border border-rule hover:text-ink'
} ` }
>
< span className = "shrink-0" >{ theme ? . icon }</ span >
< span >{ catName }</ span >
< span className = "text-[10px] opacity-70" >({ group . tools . length })</ span >
</ button >
);
})}
</ div >
</ div >
{ /* ================= INTEGRATED STUDIO HEADER ================= */ }
< div className = "space-y-4 border-b border-rule pb-8" >
2026-11-07 12:44:57 +05:30
{ /* Breadcrumb row */ }
< div className = "flex items-center gap-2 text-xs font-body text-muted" >
< span > Studio Directory </ span >
< span > / </ span >
{ activeCategoryItem ? (
<>
< button
type = "button"
onClick = {() => handleSelectCategory ( 'all' )}
className = "hover:text-ink hover:underline cursor-pointer"
>
All Vision Workspaces
</ button >
< span > / </ span >
< span className = "text-accent font-semibold" >
{ resolveLocalised ( activeCategoryItem . category ? . name , locale )}
</ span >
</>
) : (
2026-11-06 18:38:45 +05:30
< span className = "text-accent font-semibold" >
2026-11-07 12:44:57 +05:30
All Vision Workspaces
2026-11-06 18:38:45 +05:30
</ span >
2026-11-07 12:44:57 +05:30
)}
2026-11-06 18:38:45 +05:30
</ div >
2026-11-07 12:44:57 +05:30
{ activeCategoryItem ? (
/* Focused Category Workspace Header */
< div className = "flex flex-col sm:flex-row sm:items-start justify-between gap-4 pt-1" >
< div className = "flex items-start gap-3.5" >
< div className = "w-12 h-12 rounded-2xl flex items-center justify-center bg-paper-hi shadow-xs border border-rule text-accent shrink-0 mt-0.5" >
{ CATEGORY_THEMES [ activeCategoryItem . id ] ? . icon || < Wand2 className = "w-5 h-5 text-accent" />}
</ div >
< div >
< div className = "flex items-center gap-3" >
< h1 className = "text-2xl sm:text-3xl lg:text-4xl font-display font-bold text-ink tracking-tight" >
< KineticText >
{ resolveLocalised ( activeCategoryItem . category ? . name , locale )}
</ KineticText >
</ h1 >
< span className = "text-xs font-semibold text-accent bg-accent/10 px-2.5 py-0.5 rounded-full border border-accent/20 font-body" >
{ activeCategoryItem . tools . length }{ ' ' }
{ activeCategoryItem . tools . length === 1 ? 'tool' : 'tools' }
</ span >
</ div >
< p className = "text-sm sm:text-base text-ink-2 font-body max-w-2xl mt-1.5 leading-relaxed" >
{ CATEGORY_THEMES [ activeCategoryItem . id ] ? . description ||
resolveLocalised ( activeCategoryItem . category ? . description , locale )}
</ p >
</ div >
</ div >
2026-11-06 18:38:45 +05:30
2026-11-07 12:44:57 +05:30
< button
type = "button"
onClick = {() => handleSelectCategory ( 'all' )}
className = "self-start sm:self-center shrink-0 inline-flex items-center gap-1.5 px-4 py-2 rounded-full text-xs font-body font-semibold text-ink bg-paper-hi border border-rule hover:border-accent hover:text-accent transition-colors shadow-2xs cursor-pointer"
>
< span > Show all { tools . length } tools </ span >
< ArrowRight className = "w-3.5 h-3.5 text-accent" />
</ button >
</ div >
) : (
/* Universal Studio Overview Header */
< div >
< h1 className = "text-3xl sm:text-4xl lg:text-5xl font-display font-bold text-ink tracking-tight" >
< KineticText >
{ resolveLocalised ( title , locale ) || 'AI Photo & Vision Tools Studio' }
</ KineticText >
</ h1 >
< p className = "text-sm sm:text-base text-ink-2 font-body max-w-3xl mt-3 leading-relaxed" >
{ resolveLocalised ( subtitle , locale ) ||
'Client-side neural vision models running directly in volatile GPU memory with zero retention. Test interactive before/after sliders or export in native 4K.' }
</ p >
</ div >
)}
2026-11-06 18:38:45 +05:30
</ div >
{ /* ================= SEARCH RESULTS ACTIVE VIEW ================= */ }
2026-11-05 16:23:52 +05:30
{ searchResults ? (
2026-11-06 18:38:45 +05:30
< div className = "space-y-6" >
< div className = "studio-sheet p-5 sm:p-6 rounded-3xl bg-paper-hi border border-rule shadow-[0_4px_24px_-4px_rgba(0,0,0,0.03)] flex items-center justify-between" >
< div >
< h3 className = "text-lg sm:text-xl font-display font-bold text-ink" >
Search results for & quot ;{ searchQuery } & quot ;
</ h3 >
< p className = "text-xs text-muted font-body mt-0.5" >
Found { searchResults . length } matching { searchResults . length === 1 ? 'tool' : 'tools' } in catalog
</ p >
</ div >
2026-11-05 16:23:52 +05:30
< button
onClick = {() => setSearchQuery ( '' )}
2026-11-06 18:38:45 +05:30
className = "text-xs font-body font-semibold text-accent hover:underline cursor-pointer px-3.5 py-1.5 rounded-full bg-accent/10 border border-accent/20"
2026-11-03 12:24:43 +05:30
>
2026-11-06 18:38:45 +05:30
Clear search
2026-11-05 16:23:52 +05:30
</ button >
</ div >
2026-11-03 12:43:34 +05:30
2026-11-05 16:23:52 +05:30
{ searchResults . length > 0 ? (
2026-11-06 18:38:45 +05:30
< div className = "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 sm:gap-7 lg:gap-8" >
{ searchResults . map (( tool ) => (
< ToolCard key = { tool . id } tool = { tool } locale = { locale } />
))}
</ div >
2026-11-05 16:23:52 +05:30
) : (
2026-11-06 18:38:45 +05:30
< div className = "text-center py-16 text-muted space-y-3 font-body studio-sheet rounded-3xl bg-paper-hi border border-rule p-8 max-w-lg mx-auto shadow-sheet" >
< p className = "font-bold text-ink text-base" >
No studio tools found matching & quot ;{ searchQuery } & quot ;
2026-11-05 16:23:52 +05:30
</ p >
2026-11-06 18:38:45 +05:30
< p className = "text-xs text-muted" >
2026-11-05 16:23:52 +05:30
Try searching for & quot ; blemish & quot ;, & quot ; restoration & quot ;,
2026-11-06 18:38:45 +05:30
& quot ; background & quot ;, or & quot ; avatar & quot ;.
2026-11-05 16:23:52 +05:30
</ p >
< button
onClick = {() => setSearchQuery ( '' )}
2026-11-06 18:38:45 +05:30
className = "mt-3 inline-flex items-center px-4 py-2 rounded-full bg-ink text-paper-hi text-xs font-semibold shadow-sm cursor-pointer hover:bg-ink/90 transition-colors"
2026-11-05 16:23:52 +05:30
>
2026-11-06 18:38:45 +05:30
View all tools directory
2026-11-05 16:23:52 +05:30
</ button >
</ div >
)}
</ div >
2026-11-07 12:44:57 +05:30
) : activeCategoryItem ? (
/* ================= SINGLE CATEGORY FOCUSED WORKSPACE ================= */
< div className = "space-y-6" >
< div className = "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 sm:gap-7 lg:gap-8" >
{ activeCategoryItem . tools . map (( tool ) => (
< ToolCard
key = { tool . id }
tool = { tool }
locale = { locale }
categoryName = { resolveLocalised ( activeCategoryItem . category ? . name , locale )}
/>
))}
</ div >
</ div >
2026-11-05 16:23:52 +05:30
) : (
2026-11-06 18:38:45 +05:30
/* ================= CATEGORIZED TOOLS GALLERY ================= */
< div className = "space-y-12 sm:space-y-16" >
{ /* Displayed Categories */ }
2026-11-07 12:44:57 +05:30
{ categorizedTools . map (( group ) => {
2026-11-05 16:23:52 +05:30
const theme = CATEGORY_THEMES [ group . id ];
const catName = group . category
? resolveLocalised ( group . category . name , locale )
: group . id ;
2026-11-06 18:38:45 +05:30
const catDesc =
theme ? . description ||
( group . category ? resolveLocalised ( group . category . description , locale ) : '' );
2026-11-05 16:23:52 +05:30
return (
< div
key = { group . id }
id = { `category- ${ group . id } ` }
2026-11-06 18:38:45 +05:30
className = "space-y-6 scroll-mt-28"
2026-11-05 16:23:52 +05:30
>
2026-11-06 18:38:45 +05:30
{ /* Section Category Header */ }
< div className = "flex flex-col sm:flex-row sm:items-end justify-between gap-3 pb-4 border-b border-rule" >
< div className = "flex items-center gap-3.5" >
< div className = "w-11 h-11 rounded-2xl flex items-center justify-center bg-paper-hi shadow-xs border border-rule text-accent shrink-0" >
{ theme ? . icon || < Wand2 className = "w-4 h-4 text-accent" />}
2026-11-05 16:23:52 +05:30
</ div >
< div >
2026-11-06 18:38:45 +05:30
< div className = "flex items-center gap-2.5" >
< h3 className = "text-xl sm:text-2xl font-display font-bold text-ink tracking-tight" >
< KineticText >{ catName }</ KineticText >
2026-11-05 16:23:52 +05:30
</ h3 >
2026-11-06 18:38:45 +05:30
< span className = "text-xs font-semibold text-accent bg-accent/10 px-2.5 py-0.5 rounded-full border border-accent/20 font-body" >
2026-11-05 16:23:52 +05:30
{ group . tools . length }{ ' ' }
2026-11-07 12:44:57 +05:30
{ group . tools . length === 1 ? 'tool' : 'tools' }
2026-11-05 16:23:52 +05:30
</ span >
</ div >
{ catDesc && (
2026-11-06 18:38:45 +05:30
< p className = "text-xs sm:text-sm text-ink-2 mt-0.5 font-body line-clamp-1 sm:line-clamp-none" >
2026-11-05 16:23:52 +05:30
{ catDesc }
</ p >
)}
</ div >
2026-11-03 12:24:43 +05:30
</ div >
2026-11-06 18:38:45 +05:30
{ /* Quick filter shortcut when in "All Tools" view */ }
{ selectedCategory === 'all' && (
< button
type = "button"
onClick = {() => handleSelectCategory ( group . id )}
className = "self-start sm:self-auto text-xs font-body font-semibold text-muted hover:text-accent transition-colors inline-flex items-center gap-1 cursor-pointer"
>
< span > Filter { catName }</ span >
< ChevronRight className = "w-3.5 h-3.5" />
</ button >
)}
2026-11-03 12:24:43 +05:30
</ div >
2026-11-06 18:38:45 +05:30
{ /* Tool Cards Grid: Spacious 3-Column Layout on Desktop */ }
< div className = "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 sm:gap-7 lg:gap-8" >
2026-11-05 17:24:02 +05:30
{ group . tools . map (( tool ) => (
2026-11-06 18:38:45 +05:30
< ToolCard
key = { tool . id }
tool = { tool }
locale = { locale }
categoryName = { catName }
/>
2026-11-05 16:23:52 +05:30
))}
</ div >
2026-11-03 12:24:43 +05:30
</ div >
2026-11-05 16:23:52 +05:30
);
})}
2026-11-06 18:38:45 +05:30
2026-11-03 12:24:43 +05:30
</ div >
)}
2026-11-06 18:38:45 +05:30
{ /* ================= INTEGRATED STUDIO CTA BANNER ================= */ }
< div className = "pt-6" >
< div className = "relative overflow-hidden rounded-3xl studio-sheet p-8 sm:p-10 md:p-12 bg-paper-hi border border-rule shadow-[0_8px_32px_-8px_rgba(0,0,0,0.04)]" >
< BorderBeam size = { 300 } duration = { 14 } borderWidth = { 1.5 } colorFrom = "var(--color-accent)" colorTo = "var(--color-accent-hi)" />
< div className = "max-w-2xl space-y-4 relative z-10" >
< span className = "inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-accent/10 border border-accent/20 text-accent text-xs font-semibold font-body" >
< Sparkles className = "w-3.5 h-3.5" />
< span > Professional Native Handoff </ span >
</ span >
< h2 className = "text-2xl sm:text-3xl lg:text-4xl font-display font-bold text-ink tracking-tight" >
< KineticText > Need Batch Processing or 4 K Lossless Export ? </ KineticText >
</ h2 >
< p className = "text-sm sm:text-base text-ink-2 font-body leading-relaxed" >
Each online tool connects directly to its dedicated native mobile app with advanced precision brush tools , RAW format support , and unlimited local processing .
</ p >
< div className = "pt-2 flex flex-wrap items-center gap-4" >
< RainbowButton href = "/apps" >
< span > Explore Mobile Apps Suite </ span >
< ArrowRight className = "w-3.5 h-3.5 ml-1 inline" aria-hidden = "true" />
</ RainbowButton >
< Link
href = "/trust"
className = "text-xs font-semibold text-ink-2 hover:text-ink hover:underline font-body transition-colors"
>
Read our privacy & retention guarantee →
</ Link >
</ div >
</ div >
</ div >
</ div >
2026-11-03 12:24:43 +05:30
</ div >
2026-11-06 18:38:45 +05:30
</ div >
2026-11-03 12:24:43 +05:30
);
}