diff options
author | Starfall <us@starfall.systems> | 2022-10-08 12:25:18 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2022-10-08 12:25:18 -0500 |
commit | fa6faea742a0f6004fde0833b676395a38a1a107 (patch) | |
tree | b02ce99fb5e1db62f9514a4975b264df2b5a8e3d | |
parent | 4df5a7e448c7c2eccfa949ada21c842c6cd3b68b (diff) |
add MVP theme picker to index page
-rwxr-xr-x | html/index.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/html/index.html b/html/index.html index 039056c..bc738be 100755 --- a/html/index.html +++ b/html/index.html @@ -62,3 +62,31 @@ </section> <div style=text-align:center>⋁/⋀</div> </footer> + +<!-- temporary color picker + TODO: generate the color pickers automatically + TODO: effect on hover + TODO: try radio buttons + TODO: try buttons + TODO: screen reader accessibility +--> +<style> +.color-picker-container { + position: fixed; + left: 0; + top: 30%; +} + +.color-picker { + width: 1rem; + height: 1rem; + border: 1px solid; + margin: 2px; + color: var(--fg); + background: var(--bg); +} +</style> +<div class=color-picker-container> + <div class="green color-picker" onclick=set_theme('green')></div> + <div class="purple color-picker" onclick=set_theme('purple')></div> +</div> |