enzostvs HF staff commited on
Commit
5bf413b
β€’
1 Parent(s): f2d217f

footer aside signin

Browse files
src/lib/assets/hf-logo.svg ADDED
src/lib/components/sidebar/Sidebar.svelte CHANGED
@@ -2,6 +2,7 @@
2
  import Icon from "@iconify/svelte"
3
 
4
  import Menu from "./Menu.svelte";
 
5
 
6
  let isOpen = false;
7
 
@@ -31,24 +32,30 @@
31
  <button class="bg-transparent absolute top-10 right-8 cursor-pointer lg:hidden" on:click="{handleClick}">
32
  <Icon icon="{isOpen ? "mdi:hamburger-remove" : "mdi:hamburger-minus"}" class="w-7 h-7 text-white" />
33
  </button>
34
- <aside class="bg-neutral-950 h-screen border-r border-neutral-800 w-full max-w-[344px] absolute -translate-x-full lg:translate-x-0 transition-all duration-200 lg:relative lg:z-20" class:translate-x-0={isOpen}>
35
- <header class="text-white px-8 pb-8 pt-10 text-xl tracking-wider font-semibold">
36
- LoRA Studio
37
- </header>
38
- <div class="px-4">
39
- <ul class="grid grid-cols-1 gap-2">
40
- {#each menus as menu}
41
- <Menu href={menu.href}>
42
- <Icon icon={menu.icon} class="w-5 h-5" />
43
- {menu.label}
44
- </Menu>
45
-
46
- {/each}
47
- </ul>
48
- <hr class="border-neutral-800/50 mt-10 mx-4">
49
- <Menu href="https://huggingface.co/">
50
- <Icon icon="ph:question-fill" class="w-5 h-5" />
51
- Help
52
- </Menu>
 
 
53
  </div>
 
 
 
 
54
  </aside>
 
2
  import Icon from "@iconify/svelte"
3
 
4
  import Menu from "./Menu.svelte";
5
+ import HFLogo from "$lib/assets/hf-logo.svg";
6
 
7
  let isOpen = false;
8
 
 
32
  <button class="bg-transparent absolute top-10 right-8 cursor-pointer lg:hidden" on:click="{handleClick}">
33
  <Icon icon="{isOpen ? "mdi:hamburger-remove" : "mdi:hamburger-minus"}" class="w-7 h-7 text-white" />
34
  </button>
35
+ <aside class="bg-neutral-950 h-screen border-r border-neutral-800 w-full max-w-[344px] absolute -translate-x-full lg:translate-x-0 transition-all duration-200 lg:relative z-20 lg:z-0 flex flex-col justify-between" class:translate-x-0={isOpen}>
36
+ <div class="w-full">
37
+ <header class="text-white px-8 pb-8 pt-10 text-xl tracking-wider font-semibold">
38
+ LoRA Studio
39
+ </header>
40
+ <div class="px-4">
41
+ <ul class="grid grid-cols-1 gap-2">
42
+ {#each menus as menu}
43
+ <Menu href={menu.href}>
44
+ <Icon icon={menu.icon} class="w-5 h-5" />
45
+ {menu.label}
46
+ </Menu>
47
+
48
+ {/each}
49
+ </ul>
50
+ <hr class="border-neutral-800/50 mt-10 mx-4">
51
+ <Menu href="https://huggingface.co/">
52
+ <Icon icon="ph:question-fill" class="w-5 h-5" />
53
+ Help
54
+ </Menu>
55
+ </div>
56
  </div>
57
+ <footer class="text-white text-center text-base pb-8 px-8 flex items-center justify-center gap-2 cursor-pointer">
58
+ <img src={HFLogo} alt="Hugging Face logo" class="w-8 h-8 inline-block" />
59
+ <u>Sign in with Hugging Face</u>
60
+ </footer>
61
  </aside>
src/routes/+layout.svelte CHANGED
@@ -5,7 +5,7 @@
5
 
6
  <div class="flex items-start">
7
  <Sidebar />
8
- <main id="app" class="px-6 py-10 lg:px-10 lg:py-12 flex-1 h-screen overflow-auto">
9
  <slot />
10
  </main>
11
  </div>
 
5
 
6
  <div class="flex items-start">
7
  <Sidebar />
8
+ <main id="app" class="px-6 py-10 lg:px-10 lg:py-12 flex-1 h-screen overflow-y-auto">
9
  <slot />
10
  </main>
11
  </div>