enzostvs HF staff commited on
Commit
f6be94e
β€’
1 Parent(s): 0f1d146

add login button into the modal

Browse files
Files changed (1) hide show
  1. src/routes/+layout.svelte +3 -3
src/routes/+layout.svelte CHANGED
@@ -4,7 +4,7 @@
4
 
5
  import Sidebar from "$lib/components/sidebar/Sidebar.svelte";
6
  import "$lib/styles/tailwind.css"
7
- import { userStore } from "$lib/stores/use-user";
8
  import Dialog from "$lib/components/dialog/Dialog.svelte";
9
  import { loginModalStore } from "$lib/stores/use-login-modal";
10
 
@@ -35,9 +35,9 @@
35
  </p>
36
  </header>
37
  <main>
38
- <a href="/api/auth/login">
39
  <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/sign-in-with-huggingface-lg.svg" alt="Sign in with Hugging Face" class="mx-auto" />
40
- </a>
41
  </main>
42
  </div>
43
  </Dialog>
 
4
 
5
  import Sidebar from "$lib/components/sidebar/Sidebar.svelte";
6
  import "$lib/styles/tailwind.css"
7
+ import { openWindowLogin, userStore } from "$lib/stores/use-user";
8
  import Dialog from "$lib/components/dialog/Dialog.svelte";
9
  import { loginModalStore } from "$lib/stores/use-login-modal";
10
 
 
35
  </p>
36
  </header>
37
  <main>
38
+ <button class="inline-block" on:click={openWindowLogin}>
39
  <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/sign-in-with-huggingface-lg.svg" alt="Sign in with Hugging Face" class="mx-auto" />
40
+ </button>
41
  </main>
42
  </div>
43
  </Dialog>