diff --git a/src/frontend/src/lib/components/illustrations/LogoLegacy.svelte b/src/frontend/src/lib/components/illustrations/LogoLegacy.svelte new file mode 100644 index 0000000000..ec2426b790 --- /dev/null +++ b/src/frontend/src/lib/components/illustrations/LogoLegacy.svelte @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/frontend/src/lib/components/illustrations/MigrationIllustration.svelte b/src/frontend/src/lib/components/illustrations/MigrationIllustration.svelte index 03d6dff156..f137ba43b5 100644 --- a/src/frontend/src/lib/components/illustrations/MigrationIllustration.svelte +++ b/src/frontend/src/lib/components/illustrations/MigrationIllustration.svelte @@ -1,76 +1,16 @@ - - - - - - - - - - - - - - - - - - - - - - +
+ + + +
diff --git a/src/frontend/src/lib/components/illustrations/SmileyWritingIllustration.svelte b/src/frontend/src/lib/components/illustrations/SmileyWritingIllustration.svelte index 5894d6fcbb..8b8a676fa8 100644 --- a/src/frontend/src/lib/components/illustrations/SmileyWritingIllustration.svelte +++ b/src/frontend/src/lib/components/illustrations/SmileyWritingIllustration.svelte @@ -7,28 +7,25 @@ + + - - diff --git a/src/frontend/src/lib/components/wizards/migration/views/CreatePasskeyMigration.svelte b/src/frontend/src/lib/components/wizards/migration/views/CreatePasskeyMigration.svelte index 5e51e3931d..a070d281a2 100644 --- a/src/frontend/src/lib/components/wizards/migration/views/CreatePasskeyMigration.svelte +++ b/src/frontend/src/lib/components/wizards/migration/views/CreatePasskeyMigration.svelte @@ -1,11 +1,11 @@
-
- +
+
-

+

Name your identity

void; @@ -12,7 +14,12 @@ let { onSubmit, isAuthenticating }: Props = $props(); - let identityNumber = $state(undefined); + let identityNumber = $state(""); + let inputElement = $state(); + + onMount(() => { + inputElement?.focus(); + }); const handleSubmit = async () => { // Button is disabled if identityNumber is null or undefined so no need to manage that case. @@ -24,7 +31,9 @@

- +
+ +

Let's get started @@ -38,11 +47,14 @@

identityNumber ?? "", + (value) => (identityNumber = value.replace(/\D/g, "")) + } inputmode="numeric" placeholder="Internet Identity number" - type="number" size="md" + bind:element={inputElement} autocomplete="off" autocorrect="off" spellcheck="false" @@ -53,7 +65,7 @@ variant="primary" size="lg" type="submit" - disabled={isAuthenticating} + disabled={isAuthenticating || identityNumber.length === 0} > {#if isAuthenticating} @@ -63,7 +75,7 @@ {/if}