This commit is contained in:
2025-09-06 12:25:18 +02:00
parent 985f6d9bf9
commit 6f55dedbaa
8 changed files with 212 additions and 25 deletions

View File

@@ -4,16 +4,19 @@
interface Props {
question: SimpleQuestion;
showAnswer: boolean;
showQuestion: boolean;
[key: string]: unknown;
}
let { question, showAnswer }: Props = $props();
let { question, showAnswer, showQuestion }: Props = $props();
</script>
<div class="mb-4 flex grow flex-col items-center text-6xl">
<div class="flex grow-1 items-center">
<div>{question.data.question}</div>
</div>
{#if showQuestion || showAnswer}
<div class="flex grow-1 items-center">
<div>{question.data.question}</div>
</div>
{/if}
{#if showAnswer}
<div class="flex grow-1 items-center">
{question.data.answer}