fix: streamline tool page to single upload and single compare, make vertical-horizontal transitions fluid and seamless

This commit is contained in:
2026-11-04 12:00:17 +05:30
parent 378f5c40a9
commit 6a0bb61c05
5 changed files with 102 additions and 172 deletions
+13 -28
View File
@@ -170,37 +170,22 @@ export function TryItWidget({
return (
<div className={`relative bg-white rounded-3xl p-5 sm:p-8 lg:p-10 border border-slate-900/[0.08] shadow-cream-md overflow-hidden ${className}`}>
{/* Top Header & Tries Counter */}
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-5 sm:pb-6 border-b border-slate-100">
<div className="flex items-center gap-3 sm:gap-4 min-w-0">
<div className="w-10 h-10 sm:w-11 sm:h-11 rounded-2xl bg-gradient-to-tr from-blue-600 via-indigo-600 to-blue-700 flex items-center justify-center text-white shadow-md shadow-blue-500/20 shrink-0">
<Zap className="w-5 h-5" />
</div>
<div className="min-w-0">
<div className="flex flex-wrap items-center gap-2 sm:gap-2.5">
<h3 className="font-display font-bold text-slate-900 text-base sm:text-lg tracking-tight">
{resolveLocalised(tool.name, locale)}
</h3>
<div className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-[11px] font-mono font-semibold text-blue-700 bg-gradient-to-r from-blue-50 via-indigo-50/60 to-blue-50 border border-blue-200/80 shadow-2xs whitespace-nowrap">
<span className="relative flex h-2 w-2">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"></span>
<span className="relative inline-flex rounded-full h-2 w-2 bg-blue-600"></span>
</span>
<span>Free Browser Trial</span>
</div>
</div>
<p className="text-xs text-slate-500 mt-1 font-normal flex items-center gap-1.5 flex-wrap">
<span>Studio-Grade AI Enhancement</span>
<span className="text-slate-300 hidden sm:inline">•</span>
<span className="hidden sm:inline">Instant Visual Quality</span>
</p>
<div className="flex items-center justify-between gap-4 pb-4 sm:pb-5 border-b border-slate-100">
<div className="flex items-center gap-2.5">
<div className="w-8 h-8 rounded-xl bg-blue-50 border border-blue-200/80 flex items-center justify-center text-blue-600">
<UploadCloud className="w-4 h-4" />
</div>
<span className="text-xs sm:text-sm font-display font-semibold text-slate-800">
Try Online Free
</span>
<span className="hidden sm:inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-[10px] font-mono font-semibold text-blue-700 bg-blue-50 border border-blue-200/80">
Lossless AI
</span>
</div>
<div className="flex items-center justify-between sm:justify-end gap-2 shrink-0 pt-2.5 sm:pt-0 border-t sm:border-t-0 border-slate-100">
<div className="inline-flex items-center gap-2 bg-emerald-50 border border-emerald-200/90 px-3.5 py-1.5 rounded-full text-xs font-mono text-emerald-800 font-semibold shadow-2xs">
<span className="w-2 h-2 rounded-full bg-emerald-500 animate-pulse"></span>
<span>{remainingTries} free tries today</span>
</div>
<div className="inline-flex items-center gap-2 bg-emerald-50 border border-emerald-200/90 px-3.5 py-1 rounded-full text-xs font-mono text-emerald-800 font-semibold shadow-2xs">
<span className="w-2 h-2 rounded-full bg-emerald-500 animate-pulse"></span>
<span>{remainingTries} free tries today</span>
</div>
</div>