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 @@
what is 1 + 1?
+{ question.description }
you Got it!
+ {#if wasCorrect } +you Got it!
+ {:else} +you Failed
+ {/if} {/if}+yadda yadda yadda what's unique about this mastery based learning appraoch +