Skip to content

Commit 1620f0b

Browse files
committed
chore: simplify implementation
1 parent 8be23ab commit 1620f0b

File tree

2 files changed

+17
-23
lines changed

2 files changed

+17
-23
lines changed

infrastructure/eid-wallet/src/app.css

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@
1515
font-style: normal;
1616
}
1717

18-
@layer utilities {
19-
.safe-area {
20-
padding-top: env(safe-area-inset-top);
21-
padding-bottom: env(safe-area-inset-bottom);
22-
padding-left: env(safe-area-inset-left);
23-
padding-right: env(safe-area-inset-right);
24-
}
25-
}
26-
2718
@layer base {
2819
/* Typography */
2920

@@ -88,6 +79,11 @@
8879

8980
body {
9081
font-family: "Archivo", sans-serif;
82+
83+
padding-top: env(safe-area-inset-top);
84+
padding-bottom: env(safe-area-inset-bottom);
85+
padding-left: env(safe-area-inset-left);
86+
padding-right: env(safe-area-inset-right);
9187
}
9288

9389
/* Custom classes */

infrastructure/eid-wallet/src/routes/+layout.svelte

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,16 @@ $effect(() => {
1111
});
1212
</script>
1313

14-
<div class="safe-area">
15-
{#if showSplashScreen}
16-
<div class="relative w-full h-[100vh] bg-primary">
17-
<img class="absolute w-full bottom-[-80px] start-0" src="/images/Shape1.svg" alt="illustration">
18-
<img class="absolute w-full top-[50px] end-[100px]" src="/images/Shape2.svg" alt="illustration">
19-
<div class="absolute w-full top-[42%] start-[50%] translate-x-[-50%] translate-y-[-42%]">
20-
<h1 class="text-center text-white text-[44px]">eAgency</h1>
21-
<p class="text-center text-white">Your self-sovereign digital entity</p>
22-
</div>
23-
<img class="absolute bottom-[116px] start-[50%] translate-x-[-50%]" src="/images/W3DSLogoWhite.svg" alt="logo">
14+
{#if showSplashScreen}
15+
<div class="relative w-full h-[100vh] bg-primary">
16+
<img class="absolute w-full bottom-[-80px] start-0" src="/images/Shape1.svg" alt="illustration">
17+
<img class="absolute w-full top-[50px] end-[100px]" src="/images/Shape2.svg" alt="illustration">
18+
<div class="absolute w-full top-[42%] start-[50%] translate-x-[-50%] translate-y-[-42%]">
19+
<h1 class="text-center text-white text-[44px]">eAgency</h1>
20+
<p class="text-center text-white">Your self-sovereign digital entity</p>
2421
</div>
25-
{:else}
26-
{@render children?.()}
27-
{/if}
28-
</div>
22+
<img class="absolute bottom-[116px] start-[50%] translate-x-[-50%]" src="/images/W3DSLogoWhite.svg" alt="logo">
23+
</div>
24+
{:else}
25+
{@render children?.()}
26+
{/if}

0 commit comments

Comments
 (0)