🐛 Maybe fixed #100
This commit is contained in:
@@ -80,47 +80,54 @@
|
|||||||
<div>
|
<div>
|
||||||
<h1 class="mx-auto text-center text-6xl mt-8">{$t('play_page.end_sentence')}</h1>
|
<h1 class="mx-auto text-center text-6xl mt-8">{$t('play_page.end_sentence')}</h1>
|
||||||
{#if data_available}
|
{#if data_available}
|
||||||
<div class="flex mx-auto w-fit flex-col pt-8 gap-2">
|
{#if winners_arr[0][0] === undefined}
|
||||||
<div>
|
<div class="flex justify-center">
|
||||||
<p class="text-3xl text-center">
|
<h1 class="text-3xl">{$t('admin_page.no_answers')}</h1>
|
||||||
{$t('play_page.1st_place')}: <span class="underline">{winners_arr[0][0]}</span>
|
|
||||||
<span
|
|
||||||
>{$t('play_page.with_out_of', {
|
|
||||||
correct_questions: winners_arr[0][1] ?? 0,
|
|
||||||
total_question_count: quiz_data.questions.length
|
|
||||||
})}</span
|
|
||||||
>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
{#if winners_arr.length >= 2}
|
{:else}
|
||||||
|
<div class="flex mx-auto w-fit flex-col pt-8 gap-2">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-2xl text-center">
|
<p class="text-3xl text-center">
|
||||||
{$t('play_page.2nd_place')}:
|
{$t('play_page.1st_place')}:
|
||||||
<span class="underline">{winners_arr[1][0]}</span>
|
<span class="underline">{winners_arr[0][0]}</span>
|
||||||
<span
|
<span
|
||||||
>{$t('play_page.with_out_of', {
|
>{$t('play_page.with_out_of', {
|
||||||
correct_questions: winners_arr[1][1] ?? 0,
|
correct_questions: winners_arr[0][1] ?? 0,
|
||||||
total_question_count: quiz_data.questions.length
|
total_question_count: quiz_data.questions.length
|
||||||
})}</span
|
})}</span
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{#if winners_arr.length >= 2 && winners_arr[1][0] !== undefined}
|
||||||
{#if winners_arr.length >= 3}
|
<div>
|
||||||
<div>
|
<p class="text-2xl text-center">
|
||||||
<p class="text-xl text-center">
|
{$t('play_page.2nd_place')}:
|
||||||
{$t('play_page.3rd place')}:
|
<span class="underline">{winners_arr[1][0]}</span>
|
||||||
<span class="underline">{winners_arr[2][0]}</span>
|
<span
|
||||||
<span>
|
>{$t('play_page.with_out_of', {
|
||||||
{$t('play_page.with_out_of', {
|
correct_questions: winners_arr[1][1] ?? 0,
|
||||||
correct_questions: winners_arr[2][1] ?? 0,
|
total_question_count: quiz_data.questions.length
|
||||||
total_question_count: quiz_data.questions.length
|
})}</span
|
||||||
})}
|
>
|
||||||
</span>
|
</p>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
{/if}
|
{#if winners_arr.length >= 3 && winners_arr[2][0] !== undefined}
|
||||||
</div>
|
<div>
|
||||||
|
<p class="text-xl text-center">
|
||||||
|
{$t('play_page.3rd place')}:
|
||||||
|
<span class="underline">{winners_arr[2][0]}</span>
|
||||||
|
<span>
|
||||||
|
{$t('play_page.with_out_of', {
|
||||||
|
correct_questions: winners_arr[2][1] ?? 0,
|
||||||
|
total_question_count: quiz_data.questions.length
|
||||||
|
})}
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
<h1 class="text-3xl">{$t('admin_page.no_answers')}</h1>
|
<h1 class="text-3xl">{$t('admin_page.no_answers')}</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user