improved lobby button

This commit is contained in:
evanpelle
2024-08-25 09:57:19 -07:00
parent 453935176e
commit 1d7c4c996f
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class Client {
lobbyButton.classList.toggle('highlighted', this.isLobbyHighlighted);
}
if (nameElement) nameElement.textContent = `Lobby ${lobby.id}`;
if (nameElement) nameElement.textContent = `Game ${lobby.id}`;
if (timerElement) {
const timeRemaining = Math.max(0, Math.floor((lobby.startTime - Date.now()) / 1000));
timerElement.textContent = `Starts in: ${timeRemaining}s`;
+6 -3
View File
@@ -91,17 +91,20 @@ h1 {
}
.lobby-name {
font-size: 36px;
font-size: 52px;
margin-bottom: 20px;
color: #000000;
}
.lobby-timer {
font-size: 28px;
font-size: 36px;
margin-bottom: 20px;
color: #000000;
}
.player-count {
font-size: 24px;
font-size: 36px;
color: #000000;
}