enzostvs HF staff commited on
Commit
502ba41
β€’
1 Parent(s): 727ce74

icon to close login modal

Browse files
Files changed (1) hide show
  1. src/routes/+layout.svelte +6 -1
src/routes/+layout.svelte CHANGED
@@ -26,7 +26,12 @@
26
  </main>
27
  <SvelteToast />
28
  <Dialog {open} onClose={() => loginModalStore.set(false)}>
29
- <div class="grid grid-cols-1 gap-7 text-center">
 
 
 
 
 
30
  <Icon icon="fluent-emoji:sparkles" class="w-12 h-12 mx-auto" />
31
  <header>
32
  <p class="text-white font-semibold text-lg">
 
26
  </main>
27
  <SvelteToast />
28
  <Dialog {open} onClose={() => loginModalStore.set(false)}>
29
+ <div class="grid grid-cols-1 gap-7 text-center relative">
30
+ <!-- close icon -->
31
+ <button class="absolute top-5 right-5" on:click={() => loginModalStore.set(false)}>
32
+ <Icon icon="carbon:close" class="w-6 h-6 text-white cursor-pointer" />
33
+ </button>
34
+
35
  <Icon icon="fluent-emoji:sparkles" class="w-12 h-12 mx-auto" />
36
  <header>
37
  <p class="text-white font-semibold text-lg">