Improved buttons in kahoot-mode

This commit is contained in:
Mawoka
2022-09-29 12:15:18 +02:00
parent 1edd06266d
commit 4f220bf810
5 changed files with 38 additions and 36 deletions
+2 -4
View File
@@ -135,9 +135,7 @@
>
{#if JSON.stringify(final_results) !== JSON.stringify([null])}
<div class="w-screen flex justify-center mt-8">
<button
on:click={request_answer_export}
class="px-4 py-2 leading-5 text-white transition-colors duration-200 transform bg-gray-700 rounded text-center hover:bg-gray-600 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
<button on:click={request_answer_export} class="admin-button"
>{$t('admin_page.export_results')}</button
>
</div>
@@ -189,7 +187,7 @@
{#if players.length > 0}
<div class="flex justify-center w-full mt-4">
<button
class="ml-4 px-4 py-2 leading-5 text-white transition-colors duration-200 transform bg-gray-700 rounded text-center hover:bg-gray-600 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
class="ml-4 admin-button"
id="startGame"
on:click={() => {
socket.emit('start_game', '');
@@ -85,7 +85,7 @@
<div class="flex justify-center mt-8 mb-4">
{#if logged_in}
<button
class="px-4 py-2 leading-5 text-white transition-colors duration-200 transform bg-gray-700 rounded text-center hover:bg-gray-600 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
class="admin-button"
on:click={() => {
start_game = quiz.id;
}}
@@ -104,10 +104,7 @@
{/if}
</div>
<div class="flex justify-center m-2">
<a
class="px-4 py-2 leading-5 text-white transition-colors duration-200 transform bg-gray-700 rounded text-center hover:bg-gray-600 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
href="/practice?quiz_id={quiz.id}"
>
<a class="admin-button" href="/practice?quiz_id={quiz.id}">
{$t('words.practice')}
</a>
</div>