Feat: card counter

This commit is contained in:
Grail Finder
2025-05-10 14:35:24 +03:00
parent 35e215e26f
commit 321b79b258
6 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{{define "cardcounter"}}
<div class="flex justify-center">
<p>Blue cards left: {{.BlueCounter}}</p>
<p>Red cards left: {{.RedCounter}}</p>
</div>
{{end}}

View File

@ -19,6 +19,9 @@
</p>
</div>
<hr />
{{if .Room.IsRunning}}
{{template "cardcounter" .Room}}
{{end}}
<div class="flex justify-center">
<!-- Left Panel -->
{{template "teamlist" .Room.BlueTeam}}