diff --git a/web/src/lib/Question.ts b/web/src/lib/Question.ts new file mode 100644 index 0000000..a696cf7 --- /dev/null +++ b/web/src/lib/Question.ts @@ -0,0 +1,10 @@ +export default class Question { + public description: string; + public choices: Choice[]; + public concepts: string[]; +}; + +export class Choice { + public text: string; + public correct: boolean; +}; diff --git a/web/src/lib/QuizBox.svelte b/web/src/lib/QuizBox.svelte index 1f75ebb..10d8c98 100644 --- a/web/src/lib/QuizBox.svelte +++ b/web/src/lib/QuizBox.svelte @@ -1,16 +1,45 @@
{#if state == "ask" } Q: -

what is 1 + 1?

+

{ question.description }

{:else} A: -

you Got it!

+ {#if wasCorrect } +

you Got it!

+ {:else} +

you Failed

+ {/if} {/if}
diff --git a/web/src/routes/__layout.svelte b/web/src/routes/__layout.svelte index 953065c..d4f8c7f 100644 --- a/web/src/routes/__layout.svelte +++ b/web/src/routes/__layout.svelte @@ -1,15 +1,40 @@ -
+
+ +
diff --git a/web/src/routes/index.svelte b/web/src/routes/index.svelte index 7b1f552..2fbada6 100644 --- a/web/src/routes/index.svelte +++ b/web/src/routes/index.svelte @@ -5,3 +5,7 @@

Learn by mastery

+ +

+yadda yadda yadda what's unique about this mastery based learning appraoch +