implement ready up for players in a game lobby

This commit is contained in:
2025-05-31 16:51:58 -07:00
parent 6d6d6801db
commit 62f0636d2d
14 changed files with 226 additions and 47 deletions

View File

@ -23,9 +23,7 @@
<div class="game-listing">
<div>{prettyDate(new Date(game.createdAt))}</div>
<div>
{#each games as game}
<PlayerList players={game.data.players} />
{/each}
<PlayerList players={game.data.players} />
</div>
<form method="GET" action={`/games/${game.id}`}>
<input type="submit" value="JOIN" />
@ -40,20 +38,20 @@
.game-listing {
display: flex;
gap: 3rem;
gap: 1rem;
padding: 0.5rem;
}
.game-listing > div {
flex: 1 1 auto;
.game-listing > * {
flex: auto;
}
form {
display: flex;
flex: 1 1 auto;
.game-listing > div:first-child {
max-width: 12rem;
}
form input {
width: 100%;
height: 100%;
}
</style>