feat: redesign tools page - remove subtitles in tools, increase title size, compact sidebar with smaller typography, and integrate rich Flaticons across categories
This commit is contained in:
@@ -16,10 +16,6 @@
|
||||
"en": "AI Photo & Vision Tools Studio",
|
||||
"hi": "एआई फोटो और विज़न टूल्स स्टूडियो"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Client-side neural vision models running directly in volatile GPU memory with zero retention. Test interactive before/after sliders or export in native 4K.",
|
||||
"hi": "ब्राउज़र में तुरंत आज़माने के लिए कोई भी टूल चुनें। कोई साइन-अप आवश्यक नहीं है।"
|
||||
},
|
||||
"source": "all",
|
||||
"showCategoryFilter": true,
|
||||
"showSearch": true,
|
||||
|
||||
@@ -16,10 +16,6 @@
|
||||
"en": "AI Photo & Vision Tools Studio",
|
||||
"hi": "एआई फोटो और विज़न टूल्स स्टूडियो"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Client-side neural vision models running directly in volatile GPU memory with zero retention. Test interactive before/after sliders or export in native 4K.",
|
||||
"hi": "ब्राउज़र में तुरंत आज़माने के लिए कोई भी टूल चुनें। कोई साइन-अप आवश्यक नहीं है।"
|
||||
},
|
||||
"source": "all",
|
||||
"showCategoryFilter": true,
|
||||
"showSearch": true,
|
||||
|
||||
@@ -0,0 +1,299 @@
|
||||
import React from 'react';
|
||||
|
||||
interface FlaticonProps {
|
||||
className?: string;
|
||||
size?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Flaticon: Portrait & Beauty Retouch Icon
|
||||
* Features a stylized radiant face profile with cosmetic sparkles, gentle blush, and retouch star.
|
||||
*/
|
||||
export function FlaticonPortraitIcon({ className = 'w-5 h-5' }: FlaticonProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 64 64"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
aria-hidden="true"
|
||||
>
|
||||
{/* Background Soft Glow */}
|
||||
<circle cx="32" cy="32" r="30" fill="url(#flaticon-portrait-glow)" />
|
||||
|
||||
{/* Portrait Face Contour */}
|
||||
<path
|
||||
d="M32 14c-8.837 0-16 7.163-16 16 0 7.732 5.485 14.184 12.8 15.65v4.35h6.4v-4.35c7.315-1.466 12.8-7.918 12.8-15.65 0-8.837-7.163-16-16-16z"
|
||||
fill="#FFE3D8"
|
||||
/>
|
||||
|
||||
{/* Styled Hair Silhouette */}
|
||||
<path
|
||||
d="M16 29c0-8.837 7.163-16 16-16s16 7.163 16 16c0 2.5-.5 5-1.5 7-1.5-6.5-6.5-11-13-11s-12 5-14 11c-2.3-2.1-3.5-4.5-3.5-7z"
|
||||
fill="#E76F51"
|
||||
/>
|
||||
|
||||
{/* Closed Lashes Eyes */}
|
||||
<path
|
||||
d="M23 29.5c1.4 1 2.8 1 4.2 0"
|
||||
stroke="#264653"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
<path
|
||||
d="M36.8 29.5c1.4 1 2.8 1 4.2 0"
|
||||
stroke="#264653"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
|
||||
{/* Gentle Natural Smile */}
|
||||
<path
|
||||
d="M28.5 37c1.1 1.2 2.3 1.8 3.5 1.8s2.4-.6 3.5-1.8"
|
||||
stroke="#E76F51"
|
||||
strokeWidth="2.2"
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
|
||||
{/* Cheek Glow Accents */}
|
||||
<circle cx="22.5" cy="34" r="2.8" fill="#F4A261" opacity="0.65" />
|
||||
<circle cx="41.5" cy="34" r="2.8" fill="#F4A261" opacity="0.65" />
|
||||
|
||||
{/* Flaticon Retouch Sparkles */}
|
||||
<path
|
||||
d="M48 8l1.4 4 4 1.4-4 1.4L48 19l-1.4-4.2-4-1.4 4-1.4L48 8z"
|
||||
fill="#F4A261"
|
||||
/>
|
||||
<path
|
||||
d="M14 17l.9 2.5 2.5.9-2.5.9-.9 2.5-.9-2.5-2.5-.9 2.5-.9.9-2.5z"
|
||||
fill="#E76F51"
|
||||
/>
|
||||
<path
|
||||
d="M51 32l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7.7-2z"
|
||||
fill="#E9C46A"
|
||||
/>
|
||||
|
||||
<defs>
|
||||
<radialGradient id="flaticon-portrait-glow" cx="50%" cy="30%" r="65%">
|
||||
<stop offset="0%" stopColor="#FFF1EB" />
|
||||
<stop offset="100%" stopColor="#FDD8CC" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flaticon: Restoration & Enhancement Icon
|
||||
* Features a classic photo undergoing neural revival with a magic wand and 4K starburst.
|
||||
*/
|
||||
export function FlaticonRestorationIcon({ className = 'w-5 h-5' }: FlaticonProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 64 64"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
aria-hidden="true"
|
||||
>
|
||||
{/* Background Soft Glow */}
|
||||
<circle cx="32" cy="32" r="30" fill="url(#flaticon-restore-glow)" />
|
||||
|
||||
{/* Photograph Canvas Frame */}
|
||||
<rect
|
||||
x="13"
|
||||
y="15"
|
||||
width="34"
|
||||
height="34"
|
||||
rx="4.5"
|
||||
fill="#FFFFFF"
|
||||
stroke="#4F46E5"
|
||||
strokeWidth="2.2"
|
||||
/>
|
||||
|
||||
{/* Photo Scenery */}
|
||||
<rect x="16" y="18" width="28" height="28" rx="2.5" fill="#EEF2FF" />
|
||||
<circle cx="23" cy="25" r="3.5" fill="#F59E0B" />
|
||||
<path d="M16 41l9-10 6 7 6-5 7 8H16z" fill="#818CF8" />
|
||||
|
||||
{/* Magic Restoration Wand */}
|
||||
<path
|
||||
d="M33 47L53 27"
|
||||
stroke="#312E81"
|
||||
strokeWidth="3.2"
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
<path
|
||||
d="M48 32l4-4-2.5-2.5-4 4"
|
||||
fill="#6366F1"
|
||||
/>
|
||||
<circle cx="33" cy="47" r="2.2" fill="#312E81" />
|
||||
|
||||
{/* 4K Enhancement Crystal Starbursts */}
|
||||
<path
|
||||
d="M51 11l1.6 4.8 4.8 1.6-4.8 1.6-1.6 4.8-1.6-4.8-4.8-1.6 4.8-1.6 1.6-4.8z"
|
||||
fill="#06B6D4"
|
||||
/>
|
||||
<path
|
||||
d="M38 9l.9 2.5 2.5.9-2.5.9-.9 2.5-.9-2.5-2.5-.9 2.5-.9.9-2.5z"
|
||||
fill="#FBBF24"
|
||||
/>
|
||||
<path
|
||||
d="M26 7l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7.7-2z"
|
||||
fill="#A78BFA"
|
||||
/>
|
||||
|
||||
<defs>
|
||||
<radialGradient id="flaticon-restore-glow" cx="50%" cy="30%" r="65%">
|
||||
<stop offset="0%" stopColor="#EEF2FF" />
|
||||
<stop offset="100%" stopColor="#C7D2FE" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flaticon: Background & Object Cutout Icon
|
||||
* Features precision alpha checkerboard with cutting scissors and bounding outline.
|
||||
*/
|
||||
export function FlaticonCutoutIcon({ className = 'w-5 h-5' }: FlaticonProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 64 64"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
aria-hidden="true"
|
||||
>
|
||||
{/* Background Soft Glow */}
|
||||
<circle cx="32" cy="32" r="30" fill="url(#flaticon-cutout-glow)" />
|
||||
|
||||
{/* Transparency Checkerboard Plate */}
|
||||
<rect x="14" y="14" width="36" height="36" rx="5" fill="#FFFFFF" stroke="#059669" strokeWidth="1.8" />
|
||||
<rect x="14" y="14" width="9" height="9" fill="#E2E8F0" />
|
||||
<rect x="32" y="14" width="9" height="9" fill="#E2E8F0" />
|
||||
<rect x="23" y="23" width="9" height="9" fill="#E2E8F0" />
|
||||
<rect x="41" y="23" width="9" height="9" fill="#E2E8F0" />
|
||||
<rect x="14" y="32" width="9" height="9" fill="#E2E8F0" />
|
||||
<rect x="32" y="32" width="9" height="9" fill="#E2E8F0" />
|
||||
<rect x="23" y="41" width="9" height="9" fill="#E2E8F0" />
|
||||
<rect x="41" y="41" width="9" height="9" fill="#E2E8F0" />
|
||||
|
||||
{/* Dashed Subject Silhouette */}
|
||||
<path
|
||||
d="M18 22c7-5 19-5 26 0s5 16-1 22-19 6-23-1"
|
||||
stroke="#047857"
|
||||
strokeWidth="2.2"
|
||||
strokeDasharray="3 3.5"
|
||||
/>
|
||||
|
||||
{/* Precision Scissors */}
|
||||
<circle cx="20" cy="46" r="4.2" fill="#10B981" />
|
||||
<circle cx="20" cy="46" r="2.2" fill="#FFFFFF" />
|
||||
<circle cx="28" cy="50" r="4.2" fill="#10B981" />
|
||||
<circle cx="28" cy="50" r="2.2" fill="#FFFFFF" />
|
||||
<path d="M22 43l15-17" stroke="#065F46" strokeWidth="2.8" strokeLinecap="round" />
|
||||
<path d="M28 46L44 33" stroke="#065F46" strokeWidth="2.8" strokeLinecap="round" />
|
||||
<circle cx="31" cy="38" r="1.8" fill="#F59E0B" />
|
||||
|
||||
<defs>
|
||||
<radialGradient id="flaticon-cutout-glow" cx="50%" cy="30%" r="65%">
|
||||
<stop offset="0%" stopColor="#ECFDF5" />
|
||||
<stop offset="100%" stopColor="#A7F3D0" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flaticon: Creative & Artistic Effects Icon
|
||||
* Features a classic artist's palette with bright paint dabs and brush.
|
||||
*/
|
||||
export function FlaticonArtIcon({ className = 'w-5 h-5' }: FlaticonProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 64 64"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
aria-hidden="true"
|
||||
>
|
||||
{/* Background Soft Glow */}
|
||||
<circle cx="32" cy="32" r="30" fill="url(#flaticon-art-glow)" />
|
||||
|
||||
{/* Wooden Art Palette */}
|
||||
<path
|
||||
d="M34 13c-11.5 0-21 8.5-21 19 0 6 3 11.5 8 15 2.5 1.8 5 2 7.5.5s4-1 6 0c3 1.5 6.5.5 8-2 2-3.5 1.5-6-.5-8.5-1.5-1.8-1.5-3.5 0-5 2.5-2.5 7-2 10 2 1.5-3 2-6.5 2-10 0-10.5-8.5-11-20-11z"
|
||||
fill="#FFFBEB"
|
||||
stroke="#D97706"
|
||||
strokeWidth="2.2"
|
||||
/>
|
||||
|
||||
{/* Vibrant Oil Paint Dabs */}
|
||||
<circle cx="23" cy="23" r="3.6" fill="#EF4444" />
|
||||
<circle cx="33" cy="19" r="3.6" fill="#F59E0B" />
|
||||
<circle cx="43" cy="23" r="3.6" fill="#10B981" />
|
||||
<circle cx="21" cy="34" r="3.6" fill="#3B82F6" />
|
||||
<circle cx="29" cy="42" r="3.2" fill="#8B5CF6" />
|
||||
|
||||
{/* Thumb Rest Hole */}
|
||||
<ellipse cx="44.5" cy="37" rx="3.2" ry="4.2" fill="#FDE68A" />
|
||||
|
||||
{/* Angled Artist Brush */}
|
||||
<path d="M47 48L54 18" stroke="#92400E" strokeWidth="2.8" strokeLinecap="round" />
|
||||
<path d="M52 23l3-6-3 1-1 3 1 2z" fill="#EF4444" />
|
||||
<rect x="51" y="22" width="3" height="3" transform="rotate(-15 51 22)" fill="#94A3B8" />
|
||||
|
||||
<defs>
|
||||
<radialGradient id="flaticon-art-glow" cx="50%" cy="30%" r="65%">
|
||||
<stop offset="0%" stopColor="#FFFBEB" />
|
||||
<stop offset="100%" stopColor="#FDE68A" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flaticon: All Studio Tools Workspace Icon
|
||||
* Features a multi-colored modern neural studio 4-tile grid.
|
||||
*/
|
||||
export function FlaticonAllToolsIcon({ className = 'w-5 h-5' }: FlaticonProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 64 64"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
aria-hidden="true"
|
||||
>
|
||||
{/* Background Soft Glow */}
|
||||
<circle cx="32" cy="32" r="30" fill="url(#flaticon-all-glow)" />
|
||||
|
||||
{/* 4 Colored Studio Workspaces */}
|
||||
<rect x="15" y="15" width="14" height="14" rx="4" fill="#3B82F6" />
|
||||
<rect x="35" y="15" width="14" height="14" rx="4" fill="#EC4899" />
|
||||
<rect x="15" y="35" width="14" height="14" rx="4" fill="#10B981" />
|
||||
<rect x="35" y="35" width="14" height="14" rx="4" fill="#F59E0B" />
|
||||
|
||||
{/* White Micro Graphic Badges inside tiles */}
|
||||
<circle cx="22" cy="22" r="2.8" fill="#FFFFFF" opacity="0.95" />
|
||||
<path
|
||||
d="M40.5 19.5l1.2 2.5 2.5 1.2-2.5 1.2-1.2 2.5-1.2-2.5-2.5-1.2 2.5-1.2 1.2-2.5z"
|
||||
fill="#FFFFFF"
|
||||
opacity="0.95"
|
||||
/>
|
||||
<path d="M19.5 43l5.5-4.5v5.5l-5.5-1z" fill="#FFFFFF" opacity="0.95" />
|
||||
<rect x="39.5" y="39.5" width="5" height="5" rx="1.2" fill="#FFFFFF" opacity="0.95" />
|
||||
|
||||
<defs>
|
||||
<radialGradient id="flaticon-all-glow" cx="50%" cy="30%" r="65%">
|
||||
<stop offset="0%" stopColor="#F1F5F9" />
|
||||
<stop offset="100%" stopColor="#CBD5E1" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -5,10 +5,6 @@ import Link from 'next/link';
|
||||
import {
|
||||
Search,
|
||||
ArrowRight,
|
||||
Wand2,
|
||||
Scissors,
|
||||
Smile,
|
||||
Palette,
|
||||
Sparkles,
|
||||
X,
|
||||
Layers,
|
||||
@@ -16,6 +12,13 @@ import {
|
||||
ChevronRight,
|
||||
RotateCcw,
|
||||
} from 'lucide-react';
|
||||
import {
|
||||
FlaticonPortraitIcon,
|
||||
FlaticonRestorationIcon,
|
||||
FlaticonCutoutIcon,
|
||||
FlaticonArtIcon,
|
||||
FlaticonAllToolsIcon,
|
||||
} from '@/components/icons/Flaticons';
|
||||
import { ToolItem, CategoryItem, AppItem, resolveLocalised } from '@/types';
|
||||
import { KineticText } from '@/components/magicui/kinetic-text';
|
||||
import { AnimatedShinyText } from '@/components/magicui/animated-shiny-text';
|
||||
@@ -350,32 +353,37 @@ const TOOL_MODEL_SPECS: Record<string, string> = {
|
||||
'hair-style-changer': 'FLUX.1-Fill Hairstyle Refiner',
|
||||
};
|
||||
|
||||
// Category visual themes aligned to Porcelain Light theme
|
||||
// Category visual themes aligned to Porcelain Light theme with Flaticons
|
||||
const CATEGORY_THEMES: Record<
|
||||
string,
|
||||
{
|
||||
icon: React.ReactNode;
|
||||
largeIcon: React.ReactNode;
|
||||
color: string;
|
||||
badgeBg: string;
|
||||
}
|
||||
> = {
|
||||
'portrait-retouch': {
|
||||
icon: <Smile className="w-4 h-4 text-rose-500" />,
|
||||
icon: <FlaticonPortraitIcon className="w-4.5 h-4.5" />,
|
||||
largeIcon: <FlaticonPortraitIcon className="w-7 h-7" />,
|
||||
color: 'text-rose-600',
|
||||
badgeBg: 'bg-rose-500/10 text-rose-700 border-rose-500/20',
|
||||
},
|
||||
'restoration': {
|
||||
icon: <Sparkles className="w-4 h-4 text-indigo-500" />,
|
||||
icon: <FlaticonRestorationIcon className="w-4.5 h-4.5" />,
|
||||
largeIcon: <FlaticonRestorationIcon className="w-7 h-7" />,
|
||||
color: 'text-indigo-600',
|
||||
badgeBg: 'bg-indigo-500/10 text-indigo-700 border-indigo-500/20',
|
||||
},
|
||||
'background-cutout': {
|
||||
icon: <Scissors className="w-4 h-4 text-emerald-500" />,
|
||||
icon: <FlaticonCutoutIcon className="w-4.5 h-4.5" />,
|
||||
largeIcon: <FlaticonCutoutIcon className="w-7 h-7" />,
|
||||
color: 'text-emerald-600',
|
||||
badgeBg: 'bg-emerald-500/10 text-emerald-700 border-emerald-500/20',
|
||||
},
|
||||
'creative-art': {
|
||||
icon: <Palette className="w-4 h-4 text-amber-500" />,
|
||||
icon: <FlaticonArtIcon className="w-4.5 h-4.5" />,
|
||||
largeIcon: <FlaticonArtIcon className="w-7 h-7" />,
|
||||
color: 'text-amber-600',
|
||||
badgeBg: 'bg-amber-500/10 text-amber-700 border-amber-500/20',
|
||||
},
|
||||
@@ -596,27 +604,21 @@ function ToolCard({
|
||||
categoryName?: string;
|
||||
}) {
|
||||
const toolName = resolveLocalised(tool.name, locale);
|
||||
const toolSummary = resolveLocalised(tool.summary, locale);
|
||||
|
||||
return (
|
||||
<div className="group studio-sheet p-3 sm:p-3.5 rounded-2xl bg-paper-hi border border-rule shadow-[0_4px_20px_-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 */}
|
||||
<ToolCardImage tool={tool} toolName={toolName} />
|
||||
|
||||
{/* Info Area: Title, Subtitle, and Direct Action Button */}
|
||||
<div className="mt-2.5 flex-1 flex flex-col justify-between space-y-2">
|
||||
{/* Info Area: Title only (just a little bigger) and Direct Action Button */}
|
||||
<div className="mt-3 flex-1 flex flex-col justify-between space-y-2.5">
|
||||
<div>
|
||||
{/* Tool Title */}
|
||||
<Link href={`/tools/${tool.slug}`} className="block">
|
||||
<h4 className="text-sm font-display font-bold text-ink tracking-tight leading-snug group-hover:text-accent transition-colors line-clamp-1">
|
||||
<h4 className="text-[15px] sm:text-base font-display font-bold text-ink tracking-tight leading-snug group-hover:text-accent transition-colors line-clamp-1">
|
||||
<AnimatedShinyText>{toolName}</AnimatedShinyText>
|
||||
</h4>
|
||||
</Link>
|
||||
|
||||
{/* Tool Description */}
|
||||
<p className="mt-1 text-xs text-ink-2 font-sans line-clamp-2 leading-relaxed">
|
||||
{toolSummary}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Action Button Row: Highly Visible Prominent Primary Button */}
|
||||
@@ -788,39 +790,40 @@ export function ToolGridSection({
|
||||
LEFT SIDEBAR: DOCKED DIRECTLY TO VIEWPORT EDGE (STICKY DESKTOP)
|
||||
High-contrast, clearly legible font with dedicated active category states
|
||||
========================================================================= */}
|
||||
<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">
|
||||
<aside className="hidden lg:flex flex-col justify-between w-56 xl:w-60 shrink-0 border-r border-rule bg-paper-hi sticky top-[73px] h-[calc(100vh-73px)] overflow-y-auto no-scrollbar p-3.5 xl:p-4 z-20">
|
||||
|
||||
{/* Top: Header, Search, Categories Nav */}
|
||||
<div className="space-y-6">
|
||||
<div className="space-y-4">
|
||||
|
||||
{/* Categories Header */}
|
||||
<div className="pb-3.5 border-b border-rule">
|
||||
<h2 className="text-sm font-bold text-slate-900 font-sans tracking-tight">
|
||||
<div className="pb-2.5 border-b border-rule flex items-center justify-between">
|
||||
<h2 className="text-xs font-bold text-slate-800 font-sans tracking-tight uppercase">
|
||||
Categories
|
||||
</h2>
|
||||
<span className="text-[10px] font-mono text-slate-400 font-semibold">{tools.length} tools</span>
|
||||
</div>
|
||||
|
||||
{/* 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-slate-400 pointer-events-none" />
|
||||
<Search className="w-3 h-3 absolute left-2.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none" />
|
||||
<input
|
||||
type="text"
|
||||
placeholder="Search tools..."
|
||||
value={searchQuery}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
className="w-full pl-9 pr-8 py-2.5 rounded-xl text-xs sm:text-sm border border-slate-200 bg-white text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/20 shadow-2xs font-sans transition-colors"
|
||||
className="w-full pl-8 pr-7 py-2 rounded-lg text-xs border border-slate-200 bg-white text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/20 shadow-2xs font-sans transition-colors"
|
||||
/>
|
||||
{searchQuery ? (
|
||||
<button
|
||||
onClick={() => setSearchQuery('')}
|
||||
className="absolute right-2.5 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-900 cursor-pointer p-0.5"
|
||||
className="absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-900 cursor-pointer p-0.5"
|
||||
aria-label="Clear search query"
|
||||
>
|
||||
<X className="w-3.5 h-3.5" />
|
||||
<X className="w-3 h-3" />
|
||||
</button>
|
||||
) : (
|
||||
<kbd className="absolute right-2.5 top-1/2 -translate-y-1/2 text-[10px] font-mono text-slate-500 bg-slate-100 border border-slate-200 px-1.5 py-0.5 rounded pointer-events-none">
|
||||
<kbd className="absolute right-2 top-1/2 -translate-y-1/2 text-[9px] font-mono text-slate-400 bg-slate-100 border border-slate-200 px-1 py-0.5 rounded pointer-events-none">
|
||||
/
|
||||
</kbd>
|
||||
)}
|
||||
@@ -828,49 +831,49 @@ export function ToolGridSection({
|
||||
)}
|
||||
|
||||
{/* Categories Navigation */}
|
||||
<div className="space-y-2">
|
||||
<div className="space-y-1.5">
|
||||
<div className="flex items-center justify-between px-1 font-sans">
|
||||
<span className="text-xs font-bold text-slate-600 uppercase tracking-wider">Workspaces</span>
|
||||
<span className="text-[10px] font-bold text-slate-400 uppercase tracking-wider">Workspaces</span>
|
||||
{(selectedCategory !== 'all' || searchQuery) && (
|
||||
<button
|
||||
onClick={() => {
|
||||
handleSelectCategory('all');
|
||||
setSearchQuery('');
|
||||
}}
|
||||
className="inline-flex items-center gap-1 text-xs font-semibold text-accent hover:underline cursor-pointer lowercase"
|
||||
className="inline-flex items-center gap-1 text-[11px] font-semibold text-accent hover:underline cursor-pointer lowercase"
|
||||
>
|
||||
<RotateCcw className="w-3 h-3" />
|
||||
<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">
|
||||
<nav className="flex flex-col gap-1" 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-xl text-xs sm:text-sm font-sans transition-all duration-150 cursor-pointer ${
|
||||
className={`w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs font-sans transition-all duration-150 cursor-pointer ${
|
||||
selectedCategory === 'all' && !searchQuery
|
||||
? 'bg-slate-900 text-white shadow-xs font-semibold'
|
||||
: 'bg-transparent text-slate-800 hover:bg-slate-100 hover:text-slate-950 border border-transparent hover:border-slate-200 font-medium'
|
||||
: 'bg-transparent text-slate-700 hover:bg-slate-100 hover:text-slate-950 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 ${
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<div className={`w-5 h-5 rounded-md flex items-center justify-center shrink-0 ${
|
||||
selectedCategory === 'all' && !searchQuery
|
||||
? 'bg-white/20 text-accent'
|
||||
: 'bg-slate-100 text-slate-600'
|
||||
? 'bg-white/20'
|
||||
: 'bg-slate-100'
|
||||
}`}>
|
||||
<Layers className="w-3.5 h-3.5" />
|
||||
<FlaticonAllToolsIcon className="w-3.5 h-3.5" />
|
||||
</div>
|
||||
<span className="truncate">All Studio Tools</span>
|
||||
</div>
|
||||
<span
|
||||
className={`text-[11px] font-mono px-2 py-0.5 rounded-full font-bold shrink-0 ${
|
||||
className={`text-[10px] font-mono px-1.5 py-0.5 rounded font-bold shrink-0 ${
|
||||
selectedCategory === 'all' && !searchQuery
|
||||
? 'bg-white/20 text-white'
|
||||
: 'bg-slate-100 text-slate-700 border border-slate-200/60'
|
||||
: 'bg-slate-100 text-slate-600'
|
||||
}`}
|
||||
>
|
||||
{tools.length}
|
||||
@@ -890,27 +893,27 @@ export function ToolGridSection({
|
||||
key={group.id}
|
||||
type="button"
|
||||
onClick={() => handleSelectCategory(group.id)}
|
||||
className={`w-full flex items-center justify-between px-3.5 py-2.5 rounded-xl text-xs sm:text-sm font-sans transition-all duration-150 cursor-pointer ${
|
||||
className={`w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs font-sans transition-all duration-150 cursor-pointer ${
|
||||
isSelected
|
||||
? 'bg-slate-900 text-white shadow-xs font-semibold'
|
||||
: 'bg-transparent text-slate-800 hover:bg-slate-100 hover:text-slate-950 border border-transparent hover:border-slate-200 font-medium'
|
||||
: 'bg-transparent text-slate-700 hover:bg-slate-100 hover:text-slate-950 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 ${
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<div className={`w-5 h-5 rounded-md flex items-center justify-center shrink-0 ${
|
||||
isSelected
|
||||
? 'bg-white/20 text-accent'
|
||||
: 'bg-slate-100 text-slate-600'
|
||||
? 'bg-white/20'
|
||||
: 'bg-slate-100'
|
||||
}`}>
|
||||
{theme?.icon || <Wand2 className="w-3.5 h-3.5 text-accent" />}
|
||||
{theme?.icon || <FlaticonAllToolsIcon className="w-3.5 h-3.5" />}
|
||||
</div>
|
||||
<span className="truncate">{catName}</span>
|
||||
</div>
|
||||
<span
|
||||
className={`text-[11px] font-mono px-2 py-0.5 rounded-full font-bold shrink-0 ${
|
||||
className={`text-[10px] font-mono px-1.5 py-0.5 rounded font-bold shrink-0 ${
|
||||
isSelected
|
||||
? 'bg-white/20 text-white'
|
||||
: 'bg-slate-100 text-slate-700 border border-slate-200/60'
|
||||
: 'bg-slate-100 text-slate-600'
|
||||
}`}
|
||||
>
|
||||
{group.tools.length}
|
||||
@@ -924,12 +927,12 @@ export function ToolGridSection({
|
||||
</div>
|
||||
|
||||
{/* Bottom: Native App Suite Link */}
|
||||
<div className="pt-4 border-t border-rule space-y-3">
|
||||
<div className="pt-3 border-t border-rule space-y-2">
|
||||
<Link
|
||||
href="/apps"
|
||||
className="w-full inline-flex items-center justify-between px-3.5 py-2.5 rounded-xl text-xs sm:text-sm font-sans font-semibold text-slate-800 bg-slate-100 hover:bg-slate-900 hover:text-white transition-colors duration-150 group shadow-2xs"
|
||||
className="w-full inline-flex items-center justify-between px-2.5 py-2 rounded-lg text-xs font-sans font-medium text-slate-700 bg-slate-100/80 hover:bg-slate-900 hover:text-white transition-colors duration-150 group shadow-2xs"
|
||||
>
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex items-center gap-1.5">
|
||||
<Smartphone className="w-3.5 h-3.5 text-accent group-hover:text-white" />
|
||||
<span>Mobile studio suite</span>
|
||||
</div>
|
||||
@@ -977,17 +980,17 @@ export function ToolGridSection({
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="flex items-center gap-2 overflow-x-auto no-scrollbar py-1">
|
||||
<div className="flex items-center gap-1.5 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-sans font-semibold shrink-0 transition-colors ${
|
||||
className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-sans font-semibold shrink-0 transition-colors ${
|
||||
selectedCategory === 'all' && !searchQuery
|
||||
? 'bg-slate-900 text-white shadow-xs'
|
||||
: 'bg-white text-slate-800 border border-slate-200 hover:text-slate-950'
|
||||
}`}
|
||||
>
|
||||
<Layers className="w-3.5 h-3.5" />
|
||||
<FlaticonAllToolsIcon className="w-3.5 h-3.5" />
|
||||
<span>All tools ({tools.length})</span>
|
||||
</button>
|
||||
{categorizedTools.map((group) => {
|
||||
@@ -1002,13 +1005,13 @@ export function ToolGridSection({
|
||||
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-sans font-semibold shrink-0 transition-colors ${
|
||||
className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-sans font-semibold shrink-0 transition-colors ${
|
||||
isSelected
|
||||
? 'bg-slate-900 text-white shadow-xs'
|
||||
: 'bg-white text-slate-800 border border-slate-200 hover:text-slate-950'
|
||||
}`}
|
||||
>
|
||||
<span className="shrink-0">{theme?.icon}</span>
|
||||
<span className="shrink-0">{theme?.icon || <FlaticonAllToolsIcon className="w-3.5 h-3.5" />}</span>
|
||||
<span>{catName}</span>
|
||||
<span className="text-[10px] opacity-70">({group.tools.length})</span>
|
||||
</button>
|
||||
@@ -1047,9 +1050,9 @@ export function ToolGridSection({
|
||||
{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 className="flex items-center gap-3.5">
|
||||
<div className="w-12 h-12 rounded-2xl flex items-center justify-center bg-paper-hi shadow-xs border border-rule shrink-0">
|
||||
{CATEGORY_THEMES[activeCategoryItem.id]?.largeIcon || <FlaticonAllToolsIcon className="w-7 h-7" />}
|
||||
</div>
|
||||
<div>
|
||||
<div className="flex items-center gap-3">
|
||||
@@ -1063,9 +1066,6 @@ export function ToolGridSection({
|
||||
{activeCategoryItem.tools.length === 1 ? 'tool' : 'tools'}
|
||||
</span>
|
||||
</div>
|
||||
<p className="text-sm sm:text-base text-ink-2 font-sans max-w-2xl mt-1.5 leading-relaxed">
|
||||
{resolveLocalised(activeCategoryItem.category?.description, locale)}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1079,17 +1079,13 @@ export function ToolGridSection({
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
/* Universal Studio Overview Header */
|
||||
/* Universal Studio Overview Header - Title Only */
|
||||
<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-sans 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>
|
||||
)}
|
||||
</div>
|
||||
@@ -1176,8 +1172,8 @@ export function ToolGridSection({
|
||||
{/* 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" />}
|
||||
<div className="w-11 h-11 rounded-2xl flex items-center justify-center bg-paper-hi shadow-xs border border-rule shrink-0">
|
||||
{theme?.largeIcon || theme?.icon || <FlaticonAllToolsIcon className="w-6 h-6" />}
|
||||
</div>
|
||||
<div>
|
||||
<div className="flex items-center gap-2.5">
|
||||
@@ -1189,11 +1185,6 @@ export function ToolGridSection({
|
||||
{group.tools.length === 1 ? 'tool' : 'tools'}
|
||||
</span>
|
||||
</div>
|
||||
{catDesc && (
|
||||
<p className="text-xs sm:text-sm text-ink-2 mt-0.5 font-sans line-clamp-1 sm:line-clamp-none">
|
||||
{catDesc}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user