💄 Added more styling to new text-questions

This commit is contained in:
Mawoka
2022-12-29 17:16:03 +01:00
parent 7614420d0c
commit 9cc8db7fc2
2 changed files with 13 additions and 2 deletions
+3 -1
View File
@@ -261,7 +261,9 @@
{/each} {/each}
</div> </div>
{:else} {:else}
<p>Enter your answer into the input field!</p> <div class="flex justify-center">
<p class="text-2xl">Enter your answer into the input field!</p>
</div>
{/if} {/if}
{/if} {/if}
{/if} {/if}
+10 -1
View File
@@ -190,7 +190,16 @@
</div> </div>
{/await} {/await}
{:else if question.type === QuizQuestionType.TEXT} {:else if question.type === QuizQuestionType.TEXT}
<input bind:value={text_input} /> <div class="flex justify-center">
<p class="text-black dark:text-white">Enter your answer</p>
</div>
<div class="flex justify-center m-2">
<input
type="text"
bind:value={text_input}
class="bg-gray-50 focus:ring text-gray-900 rounded-lg focus:ring-blue-500 block w-full p-2 dark:bg-gray-700 dark:text-white dark:focus:ring-blue-500 outline-none transition text-center"
/>
</div>
<div class="flex justify-center"> <div class="flex justify-center">
<button <button