package components import ( "fmt" "github.com/starfederation/datastar-go/datastar" ) templ BackToLobby() { ← Back } templ StealthTitle(class string) { } templ NicknamePrompt(returnPath string) {

Join Game

Enter your nickname to join the game.

} func isStale(lastPing int64) bool { return lastPing == 0 } // ConnectionIndicator shows a small dot indicating SSE connection status. // Server patches this with a timestamp; client JS detects staleness. templ ConnectionIndicator(lastPing int64) {
@connectionWatcher() } script connectionWatcher() { setInterval(function() { var el = document.getElementById('connection-indicator'); var dot = document.getElementById('connection-dot'); var ping = document.getElementById('connection-ping'); if (!el || !dot || !ping) return; var lastPing = parseInt(el.dataset.lastPing, 10) || 0; var stale = Date.now() - lastPing > 20000; dot.classList.toggle('status-success', !stale); dot.classList.toggle('status-error', stale); ping.classList.toggle('status-success', !stale); ping.classList.toggle('status-error', stale); ping.classList.toggle('animate-ping', !stale); }, 1000); } templ GameJoinPrompt(loginURL string, registerURL string, gamePath string) {

Join Game

Log in to track your game history, or continue as a guest.

Login Continue as Guest

Don't have an account? Register

}