From 0ea9795e30ab34c74d8cdd4ba1a4ec59bd48949f Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 18 Jan 2026 21:03:57 +0000 Subject: [PATCH] refine: simplify to elegant 2-color gradients and add badge check icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simplifies Grimoire member styling for a more elegant appearance: **Gradient changes:** - Direction: bg-gradient-to-br → bg-gradient-to-tr (diagonal from top-left) - Logged-in: Simplified to orange-400 → amber-600 (warm elegant gradient) - Non-logged-in: Simplified to violet-500 → fuchsia-600 (cool elegant gradient) **Badge check icon:** - Added BadgeCheck icon after member names - Icon scales automatically with username size using w-[1em] h-[1em] - Provides visual verification of Grimoire membership The simpler 2-color gradients with top-right direction create a more refined, classy look while the badge check adds instant recognition. --- src/components/nostr/UserName.tsx | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/nostr/UserName.tsx b/src/components/nostr/UserName.tsx index 11fcb80..868e5a5 100644 --- a/src/components/nostr/UserName.tsx +++ b/src/components/nostr/UserName.tsx @@ -3,6 +3,7 @@ import { getDisplayName } from "@/lib/nostr-utils"; import { cn } from "@/lib/utils"; import { useGrimoire } from "@/core/state"; import { isGrimoireMember } from "@/lib/grimoire-members"; +import { BadgeCheck } from "lucide-react"; interface UserNameProps { pubkey: string; @@ -15,9 +16,10 @@ interface UserNameProps { * Shows placeholder derived from pubkey while loading or if no profile exists * Clicking opens the user's profile * Uses highlight color for the logged-in user (themeable orange) - * Shows Grimoire members with 4-color gradient styling: - * - Yellow→Orange→Amber for logged-in member (bright shimmer at top) - * - Violet→Purple→Fuchsia for other members (bright highlight at top) + * Shows Grimoire members with elegant 2-color gradient styling and badge check: + * - Orange→Amber gradient for logged-in member + * - Violet→Fuchsia gradient for other members + * - BadgeCheck icon that scales with username size */ export function UserName({ pubkey, isMention, className }: UserNameProps) { const { addWindow, state } = useGrimoire(); @@ -37,11 +39,11 @@ export function UserName({ pubkey, isMention, className }: UserNameProps) { - {isMention ? "@" : null} - {displayName} + + {isMention ? "@" : null} + {displayName} + + {isGrimoire && } ); }