0a15ea7366
Create UI.elm to house components like `button`, which is a simple HTML button with `focus:outline-none` applied as a `class`, which is an accessibility feature that I don't need for this touch-screen application. I like this pattern more than my more opinionated patterns for UI modules in Elm where I'd define all of the arguments as a record type (i.e. kwargs). |
||
---|---|---|
.. | ||
src | ||
.envrc | ||
.gitignore | ||
elm.json | ||
index.css | ||
index.html | ||
README.md | ||
shell.nix |
Elm
Elm has one of the best developer experiences that I'm aware of. The error messages are helpful and the entire experience is optimized to improve the ease of writing web applications.
Developing
If you're interested in contributing, the following will create an environment in which you can develop:
$ nix-shell
$ npx tailwindcss build index.css -o output.css
$ elm-live -- src/Main.elm --output=Main.min.js
You can now view your web client at http://localhost:8000
!