feat: replace connection indicator with live clock
A ticking clock serves as an implicit connection indicator - if it stops updating, users know the connection is stale. Simpler and more useful than a status dot.
This commit is contained in:
@@ -44,6 +44,7 @@ templ GamePage(sg *snake.SnakeGame, mySlot int, messages []chat.Message, chatCfg
|
||||
|
||||
templ GameContent(sg *snake.SnakeGame, mySlot int, messages []chat.Message, chatCfg chatcomponents.Config, gameID string) {
|
||||
<div id="game-content">
|
||||
@components.LiveClock()
|
||||
@components.BackToLobby()
|
||||
<h1 class="text-3xl font-bold">~~~~</h1>
|
||||
@snakecomponents.PlayerList(sg, mySlot)
|
||||
|
||||
Reference in New Issue
Block a user