diff --git a/src/frontend/options/Flashcard.svelte b/src/frontend/options/Flashcard.svelte new file mode 100644 index 0000000..85c89e5 --- /dev/null +++ b/src/frontend/options/Flashcard.svelte @@ -0,0 +1,62 @@ + + +
+ {#await cardPromise then card} + {#if card} +
+

{card.src}

+

{card.result}

+
+
+ + +
+ {/if} + {/await} +
+ + diff --git a/src/frontend/options/Options.svelte b/src/frontend/options/Options.svelte new file mode 100644 index 0000000..989745d --- /dev/null +++ b/src/frontend/options/Options.svelte @@ -0,0 +1,70 @@ + + +
+
+ + + +
+
+ + diff --git a/src/frontend/options/options.ts b/src/frontend/options/options.ts new file mode 100644 index 0000000..bb65944 --- /dev/null +++ b/src/frontend/options/options.ts @@ -0,0 +1,2 @@ +import App from "./Options.svelte"; +new App({ target: document.body });