diff --git a/jsconfig.json b/jsconfig.json index d73b913..a86a4fd 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -10,4 +10,5 @@ // // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes // from the referenced tsconfig.json - TypeScript does not merge them in + } diff --git a/src/lib/supabase.js b/src/lib/supabase.js index d12f435..0a5ac16 100644 --- a/src/lib/supabase.js +++ b/src/lib/supabase.js @@ -3,4 +3,4 @@ import { createClient } from '@supabase/supabase-js'; export const supabase = createClient( import.meta.env.VITE_SUPABASE_URL, import.meta.env.VITE_SUPABASE_ANON_KEY -); +); \ No newline at end of file diff --git a/src/routes/create/+page.svelte b/src/routes/create/+page.svelte index 2da2a88..ab613bd 100644 --- a/src/routes/create/+page.svelte +++ b/src/routes/create/+page.svelte @@ -1,13 +1,14 @@ + +
+
+

HOSTING

+
+

Question {currentQuestion + 1} of {totalQuetions} is beeing awnsered

+
+
+
+
+
+

{PeopleAwnseredQ} out of {Totalplayers} have awnsered the quetion

+
+
+
+
+
+
diff --git a/src/routes/join/+page.svelte b/src/routes/join/+page.svelte index b3c3b62..5a10102 100644 --- a/src/routes/join/+page.svelte +++ b/src/routes/join/+page.svelte @@ -32,7 +32,7 @@ return; } - goto('/play/' + pin, { + goto('/play-lobby/' + pin, { state: { name } diff --git a/src/routes/play-lobby/[gamePin]/+page.js b/src/routes/play-lobby/[gamePin]/+page.js new file mode 100644 index 0000000..1bfee35 --- /dev/null +++ b/src/routes/play-lobby/[gamePin]/+page.js @@ -0,0 +1,6 @@ +// Example of what your +page.js or +page.server.js might need +export function load({ params }) { + return { + gamePin: params.gamePin + }; +} diff --git a/src/routes/play-lobby/[gamePin]/+page.svelte b/src/routes/play-lobby/[gamePin]/+page.svelte new file mode 100644 index 0000000..5405f1d --- /dev/null +++ b/src/routes/play-lobby/[gamePin]/+page.svelte @@ -0,0 +1,112 @@ + + +
+
+

PLAYING

+

Game Pin:

+

+ {gamePin} +

+

Players Joined:

+

(Total Players: {players.length})

+
+ {#each players as player} + {player.name} + {/each} +
+
+
diff --git a/src/routes/play/[gamePin]/+page.js b/src/routes/play/[gamePin]/+page.js index 1bfee35..aea5dc3 100644 --- a/src/routes/play/[gamePin]/+page.js +++ b/src/routes/play/[gamePin]/+page.js @@ -1,4 +1,3 @@ -// Example of what your +page.js or +page.server.js might need export function load({ params }) { return { gamePin: params.gamePin diff --git a/src/routes/play/[gamePin]/+page.svelte b/src/routes/play/[gamePin]/+page.svelte index 3b50975..3283028 100644 --- a/src/routes/play/[gamePin]/+page.svelte +++ b/src/routes/play/[gamePin]/+page.svelte @@ -1,36 +1,19 @@
-

PLAYING

-

Game Pin:

-

- {gamePin} -

-

Players Joined:

-

(Total Players: {players.length})

-
- {#each players as player} - {player.name} - {/each} +
+

Question {currentQuestion + 1} of {question.length}

+
+
+
+ {#if isWait != true} +

+ Q{currentQuestion + 1}. {question[currentQuestion].name} +

+
+ {#each question[currentQuestion].answers as answer, index} +
+ + +
+ {/each} +
+ {#if Selected != null} + + {:else} + + {/if} + {:else}

+ Please wait for everyone else to answer the question. +

{/if}