This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -2,8 +2,7 @@
|
|||||||
<div class="app" :class="{ suspended: viewerSuspended }">
|
<div class="app" :class="{ suspended: viewerSuspended }">
|
||||||
<header class="app-header">
|
<header class="app-header">
|
||||||
<div>
|
<div>
|
||||||
<p class="eyebrow">Music Jeopardy</p>
|
<h1>Music Jeopardy</h1>
|
||||||
<h1>Track the Beat, Claim the Points</h1>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="step === 'game'" class="selector-pill">
|
<div v-if="step === 'game'" class="selector-pill">
|
||||||
<span class="label">Selecting</span>
|
<span class="label">Selecting</span>
|
||||||
@@ -200,7 +199,7 @@
|
|||||||
Guessed
|
Guessed
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="tileStatus(cIndex, qIndex) === 'won'">
|
<span v-else-if="tileStatus(cIndex, qIndex) === 'won'">
|
||||||
Won
|
{{ winningTeamName(cIndex, qIndex) }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else>Skipped</span>
|
<span v-else>Skipped</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -1032,6 +1031,13 @@ export default {
|
|||||||
if (!team) return {}
|
if (!team) return {}
|
||||||
return this.teamGradient(team)
|
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) {
|
async handleTileClick(cIndex: number, qIndex: number) {
|
||||||
if (!this.canControlGame) return
|
if (!this.canControlGame) return
|
||||||
const key = this.tileKey(cIndex, qIndex)
|
const key = this.tileKey(cIndex, qIndex)
|
||||||
|
|||||||
@@ -75,8 +75,9 @@ code {
|
|||||||
.app-header h1 {
|
.app-header h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Bebas Neue', sans-serif;
|
font-family: 'Bebas Neue', sans-serif;
|
||||||
font-size: clamp(2.2rem, 2.5vw, 3rem);
|
font-size: clamp(3.1rem, 6vw, 5.2rem);
|
||||||
letter-spacing: 0.08em;
|
letter-spacing: 0.1em;
|
||||||
|
line-height: 0.95;
|
||||||
}
|
}
|
||||||
|
|
||||||
.eyebrow {
|
.eyebrow {
|
||||||
@@ -444,6 +445,9 @@ button {
|
|||||||
.tile.won {
|
.tile.won {
|
||||||
background: #2a2f3f;
|
background: #2a2f3f;
|
||||||
color: #0d0f1c;
|
color: #0d0f1c;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
line-height: 1.2;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile.void {
|
.tile.void {
|
||||||
|
|||||||
Reference in New Issue
Block a user