mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
Refactor PromoDiscountBadge component: simplify button styling, remove unnecessary animations, and adjust layout for improved user experience
This commit is contained in:
@@ -88,19 +88,12 @@ export default function PromoDiscountBadge() {
|
|||||||
{/* Badge button */}
|
{/* Badge button */}
|
||||||
<button
|
<button
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
className="relative flex items-center gap-1.5 px-3 py-2 rounded-xl bg-gradient-to-r from-success-500/20 to-accent-500/20 border border-success-500/30 hover:border-success-500/50 transition-all group"
|
className="relative flex items-center gap-1 px-2.5 py-1.5 rounded-lg bg-success-500/15 hover:bg-success-500/25 transition-all group"
|
||||||
title={t('promo.activeDiscount', 'Active discount')}
|
title={t('promo.activeDiscount', 'Active discount')}
|
||||||
>
|
>
|
||||||
{/* Animated sparkle effect */}
|
<span className="font-bold text-success-400 text-sm">
|
||||||
<div className="absolute inset-0 rounded-xl bg-gradient-to-r from-success-500/10 to-accent-500/10 animate-pulse" />
|
|
||||||
|
|
||||||
<SparklesIcon />
|
|
||||||
<span className="relative font-bold text-success-400 text-sm">
|
|
||||||
-{activeDiscount.discount_percent}%
|
-{activeDiscount.discount_percent}%
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{/* Notification dot */}
|
|
||||||
<span className="absolute -top-1 -right-1 w-2 h-2 bg-success-400 rounded-full animate-pulse" />
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Dropdown - mobile: fixed centered, desktop: absolute right */}
|
{/* Dropdown - mobile: fixed centered, desktop: absolute right */}
|
||||||
|
|||||||
Reference in New Issue
Block a user