fix: Significantly improve text and button visibility on match hero

- Back button: solid black/60 background with backdrop-blur instead of ghost
- Download Demo button: solid primary background instead of outline
- Map name: triple-layer text shadow for maximum contrast
- Score labels: full white with strong shadows, uppercase styling
- Score numbers: triple shadow with glow effect (0.95/0.8/0.6 opacity layers)
- Colon separator: full white with strong shadow
- Metadata text/icons: strong text shadows and drop-shadow filters
- Tabs container: increased to black/70 with stronger backdrop-blur

All text elements now have multiple layers of shadows for readability
on bright map backgrounds like de_dust2.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-12 23:17:54 +01:00
parent a3955da7f2
commit 4cc2b70dbc

View File

@@ -57,7 +57,7 @@
<div class="mb-4"> <div class="mb-4">
<button <button
onclick={handleBack} onclick={handleBack}
class="btn btn-ghost btn-sm gap-2 text-white/80 hover:text-white" class="btn btn-sm gap-2 bg-black/60 text-white backdrop-blur-sm hover:bg-black/80"
> >
<ArrowLeft class="h-4 w-4" /> <ArrowLeft class="h-4 w-4" />
<span>Back to Matches</span> <span>Back to Matches</span>
@@ -70,10 +70,17 @@
{#if match.map} {#if match.map}
<Badge variant="default" size="lg">{match.map}</Badge> <Badge variant="default" size="lg">{match.map}</Badge>
{/if} {/if}
<h1 class="mt-2 text-4xl font-bold text-white drop-shadow-lg">{mapName}</h1> <h1
class="mt-2 text-4xl font-bold text-white"
style="text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.7);"
>
{mapName}
</h1>
</div> </div>
{#if match.demo_parsed} {#if match.demo_parsed}
<button class="btn btn-outline btn-primary gap-2"> <button
class="btn gap-2 bg-primary/90 text-primary-content backdrop-blur-sm hover:bg-primary"
>
<Download class="h-4 w-4" /> <Download class="h-4 w-4" />
Download Demo Download Demo
</button> </button>
@@ -83,20 +90,32 @@
<!-- Score --> <!-- Score -->
<div class="mb-6 flex items-center justify-center gap-6"> <div class="mb-6 flex items-center justify-center gap-6">
<div class="text-center"> <div class="text-center">
<div class="text-sm font-medium text-white/90 drop-shadow-md">TERRORISTS</div> <div
class="text-sm font-medium uppercase tracking-wider text-white"
style="text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);"
>
Terrorists
</div>
<div <div
class="font-mono text-5xl font-bold text-terrorist" class="font-mono text-5xl font-bold text-terrorist"
style="text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);" style="text-shadow: 0 6px 12px rgba(0, 0, 0, 0.95), 0 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);"
> >
{match.score_team_a} {match.score_team_a}
</div> </div>
</div> </div>
<div class="text-3xl font-bold text-white/60 drop-shadow-lg">:</div> <div class="text-3xl font-bold text-white" style="text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);">
:
</div>
<div class="text-center"> <div class="text-center">
<div class="text-sm font-medium text-white/90 drop-shadow-md">COUNTER-TERRORISTS</div> <div
class="text-sm font-medium uppercase tracking-wider text-white"
style="text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);"
>
Counter-Terrorists
</div>
<div <div
class="font-mono text-5xl font-bold text-ct" class="font-mono text-5xl font-bold text-ct"
style="text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);" style="text-shadow: 0 6px 12px rgba(0, 0, 0, 0.95), 0 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);"
> >
{match.score_team_b} {match.score_team_b}
</div> </div>
@@ -104,13 +123,16 @@
</div> </div>
<!-- Match Meta --> <!-- Match Meta -->
<div class="flex flex-wrap items-center justify-center gap-4 text-sm text-white drop-shadow-md"> <div
class="flex flex-wrap items-center justify-center gap-4 text-sm text-white"
style="text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);"
>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<Calendar class="h-4 w-4" /> <Calendar class="h-4 w-4" style="filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));" />
<span>{formattedDate}</span> <span>{formattedDate}</span>
</div> </div>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<Clock class="h-4 w-4" /> <Clock class="h-4 w-4" style="filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));" />
<span>{duration}</span> <span>{duration}</span>
</div> </div>
<Badge variant="info" size="sm">MR12 ({match.max_rounds} rounds)</Badge> <Badge variant="info" size="sm">MR12 ({match.max_rounds} rounds)</Badge>
@@ -120,7 +142,7 @@
</div> </div>
<!-- Tabs --> <!-- Tabs -->
<div class="mt-6 rounded-lg bg-black/50 p-4 backdrop-blur-sm"> <div class="mt-6 rounded-lg bg-black/70 p-4 backdrop-blur-md">
<Tabs {tabs} variant="bordered" size="md" /> <Tabs {tabs} variant="bordered" size="md" />
</div> </div>
</div> </div>