From 1cb837a52325dffe6790e5bacf8e857c011bc30c Mon Sep 17 00:00:00 2001 From: polarDefender Date: Mon, 27 May 2024 08:58:46 -0700 Subject: [PATCH] fixed flex box --- static/backup.html | 17 +++++------------ static/css/styles.css | 34 +++++++++++++++++++++++++--------- static/index.html | 7 +++---- static/js/liquidity.js | 10 ++++++++++ static/liquidity.html | 13 ++++++------- 5 files changed, 49 insertions(+), 32 deletions(-) diff --git a/static/backup.html b/static/backup.html index 9f09e81e..61dc63a5 100644 --- a/static/backup.html +++ b/static/backup.html @@ -32,11 +32,10 @@ -

Backup

+

Choose a Recovery Method

- It looks like this is a - new node, it's important - establish backups. + New Node! 🎉 It's important + to backup your keys.

@@ -45,17 +44,11 @@
- In addition to your seed phrase, you'll need a channel backup to -
-
- recover funds should your node experience a hardware failure. + In addition to your seed phrase, you also need channel details to recover funds should your node experience a hardware failure.

- It's important always to have the latest version of this backup, -
-
- fortunately they're small enough to be cached on the Nostr relay. + It's important always to have the latest version of this file, fortunately it's small enough to be cached on the Nostr relay automatically.
diff --git a/static/css/styles.css b/static/css/styles.css index fae30a11..b2290a26 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -9,12 +9,17 @@ } body { - margin-block-start: 15px; font-family: Montserrat; background-color: var(--background-color); color: var(--color); text-align: center; - overflow: scroll; + overflow-y: scroll; + overflow-x: hidden; + margin: 0; + display: flex; + flex-direction: column; + justify-content: space-between; + min-height: 100vh; } header { @@ -24,12 +29,14 @@ header { flex-direction: row; align-items: center; gap: 1rem; + height: 4rem; + padding: 0.5rem 1rem; } main { - max-width: 500px; - width: 100%; + max-width: 600px; margin-inline: auto; + padding: 1rem; } * { @@ -37,13 +44,13 @@ main { } @media (min-width: 768px) { - body { + body > * { zoom: 1.4; } } @media (min-width: 2000px) { - body { + body > * { zoom: 1.6; } } @@ -143,7 +150,7 @@ a { /* Display a checkmark when the checkbox is checked */ .checkbox input[type="checkbox"]:checked + .checkbox-shape::before { - content: "✔"; + content: "✓"; color: #a012c7; font-size: 20px; text-align: center; @@ -182,6 +189,13 @@ a { .setup-header > h2 { margin-block-start: 20px; + padding: 0 24px; +} + +@media (max-width: 768px) { + .setup-header > h2 { + font-size: 24px; + } } .setup-header .header-title { @@ -224,7 +238,9 @@ footer { max-width: 500px; width: 100%; margin-inline: auto; - margin-top: 18px; + padding-top: 18px; + padding-left: 1rem; + padding-right: 1rem; } footer .footer-text { @@ -241,4 +257,4 @@ footer .footer-text { .hidden-button { visibility: hidden; -} \ No newline at end of file +} diff --git a/static/index.html b/static/index.html index 092684a5..ff84824b 100644 --- a/static/index.html +++ b/static/index.html @@ -27,9 +27,8 @@
-

Setup

+

Setup your Pub

- Let's confirm some things before we start this Pub

@@ -37,7 +36,7 @@
- give this node a name that wallet users will see: + Give this node a name that will be seen by wallet users:
diff --git a/static/js/liquidity.js b/static/js/liquidity.js index 4418542a..c0b653b3 100644 --- a/static/js/liquidity.js +++ b/static/js/liquidity.js @@ -6,4 +6,14 @@ $(() => { $("#close-question").click(() => { $("#question-content").hide(); }); + + $("#automate").click(() => { + $('[data-group="service"]').prop("checked", false); + $("#automate").prop("checked", true); + }); + + $("#manual").click(() => { + $('[data-group="service"]').prop("checked", false); + $("#manual").prop("checked", true); + }); }); diff --git a/static/liquidity.html b/static/liquidity.html index 46bae1e5..e31a60d7 100644 --- a/static/liquidity.html +++ b/static/liquidity.html @@ -32,9 +32,9 @@ -

Liquidity

+

Manage Node Liquidity

- How do you want to manage Lightning connectivity? + How do you want to manage your Lightning nodes channels?

@@ -42,17 +42,16 @@
- +