From cfa6dff9b989285591d5b10ffa6fbe29e7d17b41 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 15 Dec 2021 02:42:15 -0600 Subject: [PATCH] Add a Player component for player data in the lobby --- web-svelte/src/components/Player.svelte | 89 +++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 web-svelte/src/components/Player.svelte diff --git a/web-svelte/src/components/Player.svelte b/web-svelte/src/components/Player.svelte new file mode 100644 index 0000000..a67624b --- /dev/null +++ b/web-svelte/src/components/Player.svelte @@ -0,0 +1,89 @@ + + +
+ + + {#if $myName == name} + +
+ Remove person from the game +
+
+ + + {:else} +
+ {/if} + + +
+ {name} + {#if $myName == name} + (You) + {/if} +
+ + + {#if canLeave()} + +
+ Remove person from the game +
+
+ {/if} +
+ + \ No newline at end of file