diff --git a/web/src/lib/components/modals/Modals.svelte b/web/src/lib/components/modals/Modals.svelte index f59ad40..363770e 100644 --- a/web/src/lib/components/modals/Modals.svelte +++ b/web/src/lib/components/modals/Modals.svelte @@ -96,14 +96,17 @@ height: 100%; background-color: black; opacity: 0.6; - - /* display: grid; - place-content: center; - grid-template-columns: 1fr; */ } .modal { - background-color: red; + background-color: var(--color-background-base-300); + border-radius: 1rem; + padding: 1rem; + + display: grid; + place-content: center; + grid-template-columns: 1fr; + text-align: center; position: fixed; diff --git a/web/src/lib/web3/NeedAWallet.svelte b/web/src/lib/web3/NeedAWallet.svelte new file mode 100644 index 0000000..9baf81b --- /dev/null +++ b/web/src/lib/web3/NeedAWallet.svelte @@ -0,0 +1,41 @@ + + + connection.cancel()}> +
You need to a web3 wallet to continue
+
+ + {`Download + Download metamask + +
+
+ + diff --git a/web/src/lib/web3/Web3AccountInfo.svelte b/web/src/lib/web3/Web3AccountInfo.svelte index 4868075..0454d6d 100644 --- a/web/src/lib/web3/Web3AccountInfo.svelte +++ b/web/src/lib/web3/Web3AccountInfo.svelte @@ -19,22 +19,35 @@ {#if $account.loadingStep} {#if $account.loadingStep.id == 'SIGNING'} -

Welcome to Jolly-Roger

-

Sign the message to access to your data.

+

Welcome to Jolly-Roger

+

Sign the message to access to your data.

{:else if $account.loadingStep.id == 'WELCOME'} {:else} -

{$account.loadingStep.id}

-

{$account.loadingStep.id}

+

{$account.loadingStep.id}

+

{$account.loadingStep.id}

{/if} {/if} + + diff --git a/web/src/lib/web3/Web3ConnectionError.svelte b/web/src/lib/web3/Web3ConnectionError.svelte index f2b4992..4f43d76 100644 --- a/web/src/lib/web3/Web3ConnectionError.svelte +++ b/web/src/lib/web3/Web3ConnectionError.svelte @@ -6,12 +6,19 @@ import Alert from '$lib/components/alert/Alert.svelte'; import {url} from '$lib/utils/path'; import {resetIndexer} from '$lib/blockchain/state/State'; + import NeedAWallet from './NeedAWallet.svelte'; const builtin = connection.builtin; + + $: console.log($connection.error); {#if $connection.error} - + {#if $connection.error.id === 'NoBuiltinWallet'} + + {:else} + + {/if} {:else if $network.nonceCached === 'BlockOutOfRangeError' || $network.genesisNotMatching || $network.blocksCached}

diff --git a/web/src/lib/web3/Web3Executing.svelte b/web/src/lib/web3/Web3Executing.svelte index bb3957e..0b43044 100644 --- a/web/src/lib/web3/Web3Executing.svelte +++ b/web/src/lib/web3/Web3Executing.svelte @@ -13,8 +13,8 @@ {#if $execution.executing} {#if $network.notSupported} -

You are connected to unsupported network

-

+

You are connected to unsupported network

+

Proceed to switch to {getNetworkConfig($contractsInfos.chainId)?.chainName || `the network with chainID: ${$contractsInfos.chainId}`}.

@@ -23,11 +23,11 @@ on:click={async () => { await execution.cancel(); }} - class="btn btn-error">CancelCancel Switch @@ -36,20 +36,33 @@ {:else if $account.state === 'Disconnected' && !$account.unlocking} -

To proceed, you need to connect to a wallet.

+

To proceed, you need to connect to a wallet.

{/if} {/if} + + diff --git a/web/src/lib/web3/Web3PendingActions.svelte b/web/src/lib/web3/Web3PendingActions.svelte index 029e471..bebf4d0 100644 --- a/web/src/lib/web3/Web3PendingActions.svelte +++ b/web/src/lib/web3/Web3PendingActions.svelte @@ -33,11 +33,11 @@ cancelation={{button: true, clickOutside: false}} > {#if $pendingActions.list[0].item.metadata && $pendingActions.list[0].item.metadata.title} -

+

{$pendingActions.list[0].item.metadata.title}

{/if} -

+

{#if $pendingActions.list[0].item.metadata && $pendingActions.list[0].item.metadata.description} {$pendingActions.list[0].item.metadata.description} {:else} @@ -46,3 +46,16 @@

{/if} + + diff --git a/web/src/lib/web3/Web3WalletSelection.svelte b/web/src/lib/web3/Web3WalletSelection.svelte index 62a3553..4cef83e 100644 --- a/web/src/lib/web3/Web3WalletSelection.svelte +++ b/web/src/lib/web3/Web3WalletSelection.svelte @@ -42,16 +42,15 @@ {#if $connection.requireSelection} connection.cancel()}> -
+

How do you want to connect ?

-
+
{#each options as option} {`Login connection.select(option.id)} @@ -59,17 +58,56 @@ permalink--> {/each}
{#if builtinNeedInstalation} -
OR
-
- - {`Download +
OR
+
{/if} {/if} + +