diff --git a/src/routes/game/+page.svelte b/src/routes/game/+page.svelte new file mode 100644 index 0000000..deba82a --- /dev/null +++ b/src/routes/game/+page.svelte @@ -0,0 +1,290 @@ + + +
+
+ +
+

Music Guessing Game

+ +
+
+ +
+
+ {previousPlayer?.name.substring(0, 2).toUpperCase() || '??'} +
+ Previous +
+ + +
+
+ {currentPlayer?.name.substring(0, 2).toUpperCase() || '??'} +
+ {currentPlayer?.name || 'Current'} +
+ + +
+
+ {nextPlayer?.name.substring(0, 2).toUpperCase() || '??'} +
+ Next +
+
+ + {#if isCurrentPlayer} +
+ Your turn! +
+ {:else} +
+ Waiting for {currentPlayer?.name || 'current player'} to make a move... +
+ {/if} +
+
+ + +
+
+ + +
+ +
+
+
+ + +
+ +
+
+ + {#each cards as card (card.id)} +
+
{card.artist}
+
{card.year}
+
{card.songTitle}
+
+ {/each} +
+
+ + +
+ {#if middleCard.isFlipped} + +
+ Music card +
+ {:else} + +
+
{middleCard.artist}
+
{middleCard.year}
+
{middleCard.songTitle}
+
+ {/if} +
+ + +
+ {#each Array(cards.length + 1) as _, i} + + {/each} +
+
+ +
+ {#if isCurrentPlayer} + Drag the mystery card and place it where you think it belongs in the timeline! + {:else} + Watch as {currentPlayer?.name || 'the current player'} makes their guess! + {/if} +
+
+