From 811d03877302f915e192c7d746b9f221d026ecd8 Mon Sep 17 00:00:00 2001 From: polarDefender Date: Tue, 4 Jun 2024 12:37:23 -0700 Subject: [PATCH] updated status page --- static/css/liquidity.css | 1 + static/css/status.css | 27 ++++++++++++++++++++++----- static/js/status.js | 36 ++++++++++++++++++++++++++++++++++++ static/stauts.html | 36 +++++++++++++++++++++++++----------- 4 files changed, 84 insertions(+), 16 deletions(-) diff --git a/static/css/liquidity.css b/static/css/liquidity.css index d9d2760e..e5387b14 100644 --- a/static/css/liquidity.css +++ b/static/css/liquidity.css @@ -1,4 +1,5 @@ .question-box { + cursor: pointer; display: inline-block; position: relative; top: -8px; diff --git a/static/css/status.css b/static/css/status.css index 11693750..559e219a 100644 --- a/static/css/status.css +++ b/static/css/status.css @@ -1,7 +1,7 @@ .status-element { display: flex; justify-content: space-between; - align-items: center; + align-items: flex-start; gap: 100px; margin-top: 10px; font-size: 15px; @@ -21,14 +21,15 @@ font-size: 12px; display: flex; justify-content: end; - align-items: center; + align-items: flex-start; color: #999999; max-width: 50%; } -.editable-content>input { - border: none; - box-shadow: none; +.show-nodey>input { + /* border: none; */ + /* box-shadow: none; */ + padding: 5px; text-align: right; } @@ -121,4 +122,20 @@ .continue-button:hover { background-color: #373a3d; transition: background-color 0.3s; +} + +.small-btn { + margin-block-start: 1px; + width: 50px; + height: 25px; + color: white; + text-align: center; + background-color: transparent; + font-size: 12px; + text-align: center; + box-shadow: 0px 0px 2px rgba(0, 0, 0, 1); + background: linear-gradient(var(--background-color), var(--background-color)) padding-box, + var(--gradient) border-box; + border-radius: 2rem; + border: 1px solid transparent; } \ No newline at end of file diff --git a/static/js/status.js b/static/js/status.js index df691636..24143e78 100644 --- a/static/js/status.js +++ b/static/js/status.js @@ -9,5 +9,41 @@ $(() => { $("#show-nostr").click(() => { $("#reset-content").text("Changing the Nostr relay may cause some clients to lose connection. We'll make one last update to the old relay to tell clients about the new relay."); $("#reset-box").show(); + $('.continue-button').attr('id', 'set-show-nostr'); }); + $("#show-nodey").click(() => { + $('.show-nodey').show() + $('#show-nodey-text').hide() + $('input[name="show-nodey"]').focus(); + }); + $("#save-show-nodey").click(() => { + var targetInputVal = $('input[name="show-nodey"]').val() + $('#show-nodey-text').text(targetInputVal) + $('.show-nodey').hide() + $('#show-nodey-text').show() + }) + $("#cancel-show-nodey").click(() => { + $('.show-nodey').hide() + $('#show-nodey-text').show() + }) + $(".continue-button").click((e) => { + if($(".continue-button").prop('id') !== "set-show-nostr") { + return + } + $('.continue-button').attr('id', ''); + $("#reset-box").hide(); + $('.show-nostr').show() + $('#show-nostr-text').hide() + $('input[name="show-nostr"]').focus(); + }); + $("#save-show-nostr").click(() => { + var targetInputVal = $('input[name="show-nostr"]').val() + $('#show-nostr-text').text(targetInputVal) + $('.show-nostr').hide() + $('#show-nostr-text').show() + }) + $("#cancel-show-nostr").click(() => { + $('.show-nostr').hide() + $('#show-nostr-text').show() + }) }); diff --git a/static/stauts.html b/static/stauts.html index b1bf80fb..0e93a8fb 100644 --- a/static/stauts.html +++ b/static/stauts.html @@ -40,23 +40,37 @@
Public Node Name:
- -
- + +
Nodey McNodeFace
+
+ +
Nostr Relay:
- -
- + +
wss://relay.lightning.pub
+
+ +
@@ -83,7 +97,7 @@
-
Continue
+
Continue