diff --git a/.gitignore b/.gitignore index da93220..877bebe 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /public/build/ .DS_Store + +.now \ No newline at end of file diff --git a/TODO.md b/TODO.md index 0bd88a5..2069bcd 100644 --- a/TODO.md +++ b/TODO.md @@ -1,13 +1,17 @@ -- deploy - - now.sh, waiting for it to be purely front end - - purely front end except for mailing list -- remove repeated exercises - make text inputs big enough for MAX_DIGITS_PROBLEMS and MAX_DIGITS_BITS - show a message on submit - show warning when specifying invalid number of bits or problems -- prevent submissions more than x times per time -- show a live-updating preview as you select different settings -- make it look nice - add contact info - add 'about' - add mailing list + - prompt at the end of a quiz to sign up for it +- uncomment PDF part +- add PDF export in pure front end +- does it work on mobile? +- add animations + - 'nuh-uh' shake for wrong answers + - nice reward animations for right answers + - make the placeholders become real text for a split second before starting + - super mario land pixellation animation +- deploy to production + - use a custom domain diff --git a/package.json b/package.json index 4aa8f15..60956e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "binary-quiz-frontend", - "version": "0.0.1", + "version": "0.0.3", "author": "Zev Averbach (https://averba.ch)", "license": "MIT", "scripts": { diff --git a/public/global.css b/public/global.css index 587b220..cc954e4 100644 --- a/public/global.css +++ b/public/global.css @@ -68,6 +68,9 @@ button:focus { text-align: right; width: 2em; border: none; outline: none; } +input:focus { + outline: none; +} .primary-button { cursor: pointer; diff --git a/src/components/Inputs.svelte b/src/components/Inputs.svelte index f83f1b6..ddfbc2e 100644 --- a/src/components/Inputs.svelte +++ b/src/components/Inputs.svelte @@ -14,6 +14,9 @@ } const submit = () => { + if (!$num_problems){ + num_problems.update(() => DEFAULT_NUM_PROBLEMS) + } const problems_ = generateProblems($bits, $num_problems) problems.update(() => problems_) activeQuiz.update(() => true) @@ -33,7 +36,7 @@ type=number bind:value={$bits} > - Bits + bits - - + + + + diff --git a/src/components/Problem.svelte b/src/components/Problem.svelte index 32160cc..c7d3d19 100644 --- a/src/components/Problem.svelte +++ b/src/components/Problem.svelte @@ -36,7 +36,7 @@
@@ -45,8 +45,10 @@