diff --git a/html/write.tsx b/html/write.tsx new file mode 100644 index 0000000..9930bd3 --- /dev/null +++ b/html/write.tsx @@ -0,0 +1,42 @@ +import { toChildArray, ComponentChildren } from "preact"; +import { Main, render_and_copy } from "./common.tsx"; + +// idea is to have buttons you can click to type out words, should be fun +// (and maybe possible) +// new idea: type out eggbug or you LOSE +const Key = ({ letter }: { letter: string }) => ( +
+ {letter} +
+ {letter} +
+
+); + +const sentence = "cwm fjord bank glyphs vext quiz"; + +const KeyRow = ({ keys }: { keys: string }) => ( +
+ {...keys.split("").map(letter => )} +
+); + +const Keyboard = ({ children }: { children: ComponentChildren }) => ( +
{...toChildArray(children)}
+); + +const Out = () =>
; + +render_and_copy( +
+ + + + + + +
+);