From 4cdff9730b3c70d88c1b32f00561b16673a2d55a Mon Sep 17 00:00:00 2001 From: Fringg Date: Sat, 28 Feb 2026 06:37:40 +0300 Subject: [PATCH] fix: improve light theme visibility for dashboard and subscription cards - Increase card opacity and shadow contrast in glassTheme for light mode - Add accent-tinted borders and shadows to subscription cards (active, expired, trial) - Fix grid patterns to use dark lines instead of white in light mode - Fix trial CTA button: solid green with dark text instead of invisible transparent - Fix trial icon background: light accent gradient instead of hardcoded dark - Add + prefix to referral earnings in StatsGrid --- src/components/dashboard/StatsGrid.tsx | 2 +- .../dashboard/SubscriptionCardActive.tsx | 6 +- .../dashboard/SubscriptionCardExpired.tsx | 16 ++++-- src/components/dashboard/TrialOfferCard.tsx | 55 ++++++++++++++----- src/pages/Subscription.tsx | 8 ++- src/utils/glassTheme.ts | 6 +- 6 files changed, 65 insertions(+), 28 deletions(-) diff --git a/src/components/dashboard/StatsGrid.tsx b/src/components/dashboard/StatsGrid.tsx index 8c3ebbb..6ac21c7 100644 --- a/src/components/dashboard/StatsGrid.tsx +++ b/src/components/dashboard/StatsGrid.tsx @@ -83,7 +83,7 @@ export default function StatsGrid({ label: t('dashboard.stats.referrals'), value: `${referralCount}`, valueColor: g.text, - subtitle: `${formatAmount(earningsRubles)} ${currencySymbol}`, + subtitle: `+${formatAmount(earningsRubles)} ${currencySymbol}`, subtitleColor: zone.mainHex, to: '/referral', icon: (color: string) => ( diff --git a/src/components/dashboard/SubscriptionCardActive.tsx b/src/components/dashboard/SubscriptionCardActive.tsx index df934d7..76ba2a7 100644 --- a/src/components/dashboard/SubscriptionCardActive.tsx +++ b/src/components/dashboard/SubscriptionCardActive.tsx @@ -73,9 +73,11 @@ export default function SubscriptionCardActive({ background: g.cardBg, border: subscription.is_trial ? '1px solid rgba(62,219,176,0.15)' - : `1px solid ${g.cardBorder}`, + : isDark + ? `1px solid ${g.cardBorder}` + : `1px solid ${zone.mainHex}25`, padding: '28px 28px 24px', - boxShadow: g.shadow, + boxShadow: isDark ? g.shadow : `0 2px 16px ${zone.mainHex}12, 0 0 0 1px ${zone.mainHex}08`, }} > {/* Trial shimmer border */} diff --git a/src/components/dashboard/SubscriptionCardExpired.tsx b/src/components/dashboard/SubscriptionCardExpired.tsx index dce57ef..38ef1a1 100644 --- a/src/components/dashboard/SubscriptionCardExpired.tsx +++ b/src/components/dashboard/SubscriptionCardExpired.tsx @@ -20,8 +20,10 @@ export default function SubscriptionCardExpired({ subscription }: SubscriptionCa className="relative overflow-hidden rounded-3xl" style={{ background: g.cardBg, - border: '1px solid rgba(255,70,70,0.12)', - boxShadow: g.shadow, + border: isDark ? '1px solid rgba(255,70,70,0.12)' : '1px solid rgba(255,59,92,0.2)', + boxShadow: isDark + ? g.shadow + : '0 2px 16px rgba(255,59,92,0.1), 0 0 0 1px rgba(255,59,92,0.06)', padding: '28px 28px 24px', }} > @@ -40,10 +42,14 @@ export default function SubscriptionCardExpired({ subscription }: SubscriptionCa /> {/* Grid pattern */}