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:
2026-11-12 18:24:43 +05:30
parent ec609c5d4a
commit 484b268537
4 changed files with 366 additions and 84 deletions
+299
View File
@@ -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>
);
}