From 3c539a2c3c85b851dc3e03032fdda077d8b0498d Mon Sep 17 00:00:00 2001 From: ibro Date: Tue, 11 Jun 2024 15:02:57 +0100 Subject: [PATCH] create UI to adjust modal options --- site/src/ConnectOptions.svelte | 54 +++++++++++++++++++++++--------- site/src/ConnectPanel.svelte | 41 ++++++++++++++++++++++++ site/src/lib/Checkbox.svelte | 50 +++++++++++++++++++++++++++++ site/src/lib/code.svelte | 2 +- site/src/lib/connect/connect.css | 1 + 5 files changed, 132 insertions(+), 16 deletions(-) create mode 100644 site/src/ConnectPanel.svelte create mode 100644 site/src/lib/Checkbox.svelte diff --git a/site/src/ConnectOptions.svelte b/site/src/ConnectOptions.svelte index f5d6068..c9a466d 100644 --- a/site/src/ConnectOptions.svelte +++ b/site/src/ConnectOptions.svelte @@ -3,6 +3,7 @@ // import './app.css' import Evm from './lib/connect/evm.svelte' import Starknet from './lib/connect/starknet.svelte' + import ConnectPanel from './ConnectPanel.svelte' export let ecosystem: string // export let theme = "" @@ -10,7 +11,7 @@
{ ecosystem = 'starknet' - }}>Starknet

Starknet

- {#if ecosystem === 'evm'} - - {:else if ecosystem === 'starknet'} - - {/if} +
+ {#if ecosystem === 'evm'} + + {:else if ecosystem === 'starknet'} + + {/if} +
+
+ +
diff --git a/site/src/lib/Checkbox.svelte b/site/src/lib/Checkbox.svelte new file mode 100644 index 0000000..63b4e22 --- /dev/null +++ b/site/src/lib/Checkbox.svelte @@ -0,0 +1,50 @@ + + + + + diff --git a/site/src/lib/code.svelte b/site/src/lib/code.svelte index 30b0a17..5471bca 100644 --- a/site/src/lib/code.svelte +++ b/site/src/lib/code.svelte @@ -35,7 +35,7 @@ padding: 0.25em 1em; border: 2px solid rgba(76 76 76 / 0.4); - --base-color: #17171755; + --base-color: #171717; background: var(--base-color); border-radius: 0.5em; diff --git a/site/src/lib/connect/connect.css b/site/src/lib/connect/connect.css index 285c816..2903c16 100644 --- a/site/src/lib/connect/connect.css +++ b/site/src/lib/connect/connect.css @@ -5,5 +5,6 @@ fractl-modal { padding: 0.5em 1.25em; /* --fcl-btn-border-radius: 5px; */ cursor: pointer; + width: fit-content; } }