add good looking lobby ui with websocket support with claude sonnet 3.7

This commit is contained in:
Pablu23
2025-10-07 14:55:30 +02:00
parent 81ad47960a
commit eb6e85a099
19 changed files with 1477 additions and 86 deletions

View File

@@ -1,15 +1,18 @@
<script lang="ts">
import type { PageProps } from './$types';
import { onDestroy } from 'svelte';
let { data }: PageProps = $props();
onDestroy(() => console.log('left site'));
</script>
<h1>You are in lobby with ID: {data.lobby?.id}</h1>
<h2>Youre username is: {data.username}</h2>
<h2>Your username is: {data.username}</h2>
<h2>Players in Lobby: </h2>
<h2>Players in Lobby:</h2>
<ul>
{#each data.lobby.usersInLobby as player (player.userEmail)}
<li>{player.user.username}</li>
{/each}
</ul>
{#each data.lobby.usersInLobby as player (player.userEmail)}
<li>{player.user.username}</li>
{/each}
</ul>