From 52b4c77fc03c5e062988ae8f36ec8516426e2482 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Mon, 16 Sep 2024 21:15:56 +0200 Subject: [PATCH] Add currency converter, fix for display light toggler --- src/lib/style/app.scss | 14 ++++ src/routes/+layout.svelte | 16 ++++- src/routes/Settings.svelte | 2 +- src/routes/convert/+page.svelte | 124 ++++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+), 3 deletions(-) create mode 100644 src/routes/convert/+page.svelte diff --git a/src/lib/style/app.scss b/src/lib/style/app.scss index ef598ac..0f1ceb4 100644 --- a/src/lib/style/app.scss +++ b/src/lib/style/app.scss @@ -228,3 +228,17 @@ nav { #firmwareUploadProgress { @extend .my-2; } + +.sats { + font-family: 'Satoshi Symbol'; +} + +.currencyCode { + width: 20%; + text-align: center; + display: inline-block; +} + +input[type='number'] { + text-align: right; +} diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index ef187a5..a34ea20 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -9,7 +9,8 @@ NavItem, NavLink, Navbar, - NavbarBrand + NavbarBrand, + NavbarToggler } from '@sveltestrap/sveltestrap'; import { page } from '$app/stores'; @@ -51,15 +52,26 @@ } } }); + + let isOpen = false; + + const toggle = () => { + isOpen = !isOpen; + }; ₿TClock - + + +