From 78c87aaedd295d55ec845cb0fd7abaf56c6f7b89 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Wed, 12 Nov 2025 23:24:31 +0100 Subject: [PATCH] refactor: Redesign match hero with modern translucent panels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implemented comprehensive visual overhaul based on UX feedback: Background & Framing: - Replace single gradient with dual-layer system for depth - Add top-to-bottom gradient (30% → transparent → 40%) for framing - Add left-to-right gradient (70% → 40% → 70%) for content focus - Creates natural vignette effect that draws eye to center Hero Info Panel: - Wrap score and metadata in translucent panel (black/40 + backdrop-blur) - Add subtle border (white/10) for definition - Center-align and constrain width (max-w-3xl) for focused composition - Cleaner hierarchy with reduced text shadows (rely on panel for contrast) Typography & Layout: - Increase map title to text-5xl, remove badge duplication - Score numbers to text-6xl for prominence - Team labels to text-xs with reduced opacity (70%) - Metadata with bullet separators (•) for cleaner inline layout - Smaller icons (3.5) and tighter spacing Download Demo Button: - Ghost style with translucent background (white/15) - Subtle border (white/25) instead of solid primary color - Hover effect (white/25) for interaction feedback - Hide text on mobile (icon only) for space efficiency Navigation: - Reduce tabs background to 35% opacity with stronger backdrop-blur-lg - Add border (white/10) for subtle definition - Maintains readability while showing more background Result: Modern, cinematic interface with improved visual hierarchy and readability on both dark and bright map backgrounds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/routes/match/[id]/+layout.svelte | 108 ++++++++++++--------------- 1 file changed, 47 insertions(+), 61 deletions(-) diff --git a/src/routes/match/[id]/+layout.svelte b/src/routes/match/[id]/+layout.svelte index b810020..6bac483 100644 --- a/src/routes/match/[id]/+layout.svelte +++ b/src/routes/match/[id]/+layout.svelte @@ -48,8 +48,9 @@
{mapName} - -
+ +
+
@@ -65,84 +66,69 @@
-
+
- {#if match.map} - {match.map} - {/if} -

+

{mapName}

{#if match.demo_parsed} {/if}
- -
-
-
- Terrorists -
-
- {match.score_team_a} -
-
-
- : -
-
-
- Counter-Terrorists -
-
- {match.score_team_b} -
-
-
- - +
-
- - {formattedDate} + +
+
+
+ Terrorists +
+
+ {match.score_team_a} +
+
+
:
+
+
+ Counter-Terrorists +
+
+ {match.score_team_b} +
+
-
- - {duration} + + +
+
+ + {formattedDate} +
+ +
+ + {duration} +
+ + MR12 ({match.max_rounds} rounds) + {#if match.demo_parsed} + + Demo Parsed + {/if}
- MR12 ({match.max_rounds} rounds) - {#if match.demo_parsed} - Demo Parsed - {/if}
-
+