Skip to content

Commit c187bab

Browse files
authored
feat: add marketplace button to eID Wallet page (#790)
* feat: add marketplace button to eID Wallet page * format * feat: update marketplace button to open in a new tab with security attributes * format * Remove useless class * more explicit alt
1 parent 00e53a5 commit c187bab

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

infrastructure/eid-wallet/src/routes/(app)/main/+page.svelte

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { GlobalState } from "$lib/global";
55
import { Drawer, Toast } from "$lib/ui";
66
import * as Button from "$lib/ui/Button";
77
import {
8-
CircleArrowDataTransferDiagonalFreeIcons,
8+
LinkSquare02Icon,
99
QrCodeIcon,
1010
Settings02Icon,
1111
} from "@hugeicons/core-free-icons";
@@ -135,6 +135,7 @@ onDestroy(() => {
135135
Welcome back to your eID Wallet
136136
{/snippet}
137137
</Hero>
138+
138139
<Button.Nav href="/settings">
139140
<HugeiconsIcon
140141
size={32}
@@ -166,14 +167,26 @@ onDestroy(() => {
166167
userData={userData as Record<string, string>}
167168
/>
168169
{/snippet}
169-
{#snippet eVault()}
170-
<IdentityCard variant="eVault" usedStorage={0.1} totalStorage={10} />
171-
{/snippet}
172170

173171
<main class="pb-12">
174172
{@render Section("eName", eName)}
175173
{@render Section("ePassport", ePassport)}
176-
{@render Section("eVault", eVault)}
174+
175+
<Button.Nav
176+
href="https://marketplace.w3ds.metastate.foundation/"
177+
target="_blank"
178+
rel="noopener noreferrer"
179+
class="rounded-3xl w-full bg-black-700 text-white p-4 mt-8 flex items-center justify-center gap-3 cursor-pointer"
180+
>
181+
<span class="text-lg font-medium flex gap-2"
182+
>Discover <img
183+
class="w-12"
184+
src="/images/W3DSLogoWhite.svg"
185+
alt="w3ds logo"
186+
/> Post Platforms</span
187+
>
188+
<HugeiconsIcon size={24} strokeWidth={2} icon={LinkSquare02Icon} />
189+
</Button.Nav>
177190
</main>
178191

179192
<Drawer

0 commit comments

Comments
 (0)