Skip to content

Commit 6ef9edb

Browse files
feat: Don't show what the current team is, unless they buzzed in
1 parent b96a164 commit 6ef9edb

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

resources/views/livewire/clue-display.blade.php

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,23 @@ class="absolute inset-0 rounded-full border-2 border-green-400 animate-ping"></d
116116

117117
<!-- Team Display -->
118118
@if($buzzerTeam)
119-
<div class="text-center mt-8"
120-
x-show="showContent"
121-
x-transition:enter="transition ease-out duration-500"
122-
x-transition:enter-start="opacity-0 translate-y-4"
123-
x-transition:enter-end="opacity-100 translate-y-0">
124-
<div
125-
class="inline-flex items-center gap-3 px-6 py-3 rounded-full backdrop-blur-lg bg-white/10 border-2"
126-
style="border-color: {{ $buzzerTeam->color_hex }}">
127-
<div class="w-4 h-4 rounded-full animate-pulse"
128-
style="background-color: {{ $buzzerTeam->color_hex }}"></div>
129-
<span class="text-2xl font-bold" style="color: {{ $buzzerTeam->color_hex }}">
130-
@if($clue && $clue->category && $clue->category->game && $clue->category->game->current_team_id == $buzzerTeam->id)
131-
{{ $buzzerTeam->name }}'s turn to answer
132-
@else
119+
@unless($clue && $clue->category && $clue->category->game && $clue->category->game->current_team_id == $buzzerTeam->id)
120+
<div class="text-center mt-8"
121+
x-show="showContent"
122+
x-transition:enter="transition ease-out duration-500"
123+
x-transition:enter-start="opacity-0 translate-y-4"
124+
x-transition:enter-end="opacity-100 translate-y-0">
125+
<div
126+
class="inline-flex items-center gap-3 px-6 py-3 rounded-full backdrop-blur-lg bg-white/10 border-2"
127+
style="border-color: {{ $buzzerTeam->color_hex }}">
128+
<div class="w-4 h-4 rounded-full animate-pulse"
129+
style="background-color: {{ $buzzerTeam->color_hex }}"></div>
130+
<span class="text-2xl font-bold" style="color: {{ $buzzerTeam->color_hex }}">
133131
{{ $buzzerTeam->name }} buzzed in!
134-
@endif
135132
</span>
133+
</div>
136134
</div>
137-
</div>
135+
@endif
138136
@endif
139137
</div>
140138
</div>

0 commit comments

Comments
 (0)