File tree Expand file tree Collapse file tree 6 files changed +36
-8
lines changed
infrastructure/eid-wallet/src Expand file tree Collapse file tree 6 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ const cBase = "w-full h-[9vh] flex justify-between items-center";
2727 {:else }
2828 <span aria-hidden =" true" ></span >
2929 {/if }
30- <h3 class ="text-center" >{title }</h3 >
31- {#if isUserLoggedIn }
30+ <h4 class ="text-center" >{title }</h4 >
31+ <!-- {#if isUserLoggedIn}
3232 <Button.Icon icon={UserCircleIcon} iconSize="8.1vw" iconColor={"text-black-700"} onclick={handleProfile} />
33- {:else }
33+ {:else} -->
3434 <span aria-hidden =" true" ></span >
35- {/if }
35+ <!-- {/if} -->
3636</header >
Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ import { Header } from " $lib/fragments" ;
3+ import { runtime } from " $lib/global/runtime.svelte" ;
4+
5+ const { children } = $props ();
6+ </script >
7+
8+ <main class =" h-[100vh] px-[5vw] pb-[4.5vh]" >
9+ <Header title ={runtime .header .title ?? " " }/>
10+ {@render children ?.()}
11+ </main >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22import { SettingsNavigationBtn } from " $lib/fragments" ;
3+ import { runtime } from " $lib/global/runtime.svelte" ;
34import {
45 Key01Icon ,
56 LanguageSquareIcon ,
67 Link02Icon ,
78 PinCodeIcon ,
89 Shield01Icon ,
910} from " @hugeicons/core-free-icons" ;
11+
12+ $effect (() => {
13+ runtime .header .title = " Settings" ;
14+ });
1015 </script >
1116
12- <main class = " pt-[3vh] px-[5vw] pb-[4.5vh] " >
17+ <main >
1318 <!-- header part -->
1419 <SettingsNavigationBtn icon ={LanguageSquareIcon } label =" Language" href =" /settings/language" />
1520 <SettingsNavigationBtn icon ={Link02Icon } label =" History" href =" /settings/history" />
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2+ import { runtime } from " $lib/global/runtime.svelte" ;
3+
4+ $effect (() => {
5+ runtime .header .title = " History" ;
6+ });
27 </script >
38
49<main >
5- <h1 >History Page</h1 >
610</main >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2+ import { runtime } from " $lib/global/runtime.svelte" ;
23import { Selector } from " $lib/ui" ;
34
45let languages: { name: string ; country: string }[] = [
@@ -8,11 +9,15 @@ let languages: { name: string; country: string }[] = [
89 { name: " French" , country: " fr" },
910];
1011let selected = $state (" " );
12+
13+ $effect (() => {
14+ runtime .header .title = " Language" ;
15+ });
1116 </script >
1217
1318
1419
15- <main class = " pt-[3vh] px-[5vw] pb-[4.5vh] " >
20+ <main >
1621 {#each languages as lang , i }
1722 <Selector id ={` option-${i } ` } name ={lang .name } bind:selected value ={lang .name }>
1823 {lang .name }
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2+ import { Header } from " $lib/fragments" ;
3+ import { runtime } from " $lib/global/runtime.svelte" ;
24import { ButtonAction , Drawer , InputPin } from " $lib/ui" ;
35import { CircleLock01Icon } from " @hugeicons/core-free-icons" ;
46import { HugeiconsIcon } from " @hugeicons/svelte" ;
@@ -20,11 +22,12 @@ const handleChangePIN = async () => {
2022};
2123
2224$effect (() => {
25+ runtime .header .title = " Change PIN" ;
2326 if (repeatPin .length === 4 && newPin === repeatPin ) isError = false ;
2427});
2528 </script >
2629
27- <main class =" h-[100vh] pt-[3vh] px-[5vw] pb-[4.5vh] flex flex-col justify-between gap-[3vh] " >
30+ <main class =" h-[calc( 100vh-14vh)] flex flex-col justify-between" >
2831 <section >
2932 <div >
3033 <p class =" mb-[1vh]" >Enter you current PIN</p >
You can’t perform that action at this time.
0 commit comments