diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..0c43e16 Binary files /dev/null and b/logo.png differ diff --git a/src/app.js b/src/app.js index 291e3dd..54c6113 100644 --- a/src/app.js +++ b/src/app.js @@ -15,11 +15,18 @@ TW.Init(ShadowCSS, ShadowDiv); React.render(html` <${Store.Provider}> - <${UI.Select}/> -
- <${UI.Controls}/> -
+
+
+ +
+
+ <${UI.Select}/> +
+
+ <${UI.Controls}/> +
+
<${UI.Chart}> <${UI.Audiogram}/> diff --git a/src/store.js b/src/store.js index 9abf000..b1fdcf9 100644 --- a/src/store.js +++ b/src/store.js @@ -146,6 +146,14 @@ export function Reducer(inState, inAction) clone.Live = Reselect(clone); } } + else if (Name == "ShowCursor") + { + clone.Show.Cursor = Data; + } + else if (Name == "ShowAnswer") + { + clone.Show.Answer = Data; + } return clone; } @@ -169,6 +177,11 @@ export const Initial = Reducer( TestL:{Points:[], Paths:[]}, TestR:{Points:[], Paths:[]} }, + Show: + { + Cursor:true, + Answer:false + }, TestIndex: 0, Test: [ { diff --git a/src/twind.js b/src/twind.js index 739e41c..6cbbdf2 100644 --- a/src/twind.js +++ b/src/twind.js @@ -52,7 +52,10 @@ export const Configure = { "bg-metal", { "background": "linear-gradient(159deg, rgb(228, 228, 228) 0%, rgb(243, 243, 243) 25%, rgb(236, 236, 236) 100%)" - } + }, + ], + [ + "bg-earmark", "bg-gradient-to-b from-[#107c79] to-[#115e67]" ], [ 'shadow-glow-(.*)', @@ -70,7 +73,7 @@ export const Configure = { [ 'text-shadow-lcd', {"text-shadow": "0px 2px 2px #00000055"} ], - [ 'box-notch', "border-t(1 [#ffffff]) border-b(1 [#00000033]) flex items-center justify-end gap-1 p-2" ], + [ 'box-notch', "border-t(1 [#ffffff]) border-r(1 [#ffffff]) border-b(1 [#00000033]) border-l(1 [#00000033]) flex items-center justify-end gap-1 p-2" ], [ "box-buttons", "flex gap-1 items-center p-2 rounded-lg bg-gradient-to-b from-[#00000022] border-b(1 [#ffffff]) border-t(1 [#00000033])"] ], presets: [TWPreTail(), TWPreAuto()] diff --git a/src/ui.js b/src/ui.js index de6436e..57ff275 100644 --- a/src/ui.js +++ b/src/ui.js @@ -19,7 +19,7 @@ export function Button({children, icon, light, disabled, inactive, onClick, clas return html`