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