From e6e2ffd3d2ee585288b078c6d9732606b05a0b85 Mon Sep 17 00:00:00 2001 From: Thomas Cole Date: Wed, 15 Mar 2023 09:26:54 -0400 Subject: [PATCH] Working on game layout --- apps/quippy/src/lib/quippy/Countdown.svelte | 7 +++ apps/quippy/src/pages/Play.svelte | 49 +++++++++++++++++---- apps/server/src/GameState.ts | 0 3 files changed, 48 insertions(+), 8 deletions(-) create mode 100644 apps/quippy/src/lib/quippy/Countdown.svelte create mode 100644 apps/server/src/GameState.ts diff --git a/apps/quippy/src/lib/quippy/Countdown.svelte b/apps/quippy/src/lib/quippy/Countdown.svelte new file mode 100644 index 0000000..1a71122 --- /dev/null +++ b/apps/quippy/src/lib/quippy/Countdown.svelte @@ -0,0 +1,7 @@ + + +
+
+
diff --git a/apps/quippy/src/pages/Play.svelte b/apps/quippy/src/pages/Play.svelte index 1c37c32..e1ab667 100644 --- a/apps/quippy/src/pages/Play.svelte +++ b/apps/quippy/src/pages/Play.svelte @@ -6,6 +6,7 @@ import { pb, currentUser } from "../lib/pocketbase"; import { createAvatar } from "@dicebear/core"; import { initials } from "@dicebear/collection"; + import Countdown from "../lib/quippy/Countdown.svelte"; import { io } from "socket.io-client"; const socket = io("ws://localhost:3000"); @@ -23,8 +24,8 @@ console.log("Looking for game with id: " + params.id); }); - function makeAvatar(name){ - return createAvatar(initials,{seed: name}).toDataUriSync(); + function makeAvatar(name) { + return createAvatar(initials, { seed: name }).toDataUriSync(); } @@ -40,19 +41,51 @@
Players
-
-
+
+
{#if $currentUser.avatar} avatar {:else} avatar {/if} - {#each ["foobar", "fizzbuzz", "John Doe"] as player} - - - + {#each ["Austin Powers", "Clark Kent", "John Doe"] as player} + + + {/each}
+ +
+

Something you would not say at a wedding

+
+ +
+ +
+
+ +
+
+ avatar + {#if false} +
Text
+ {:else} + + {/if} +
+ +
+ + diff --git a/apps/server/src/GameState.ts b/apps/server/src/GameState.ts new file mode 100644 index 0000000..e69de29