From 45c8123c3b75064341973513650ceb01385c26eb Mon Sep 17 00:00:00 2001 From: Johnny322 Date: Mon, 2 Mar 2026 22:02:09 +0100 Subject: [PATCH] Styling --- src/App.vue | 12 +++++++++--- src/styles.css | 8 ++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8dbf1a6..2e5f2f9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,7 @@
-

Music Jeopardy

-

Track the Beat, Claim the Points

+

Music Jeopardy

Selecting @@ -200,7 +199,7 @@ Guessed - Won + {{ winningTeamName(cIndex, qIndex) }} Skipped @@ -1032,6 +1031,13 @@ export default { if (!team) return {} return this.teamGradient(team) }, + winningTeamName(cIndex: number, qIndex: number) { + const key = this.tileKey(cIndex, qIndex) + const teamId = this.tiles[key]?.lastTeamId + if (!teamId) return 'Won' + const team = this.teams.find((candidate) => candidate.id === teamId) + return team?.name?.trim() || 'Won' + }, async handleTileClick(cIndex: number, qIndex: number) { if (!this.canControlGame) return const key = this.tileKey(cIndex, qIndex) diff --git a/src/styles.css b/src/styles.css index 4c9a35a..129d3ec 100644 --- a/src/styles.css +++ b/src/styles.css @@ -75,8 +75,9 @@ code { .app-header h1 { margin: 0; font-family: 'Bebas Neue', sans-serif; - font-size: clamp(2.2rem, 2.5vw, 3rem); - letter-spacing: 0.08em; + font-size: clamp(3.1rem, 6vw, 5.2rem); + letter-spacing: 0.1em; + line-height: 0.95; } .eyebrow { @@ -444,6 +445,9 @@ button { .tile.won { background: #2a2f3f; color: #0d0f1c; + font-size: 0.95rem; + line-height: 1.2; + word-break: break-word; } .tile.void {