✨ Closes #186
This commit is contained in:
@@ -104,11 +104,13 @@
|
|||||||
{@html question.question}
|
{@html question.question}
|
||||||
</h1>
|
</h1>
|
||||||
<div class="mx-auto my-2">
|
<div class="mx-auto my-2">
|
||||||
|
{#if game_mode !== 'kahoot'}
|
||||||
<CircularTimer
|
<CircularTimer
|
||||||
bind:text={timer_res}
|
bind:text={timer_res}
|
||||||
bind:progress={circular_prgoress}
|
bind:progress={circular_prgoress}
|
||||||
color="#ef4444"
|
color="#ef4444"
|
||||||
/>
|
/>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{#if question.image !== null && game_mode !== 'kahoot'}
|
{#if question.image !== null && game_mode !== 'kahoot'}
|
||||||
@@ -134,7 +136,18 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{:else if game_mode === 'kahoot'}
|
{:else if game_mode === 'kahoot'}
|
||||||
<div class="grid grid-cols-2 gap-2 w-full p-4 h-5/6">
|
<div class="h-5/6 w-full relative">
|
||||||
|
<div
|
||||||
|
class="absolute top-0 bottom-0 left-0 right-0 m-auto rounded-full h-fit w-fit border-2 border-black shadow-2xl"
|
||||||
|
>
|
||||||
|
<CircularTimer
|
||||||
|
bind:text={timer_res}
|
||||||
|
bind:progress={circular_prgoress}
|
||||||
|
color="#ef4444"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid grid-cols-2 gap-2 w-full p-4 h-full">
|
||||||
{#each question.answers as answer, i}
|
{#each question.answers as answer, i}
|
||||||
<button
|
<button
|
||||||
class="rounded-lg h-full flex align-middle justify-center disabled:opacity-60 p-3"
|
class="rounded-lg h-full flex align-middle justify-center disabled:opacity-60 p-3"
|
||||||
@@ -146,6 +159,7 @@
|
|||||||
</button>
|
</button>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<p>Error</p>
|
<p>Error</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user