Many improvements for players

This commit is contained in:
Mawoka
2023-02-15 19:31:25 +01:00
parent 4360fa2d02
commit 65e08a27ac
6 changed files with 64 additions and 46 deletions
@@ -7,6 +7,7 @@
import { onMount } from 'svelte';
export let data;
export let username;
export let show_final_results: boolean;
import { fly } from 'svelte/transition';
import confetti from 'canvas-confetti';
@@ -58,4 +59,11 @@
{/if}
{/each}
</div>
{#if data[username]}
<div class="fixed bottom-0 left-0 flex justify-center w-full mb-6">
<div class="mx-auto p-2 border-[#B07156] border-4 rounded">
<p>Your score: <b>{data[username]}</b></p>
</div>
</div>
{/if}
{/if}