feat(ui): redesign free browser trial tag, optimize phone/tablet responsiveness, integrate lenis smooth scroll, and focus copy strictly on effects & mobile apps

This commit is contained in:
2026-11-03 14:56:58 +05:30
parent f4bc2f2cc2
commit f2960d90f8
13 changed files with 159 additions and 67 deletions
+27 -17
View File
@@ -161,29 +161,39 @@ export function TryItWidget({
};
return (
<div className={`relative bg-white rounded-3xl p-6 sm:p-10 border border-slate-900/[0.08] shadow-cream-md overflow-hidden ${className}`}>
<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 items-start sm:items-center justify-between gap-4 pb-6 border-b border-slate-100">
<div className="flex items-center gap-3.5">
<div className="w-11 h-11 rounded-2xl bg-gradient-to-tr from-blue-600 to-indigo-600 flex items-center justify-center text-white shadow-md shadow-blue-500/20 shrink-0">
<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>
<h3 className="font-display font-bold text-slate-900 text-base sm:text-lg flex items-center gap-2">
<span>{resolveLocalised(tool.name, locale)}</span>
<span className="text-[10px] font-mono text-blue-700 bg-blue-50 border border-blue-200 px-2 py-0.5 rounded-full font-semibold">
Free Browser Trial
</span>
</h3>
<p className="text-xs font-mono text-slate-500 mt-0.5">
Zero Watermarks • In-Memory RAM Stream • No Sign-Up
<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>
</div>
<div className="self-end sm:self-auto flex items-center gap-2 bg-emerald-50 border border-emerald-200 px-3.5 py-1.5 rounded-full text-xs font-mono text-emerald-800 font-semibold">
<span className="w-2 h-2 rounded-full bg-emerald-500 animate-pulse"></span>
<span>{remainingTries} free tries today</span>
<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>
</div>
@@ -328,7 +338,7 @@ export function TryItWidget({
CRE Neural Vision Engine Processing...
</h4>
<p className="text-xs sm:text-sm text-slate-500 max-w-sm mx-auto mt-1 font-mono">
Synthesizing deep learning layers while preserving native pore texture in volatile RAM.
Synthesizing deep neural layers while preserving natural textures and micro-details.
</p>
</div>
</div>