feat(home): بازطراحی کادر آمار هیرو — شیشهٔ چندلایه با خط مویی مسی، هالهٔ نرم، نشان زنده و سلسله‌مراتب عدد/برچسب (محتوای کاربر دست‌نخورده)

This commit is contained in:
aramesh-site deploy
2026-10-07 09:46:40 +00:00
parent 436acf3cca
commit 573d4ab452
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -148,10 +148,12 @@ export function Hero() {
</span>
</span>
<div className="min-w-0">
<p className="font-mono text-[2rem] font-bold leading-none tracking-tight text-copper">
<InlineEdit value={hero.badge_value} onSave={(v) => saveHero('badge_value', v)} />
</p>
<p className="mt-2.5 text-[13px] font-light leading-6 text-ivory/75">
{String(hero.badge_value ?? '').trim() !== '' && (
<p className="font-mono text-[2rem] font-bold leading-none tracking-tight text-copper">
<InlineEdit value={hero.badge_value} onSave={(v) => saveHero('badge_value', v)} />
</p>
)}
<p className={`text-[13px] font-light leading-6 text-ivory/75 ${String(hero.badge_value ?? '').trim() !== '' ? 'mt-2.5' : ''}`}>
<InlineEdit multiline value={hero.badge_label} onSave={(v) => saveHero('badge_label', v)} />
</p>
</div>