Added cover-image (Closes #103)

This commit is contained in:
Mawoka
2022-09-08 17:47:29 +02:00
parent 603e2834d6
commit 2ab9d14d3e
15 changed files with 186 additions and 29 deletions
@@ -55,6 +55,17 @@
<div class="text-center">
<p>{quiz.description}</p>
</div>
{#if quiz.cover_image}
<div class="flex justify-center align-middle items-center">
<div class="h-[15vh] m-auto w-auto my-3">
<img
class="max-h-full max-w-full block"
src={quiz.cover_image}
alt="Not provided"
/>
</div>
</div>
{/if}
<div class="text-center text-sm pt-1">
<ImportedOrNot imported={quiz.imported_from_kahoot} />
</div>
@@ -98,7 +109,6 @@
<!-- </label>-->
{#if question.image}
<span>
{$t('words.image')}:
<img class="pl-8" src={question.image} alt="Not provided" />
</span>
{/if}