feat(ui): complete redesign of tools pages, prominent buttons below photo upload, and futuristic processing animations

This commit is contained in:
2026-11-11 10:47:00 +05:30
parent 4eff5ae66c
commit d035f48319
6 changed files with 520 additions and 111 deletions
+27 -6
View File
@@ -394,6 +394,17 @@ function ToolCard({
const toolName = resolveLocalised(tool.name, locale);
const toolSummary = resolveLocalised(tool.summary, locale);
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';
return (
<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 */}
@@ -402,9 +413,16 @@ function ToolCard({
{/* Info Area: Title, Subtitle, and Direct Action Button */}
<div className="mt-4 flex-1 flex flex-col justify-between space-y-3.5">
<div>
{/* Tool Title */}
{/* 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>
<Link href={`/tools/${tool.slug}`} className="block">
<h4 className="text-base sm:text-lg font-display font-bold text-ink tracking-tight leading-snug">
<h4 className="text-base sm:text-lg font-display font-bold text-ink tracking-tight leading-snug group-hover:text-accent transition-colors">
<AnimatedShinyText>{toolName}</AnimatedShinyText>
</h4>
</Link>
@@ -415,15 +433,18 @@ function ToolCard({
</p>
</div>
{/* Action Button Row */}
{/* Action Button Row: Highly Visible Prominent Primary Button */}
<div className="pt-3 border-t border-rule">
<Link
href={`/tools/${tool.slug}`}
className="w-full inline-flex items-center justify-between px-4 py-2.5 rounded-full bg-paper-2 text-ink hover:bg-ink hover:text-paper-hi font-body text-xs font-semibold transition-colors duration-150 shadow-2xs group/btn active:scale-98"
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"
aria-label={`Open interactive studio for ${toolName}`}
>
<span>Try tool in browser</span>
<ArrowRight className="w-3.5 h-3.5 text-accent group-hover/btn:text-paper-hi group-hover/btn:translate-x-0.5 transition-all" aria-hidden="true" />
<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" />
</Link>
</div>
</div>