From 264f13f6b1cbe1200065b894eb2b0c0a8d2c5c89 Mon Sep 17 00:00:00 2001 From: Laurin Weger Date: Thu, 27 Jun 2024 16:57:11 +0200 Subject: [PATCH] add category descriptions in login, explain what to do in order screen, remove unused code, fix design for "error occurred" screen --- ng-app/src/lib/Login.svelte | 111 +++++++++++++++++------------------- 1 file changed, 53 insertions(+), 58 deletions(-) diff --git a/ng-app/src/lib/Login.svelte b/ng-app/src/lib/Login.svelte index 14c28fe..6b04f6f 100644 --- a/ng-app/src/lib/Login.svelte +++ b/ng-app/src/lib/Login.svelte @@ -262,7 +262,7 @@
{#if step == "load"}
-

How to open your wallet, step by step :

+

How to open your wallet, step by step:

  • For each one of the 9 categories of images, you will be presented with @@ -374,6 +374,14 @@ class:max-w-[600px]={!mobile} >
    +

    + + + Select your emoji of category: {emoji_cat[ + shuffle.category_indices[pazzlePage] + ]} +

    {#each [0, 1, 2, 3, 4] as row}
    {#each emojis2[pazzlePage]?.slice(0 + row * 3, 3 + row * 3) || [] as emoji, i (pazzlePage + "-" + row + "-" + i)} @@ -419,6 +427,9 @@ class:max-w-[600px]={!mobile} >
    +

    + Click your emojis in the correct order +

    {#each [0, 1, 2] as row}
    {#each selection.slice(0 + row * 3, 3 + row * 3) || [] as emoji, i} @@ -575,39 +586,47 @@ {:else if step == "end"} {#if error}
    - An error occurred ! - - - {error} - - - +
    + An error occurred ! + + + {error} + +
    +
    + + +
    {:else}
    @@ -659,28 +678,4 @@ border: 0; box-shadow: none; */ } - - .scale-to-fit { - /* Use the smaller of viewport width or height to maintain aspect ratio */ - /* width: 100vw; */ - /* height: 100vh; */ - max-width: calc(100vh * (3 / 5)); /* Adjust the ratio to fit your needs */ - max-height: calc(100vw * (5 / 3)); /* Inverse of the above ratio */ - display: flex; - flex-direction: column; - justify-content: center; - } - - /* Additional styles for responsiveness */ - @media (orientation: landscape) { - .scale-to-fit { - max-width: calc(100vh * (3 / 5)); - } - } - - @media (orientation: portrait) { - .scale-to-fit { - max-height: calc(100vw * (5 / 3)); - } - }