From 122f050a1b8951090dd774edfa631cf0a1320b29 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 26 May 2026 11:17:42 +0300 Subject: [PATCH] refactor(design): flatten accent gradient CTAs to solid bg per design law MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace gradient CTAs that fade between same-token shades with flat backgrounds (TopUpAmount accent submit, ChannelSubscriptionScreen single-channel button, three SuccessNotificationModal action buttons). Stars yellow→orange gradient kept as a Telegram brand cue; decorative card-header gradients left as visual identity. --- src/components/SuccessNotificationModal.tsx | 4 ++-- src/components/blocking/ChannelSubscriptionScreen.tsx | 2 +- src/pages/TopUpAmount.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/SuccessNotificationModal.tsx b/src/components/SuccessNotificationModal.tsx index c9a5c6a..439ce31 100644 --- a/src/components/SuccessNotificationModal.tsx +++ b/src/components/SuccessNotificationModal.tsx @@ -330,7 +330,7 @@ export default function SuccessNotificationModal() { {isSubscription && ( diff --git a/src/pages/TopUpAmount.tsx b/src/pages/TopUpAmount.tsx index 2873e90..448102d 100644 --- a/src/pages/TopUpAmount.tsx +++ b/src/pages/TopUpAmount.tsx @@ -506,7 +506,7 @@ export default function TopUpAmount() { ? 'cursor-not-allowed bg-dark-700 text-dark-500' : isStarsMethod ? 'bg-gradient-to-r from-yellow-500 to-orange-500 text-white shadow-lg shadow-yellow-500/25 hover:from-yellow-400 hover:to-orange-400 active:from-yellow-600 active:to-orange-600' - : 'bg-gradient-to-r from-accent-500 to-accent-600 text-white shadow-lg shadow-accent-500/25 hover:from-accent-400 hover:to-accent-500 active:from-accent-600 active:to-accent-700' + : 'bg-accent-500 text-white shadow-lg shadow-accent-500/25 transition-colors hover:bg-accent-400 active:bg-accent-600' }`} > {isPending ? (