@@ -48,22 +49,17 @@ $effect(() => {
{#if variant === 'eName'}
-
-
-
-
-
+
+
+
+
+
{:else if variant === 'ePassport'}
-
HIGH SECURITY
-
+
HIGH SECURITY
+
+
{:else if variant === 'eVault'}
-
{state.progressWidth} Used
+
{state.progressWidth} Used
{/if}
@@ -98,4 +94,5 @@ $effect(() => {
-
+
+
\ No newline at end of file
diff --git a/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte b/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte
new file mode 100644
index 00000000..d344a848
--- /dev/null
+++ b/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte
@@ -0,0 +1,21 @@
+
+
+
+
+
+

+

+
+
eAgency
+
Your self-sovereign digital entity
+
+

+
+
+
+
\ No newline at end of file
diff --git a/infrastructure/eid-wallet/src/lib/fragments/index.ts b/infrastructure/eid-wallet/src/lib/fragments/index.ts
index 21e9aaf3..fa153456 100644
--- a/infrastructure/eid-wallet/src/lib/fragments/index.ts
+++ b/infrastructure/eid-wallet/src/lib/fragments/index.ts
@@ -1,3 +1,3 @@
-export { default as Header } from "./Header/Header.svelte";
+export { default as Hero } from "./Hero/Hero.svelte";
export { default as IdentityCard } from "./IdentityCard/IdentityCard.svelte";
export { default as SettingsNavigationBtn } from "./SettingsNavigationBtn/SettingsNavigationBtn.svelte";
diff --git a/infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.stories.ts b/infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.stories.ts
index d43d0d56..9cdec274 100644
--- a/infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.stories.ts
+++ b/infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.stories.ts
@@ -1,4 +1,4 @@
-import { FlashlightIcon } from "@hugeicons/core-free-icons";
+import { FlashlightIcon, ViewIcon } from "@hugeicons/core-free-icons";
import type { ComponentProps } from "svelte";
import ButtonIcon from "./ButtonIcon.svelte";
@@ -6,10 +6,7 @@ export default {
title: "UI/ButtonIcon",
component: ButtonIcon,
tags: ["autodocs"],
- render: (args: {
- Component: ButtonIcon<{ icon: typeof FlashlightIcon }>;
- props: ComponentProps
;
- }) => ({
+ render: (args: ComponentProps) => ({
Component: ButtonIcon,
props: args,
}),
@@ -19,10 +16,26 @@ export const Default = {
render: () => ({
Component: ButtonIcon,
props: {
- variant: "white",
ariaLabel: "Default button",
- size: "md",
+ bgSize: "md", // Predefined size
+ iconSize: "md",
+ icon: ViewIcon,
+ bgColor: "black",
+ iconColor: "white",
+ },
+ }),
+};
+
+export const CustomSize = {
+ render: () => ({
+ Component: ButtonIcon,
+ props: {
+ ariaLabel: "Custom sized button",
+ bgSize: "w-[120px] h-[120px]", // Custom Tailwind size
+ iconSize: 56, // Custom pixel size
icon: FlashlightIcon,
+ bgColor: "bg-danger",
+ iconColor: "white",
},
}),
};
@@ -31,24 +44,32 @@ export const Loading = {
render: () => ({
Component: ButtonIcon,
props: {
- variant: "white",
ariaLabel: "Loading button",
- size: "md",
+ bgSize: "md",
+ iconSize: "md",
icon: FlashlightIcon,
isLoading: true,
+ bgColor: "black",
+ iconColor: "white",
},
}),
};
-export const Active = {
+export const WithCallback = {
render: () => ({
Component: ButtonIcon,
props: {
- variant: "white",
- ariaLabel: "Active button",
- size: "md",
+ ariaLabel: "Button with async callback",
+ bgSize: "md",
+ iconSize: "md",
icon: FlashlightIcon,
- isActive: true,
+ callback: async () => {
+ await new Promise((resolve) => setTimeout(resolve, 2000));
+ console.log("Action completed!");
+ },
+ blockingClick: true,
+ bgColor: "primary",
+ iconColor: "white",
},
}),
};
diff --git a/infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.svelte b/infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.svelte
index 0fd927da..4e6be406 100644
--- a/infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.svelte
+++ b/infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.svelte
@@ -1,32 +1,49 @@
-
+-->
\ No newline at end of file
diff --git a/infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte b/infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte
index e804ff30..0af52cf9 100644
--- a/infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte
+++ b/infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte
@@ -1,7 +1,7 @@
- Verify your account
- Get your passport ready. You’ll be directed to a site where you can verify your account in a swift and secure process
-
-

-
+
+
goto("/verify/id")}>I'm ready
\ No newline at end of file
diff --git a/infrastructure/eid-wallet/src/routes/+layout.svelte b/infrastructure/eid-wallet/src/routes/+layout.svelte
index 5d30d127..2ebf7008 100644
--- a/infrastructure/eid-wallet/src/routes/+layout.svelte
+++ b/infrastructure/eid-wallet/src/routes/+layout.svelte
@@ -1,26 +1,32 @@
-
+
{#if showSplashScreen}
-
-

-

-
-
eAgency
-
Your self-sovereign digital entity
-
-

-
+
{:else}
{@render children?.()}
-{/if}
\ No newline at end of file
+{/if}