changed some table stuff and made the brackets render on seperate rows, players ordered by placement then team name
This commit is contained in:
@@ -56,19 +56,21 @@
|
|||||||
<td>{d.name}</td>
|
<td>{d.name}</td>
|
||||||
<td>{d.division}</td>
|
<td>{d.division}</td>
|
||||||
<td>
|
<td>
|
||||||
|
<div class="">
|
||||||
|
{#each d.registeredPlayers as bracket}
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
{#each d.registeredPlayers as player}
|
{#each bracket.items as player}
|
||||||
<div
|
<div
|
||||||
style="--theme-color: {player.teamColor};"
|
style="--theme-color: {player.teamColor};"
|
||||||
class="player-box w-min-0 m-1 flex aspect-square h-[100px] flex-col rounded-md border-2"
|
class="player-box w-min-0 m-1 flex-1 flex-col rounded-md border-2"
|
||||||
>
|
>
|
||||||
<div>{player.firstName} {player.lastName}</div>
|
<div>{player.firstName} {player.lastName}</div>
|
||||||
<div></div>
|
<div></div>
|
||||||
<div>pic</div>
|
|
||||||
{#if player.placement != 0}
|
{#if player.placement != 0}
|
||||||
<div>{player.placement}</div>
|
<div>{player.placement}</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div>{player.teamName}</div>
|
</div>
|
||||||
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
@@ -76,6 +78,7 @@
|
|||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
<svelte:window onbeforeunload={() => scoreEndpoint?.close()} />
|
<svelte:window onbeforeunload={() => scoreEndpoint?.close()} />
|
||||||
|
<Table data={eventTable} {header} {row} />
|
||||||
|
|
||||||
<div class="p-[2vw]">
|
<div class="p-[2vw]">
|
||||||
{#each leaderboard as team (team.name)}
|
{#each leaderboard as team (team.name)}
|
||||||
@@ -100,8 +103,6 @@
|
|||||||
Send update
|
Send update
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<Table data={eventTable} {header} {row} />
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import url('https://cdn.jsdelivr.net/npm/@catppuccin/palette/css/catppuccin.css');
|
@import url('https://cdn.jsdelivr.net/npm/@catppuccin/palette/css/catppuccin.css');
|
||||||
.score-box {
|
.score-box {
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
<table class="w-full table-auto">
|
<table class="w-full table-auto">
|
||||||
{#if header}
|
{#if header}
|
||||||
<thead>
|
<thead>
|
||||||
<tr>{@render header()}</tr>
|
<tr class="justify-content-center">{@render header()}</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{#each data as d}
|
{#each data as d}
|
||||||
<tr>{@render row(d)}</tr>
|
<tr class="text-center">{@render row(d)}</tr>
|
||||||
{/each}
|
{/each}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user