Feat: start game btn; add todos.md

This commit is contained in:
Grail Finder
2025-05-09 09:28:30 +03:00
parent 659c8dbbec
commit e20118acea
5 changed files with 42 additions and 14 deletions

View File

@ -1,6 +1,13 @@
{{define "room"}}
<div id="hello-user">
<p>Hello {{.State.Username}};</p>
<p>Room created by {{.Room.CreatorName}};</p>
<p>Game is running: {{.Room.IsRunning}}</p>
<p>
{{if eq .State.Username .Room.CreatorName}}
<button hx-get="/start-game" hx-target="#room" class="bg-amber-100 text-black px-4 py-2 rounded">Start Game</button>
{{end}}
</p>
<p>Turn of the {{.Room.TeamTurn}} team</p>
<p>
{{if eq .State.Team ""}}