diff --git a/static/index.html b/static/index.html index bccde16..c3e7647 100644 --- a/static/index.html +++ b/static/index.html @@ -11,6 +11,18 @@ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:wght@100..900&display=swap&" rel="stylesheet" /> + + + + + + diff --git a/static/ui.js b/static/ui.js index a0ce2a0..dd784f5 100644 --- a/static/ui.js +++ b/static/ui.js @@ -38,54 +38,9 @@ const store = $store( { ident: "settings", backing: "localstorage", autosave: "auto" } ); connection.setTransport("/epoxy/index.mjs", [{ wisp: store.wispurl }]); -function App() { - this.urlencoded = ""; - this.css = ` - width: 100%; - height: 100%; - color: #e0def4; - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - input, - button { - font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, - sans-serif; - } - h1 { - font-family: "Inter Tight", "Inter", system-ui, -apple-system, BlinkMacSystemFont, - sans-serif; - margin-bottom: 0; - } - iframe { - border: 2px solid #313131; - background-color: #fff; - border-radius: 0.5rem; - margin: 1em; - margin-top: 0.5em; - width: calc(100% - 2em); - height: calc(100% - 8em); - } - input.bar { - border: none; - outline: none; - color: #fff; - height: 2em; - text-align: center; - border-radius: 0.75em; - background-color: #313131; - padding: 0.30em; - } - .input_row > label { - font-size: 0.7rem; - color: gray; - } - p { - margin: 0; - margin-top: 0.2em; - } +function Config() { + this.css = ` .cfg * { margin: 2px; } @@ -108,14 +63,111 @@ function App() { flex-grow: 1 } + `; + return html` + + +
+
+ + + + +
+
+
+ + +
+
+ + +
+
+ `; +} + +function App() { + this.urlencoded = ""; + this.css = ` + width: 100%; + height: 100%; + color: #e0def4; + display: flex; + flex-direction: column; + padding: 0.5em; + padding-top: 0; + box-sizing: border-box; + + a { + color: #e0def4; + } + + input, + button { + font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, + sans-serif; + } + .version { + } + h1 { + font-family: "Inter Tight", "Inter", system-ui, -apple-system, BlinkMacSystemFont, + sans-serif; + margin-bottom: 0; + } + iframe { + background-color: #fff; + border: none; + border-radius: 0.3em; + flex: 1; + width: 100%; + } + + input.bar { + font-family: "Inter"; + padding: 0.1em; + padding-left: 0.3em; + border: none; + outline: none; + color: #fff; + height: 1.5em; + border-radius: 0.3em; + flex: 1; + + background-color: #121212; + border: 1px solid #313131; + } + .input_row > label { + font-size: 0.7rem; + color: gray; + } + p { + margin: 0; + margin-top: 0.2em; + } + + .nav { + padding-top: 0.3em; + padding-bottom: 0.3em; + gap: 0.3em; + } + spacer { + margin-left: 10em; + } + .nav button { - margin-right: 0.25em; - margin-left: 0.25em; color: #fff; outline: none; border: none; - border-radius: 0.75em; - background-color: #313131; + border-radius: 0.30em; + background-color: #121212; + border: 1px solid #313131; } `; this.url = store.url; @@ -146,44 +198,26 @@ function App() { return frame.go(this.url); }; + const cfg = h(Config); + document.body.appendChild(cfg); + return html`
-

scramjet

-

surf the unblocked and mostly buggy web

+
-
- -
-
- - - - -
-
-
- - -
-
- - -
-
-
+ - { + + + { this.url = e.target.value; }} on:keyup=${(e) => e.keyCode == 13 && (store.url = this.url) && handleSubmit()}> - + + + +

+ scramjet ${$scramjet.version.version} ${$scramjet.version.build} +

${frame.frame}