Skip to content

Commit 8be23ab

Browse files
committed
feat: setup safe area
1 parent d53a674 commit 8be23ab

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

infrastructure/eid-wallet/src/app.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
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+
1827
@layer base {
1928
/* Typography */
2029

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

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

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>
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">
2124
</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}
25+
{:else}
26+
{@render children?.()}
27+
{/if}
28+
</div>

0 commit comments

Comments
 (0)