From 08e08b66ad2d20fb02e9d8fb7209ecb340d41358 Mon Sep 17 00:00:00 2001 From: dafuga Date: Wed, 23 Oct 2024 14:31:15 -0700 Subject: [PATCH] enhancement: displaying list of other wallets on signup get started page --- .../[network]/(account)/signup/+page.svelte | 86 +++++++++++-------- .../[network]/(account)/signup/walletTypes.ts | 34 ++++++-- 2 files changed, 77 insertions(+), 43 deletions(-) diff --git a/src/routes/[network]/(account)/signup/+page.svelte b/src/routes/[network]/(account)/signup/+page.svelte index 8f594c89d..664c53bb6 100644 --- a/src/routes/[network]/(account)/signup/+page.svelte +++ b/src/routes/[network]/(account)/signup/+page.svelte @@ -7,23 +7,67 @@ const { data } = $props(); - const currentEnvironment = detectEnvironment(); + const currentEnvironment = 'mobile'; //detectEnvironment(); const currentWalletType = walletTypes[currentEnvironment]; const currentWalletTypePath = `/${data.network}/signup/wallets/${currentWalletType.type}`; const recommendedWallet = currentWalletType.wallets[0]; + const otherWallets = currentWalletType.wallets.slice(1);

Lets's get started

- There are many options to setup your first account, but for new users we recommend the following - wallet for your current platform. Feel free to explore other platforms and wallet options. + There are many options to create your first account but we recommend {recommendedWallet.name} for + most people new to EOS.

+ +
+
+ {#if recommendedWallet.logo} + {`${recommendedWallet.name} + {/if} +
+
+

{recommendedWallet.name}

+

{recommendedWallet.description}

+ + + +
+
+
+
+ +{#each otherWallets as wallet} + + +
+ {#if wallet.logo} + {`${wallet.name} + {/if} +
+
+

+ {wallet.name} +

+

{wallet.description}

+
+ +
+
+{/each} + @@ -42,37 +86,3 @@ hover:bg-mineShaft-950 focus-visible:outline focus-visible:outline-transparent f - - -
-
- {#if recommendedWallet.logo} - {`${recommendedWallet.name} - {/if} -
-
-

{recommendedWallet.name}

-

{recommendedWallet.description}

-
-
- - - - -
- - -

Why do I need an account?

-

- An account on the blockchain is your unique identity, enabling you to perform transactions, - store assets, and participate in the network. -

-
- - -

Why do I need a wallet?

-

- A wallet is your gateway to the blockchain, allowing you to manage your digital assets and - interact with decentralized applications. -

-
diff --git a/src/routes/[network]/(account)/signup/walletTypes.ts b/src/routes/[network]/(account)/signup/walletTypes.ts index fd62e291f..8e83786dd 100644 --- a/src/routes/[network]/(account)/signup/walletTypes.ts +++ b/src/routes/[network]/(account)/signup/walletTypes.ts @@ -66,9 +66,16 @@ export const walletTypes: Record = { name: 'Anchor', route: 'signup/wallets/desktop/anchor', logo: AnchorLogo, - description: 'Anchor is a secure and easy-to-use mobile wallet.' + description: + 'Popular option with a user-friendly interface. Supports multiple EOSIO chains.' }, - { name: 'Wombat', route: 'signup/wallets/desktop/wombat', logo: WombatLogo } + { + name: 'Wombat', + route: 'signup/wallets/desktop/wombat', + logo: WombatLogo, + description: + 'Fast and secure with multi-chain support. Offers a smooth onboarding experience.' + } ] }, mobile: { @@ -82,9 +89,26 @@ export const walletTypes: Record = { 'Quick and easy transactions from your smartphone' ], wallets: [ - { name: 'Anchor Mobile', route: 'signup/wallets/mobile/anchor', logo: AnchorLogo }, - { name: 'Wombat Mobile', route: 'signup/wallets/mobile/wombat', logo: WombatLogo }, - { name: 'TokenPocket', route: 'signup/wallets/mobile/tokenpocket', logo: TokenPocketLogo } + { + name: 'Anchor Mobile', + route: 'signup/wallets/mobile/anchor', + logo: AnchorLogo, + description: + 'Popular mobile option with a user-friendly interface. Supports multiple EOSIO chains.' + }, + { + name: 'Wombat Mobile', + route: 'signup/wallets/mobile/wombat', + logo: WombatLogo, + description: + 'Fast and secure with multi-chain support. Offers a smooth onboarding experience.' + }, + { + name: 'TokenPocket', + route: 'signup/wallets/mobile/tokenpocket', + logo: TokenPocketLogo, + description: 'A leading crypto wallet that supports multiple chains.' + } ] }, extensions: {