From 5cbe2246d32771cb63d949dbb1719673d6138500 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 15 Oct 2025 01:21:57 +0200 Subject: [PATCH] fix: apply proper theme colors to support page for readability - Use CSS variables for background, text, and border colors - Add min-h-screen wrapper with proper background color - Replace hardcoded zinc colors with theme-aware variables - Ensure text is readable in both light and dark themes --- src/components/Support.tsx | 140 +++++++++++++++++++++---------------- 1 file changed, 78 insertions(+), 62 deletions(-) diff --git a/src/components/Support.tsx b/src/components/Support.tsx index 101d5c7e..ab41d95a 100644 --- a/src/components/Support.tsx +++ b/src/components/Support.tsx @@ -52,65 +52,67 @@ const Support: React.FC = ({ relayPool, eventStore, settings }) => } return ( -
-
-
- Thank you +
+
+
+
+ Thank you +
+

+ Support Boris +

+

+ Thank you to everyone who has supported Boris! Your zaps help keep this project alive. +

-

- Support Boris -

-

- Thank you to everyone who has supported Boris! Your zaps help keep this project alive. -

-
- {supporters.length === 0 ? ( -
-

No supporters yet. Be the first to zap Boris!

+ {supporters.length === 0 ? ( +
+

No supporters yet. Be the first to zap Boris!

+
+ ) : ( + <> + {/* Whales Section */} + {supporters.filter(s => s.isWhale).length > 0 && ( +
+

+ + Mega Supporters +

+
+ {supporters.filter(s => s.isWhale).map(supporter => ( + + ))} +
+
+ )} + + {/* Regular Supporters Section */} + {supporters.filter(s => !s.isWhale).length > 0 && ( +
+

+ Supporters +

+
+ {supporters.filter(s => !s.isWhale).map(supporter => ( + + ))} +
+
+ )} + + )} + +
+

+ Total supporters: {supporters.length} • + Total zaps: {supporters.reduce((sum, s) => sum + s.zapCount, 0)} +

- ) : ( - <> - {/* Whales Section */} - {supporters.filter(s => s.isWhale).length > 0 && ( -
-

- - Mega Supporters -

-
- {supporters.filter(s => s.isWhale).map(supporter => ( - - ))} -
-
- )} - - {/* Regular Supporters Section */} - {supporters.filter(s => !s.isWhale).length > 0 && ( -
-

- Supporters -

-
- {supporters.filter(s => !s.isWhale).map(supporter => ( - - ))} -
-
- )} - - )} - -
-

- Total supporters: {supporters.length} • - Total zaps: {supporters.reduce((sum, s) => sum + s.zapCount, 0)} -

) @@ -132,10 +134,14 @@ const SupporterCard: React.FC = ({ supporter, isWhale }) =>
{/* Avatar */}
{picture ? ( @@ -148,14 +154,18 @@ const SupporterCard: React.FC = ({ supporter, isWhale }) => ) : ( )}
{/* Whale Badge */} {isWhale && ( -
+
)} @@ -163,10 +173,16 @@ const SupporterCard: React.FC = ({ supporter, isWhale }) => {/* Name and Total */}
-

+

{name}

-

+

{supporter.totalSats.toLocaleString()} sats