enzostvs HF staff commited on
Commit
0e847cc
1 Parent(s): 6fe1fa3

sidebar icon aligned

Browse files
src/lib/components/ProTag.svelte CHANGED
@@ -1,3 +1,3 @@
1
- <div class="inline-block -skew-x-12 bg-gradient-to-br text-sm font-bold shadow-lg from-pink-500 via-green-500 to-yellow-500 text-black shadow-green-500/20 rounded-lg px-1.5 xl:px-2.5 py-0.5">
2
  PRO
3
  </div>
 
1
+ <div class="inline-block -skew-x-12 bg-gradient-to-br text-xs font-bold shadow-lg from-pink-500 via-green-500 to-yellow-500 text-black shadow-green-500/20 rounded-lg px-1.5 xl:px-1.5 py-0.5">
2
  PRO
3
  </div>
src/lib/components/sidebar/Sidebar.svelte CHANGED
@@ -44,7 +44,7 @@
44
  <header class="flex items-center justify-start gap-4">
45
  <img src={logo} alt="Logo" width={28} height={28} />
46
  <div class="flex items-center justify-start gap-2">
47
- <p class="text-white font-bold text-lg">Inference API for</p>
48
  <ProTag />
49
  </div>
50
  </header>
@@ -52,12 +52,12 @@
52
  <Icon icon="line-md:menu" class="text-slate-100 w-5 h-5" />
53
  </button>
54
  </div>
55
- <aside class={`${open ? '' : '-translate-x-full'} z-10 absolute xl:relative transition-all duration-200 xl:!translate-x-0 bg-slate-900 w-full xl:max-w-[360px] h-screen border-r border-slate-800 text-white`}>
56
- <header class="flex items-center justify-between p-6 lg:p-8 gap-4">
57
  <div class="flex items-center justify-start gap-4">
58
  <img src={logo} alt="Logo" width={34} height={34} />
59
  <div class="flex items-center justify-start gap-2">
60
- <p class="text-white font-bold text-xl">Inference API for</p>
61
  <ProTag />
62
  </div>
63
  </div>
@@ -66,7 +66,7 @@
66
  </button>
67
  </header>
68
  <nav class="grid grid-cols-1 gap-8 px-4">
69
- <a
70
  href="https://huggingface.co/pricing#pro"
71
  target="_blank"
72
  class="px-4"
@@ -74,7 +74,7 @@
74
  <button class="group text-base font-bold uppercase tracking-wide bg-white text-slate-950 transition-all duration-200 px-6 py-3 w-full rounded-full relative">
75
  Subscribe to Pro
76
  </button>
77
- </a>
78
  <ul class="grid grid-cols-1 gap-4">
79
  {#each LINKS as { path, description, label, type, icon }, i}
80
  <PrimaryLink href={path} type={type}>
@@ -91,7 +91,7 @@
91
  </PrimaryLink>
92
  {/each}
93
  </ul>
94
- <div class="grid grid-cols-1 gap-4">
95
  <div class="flex items-center justify-start gap-4 mb-2">
96
  <p class="text-slate-600 uppercase font-medium text-sm font-sans">
97
  FEW SHOTS
@@ -106,7 +106,7 @@
106
  </p>
107
  </SecondaryLink>
108
  {/each}
109
- </div>
110
  </nav>
111
  </aside>
112
 
 
44
  <header class="flex items-center justify-start gap-4">
45
  <img src={logo} alt="Logo" width={28} height={28} />
46
  <div class="flex items-center justify-start gap-2">
47
+ <p class="text-white font-bold text-lg">Inference API Playground</p>
48
  <ProTag />
49
  </div>
50
  </header>
 
52
  <Icon icon="line-md:menu" class="text-slate-100 w-5 h-5" />
53
  </button>
54
  </div>
55
+ <aside class={`${open ? '' : '-translate-x-full'} z-10 absolute xl:relative transition-all duration-200 xl:!translate-x-0 bg-slate-900 w-full xl:max-w-[370px] h-screen border-r border-slate-800 text-white`}>
56
+ <header class="flex items-center justify-between p-6 gap-4">
57
  <div class="flex items-center justify-start gap-4">
58
  <img src={logo} alt="Logo" width={34} height={34} />
59
  <div class="flex items-center justify-start gap-2">
60
+ <p class="text-white font-bold text-xl whitespace-nowrap">Inference API Playground</p>
61
  <ProTag />
62
  </div>
63
  </div>
 
66
  </button>
67
  </header>
68
  <nav class="grid grid-cols-1 gap-8 px-4">
69
+ <!-- <a
70
  href="https://huggingface.co/pricing#pro"
71
  target="_blank"
72
  class="px-4"
 
74
  <button class="group text-base font-bold uppercase tracking-wide bg-white text-slate-950 transition-all duration-200 px-6 py-3 w-full rounded-full relative">
75
  Subscribe to Pro
76
  </button>
77
+ </a> -->
78
  <ul class="grid grid-cols-1 gap-4">
79
  {#each LINKS as { path, description, label, type, icon }, i}
80
  <PrimaryLink href={path} type={type}>
 
91
  </PrimaryLink>
92
  {/each}
93
  </ul>
94
+ <!-- <div class="grid grid-cols-1 gap-4">
95
  <div class="flex items-center justify-start gap-4 mb-2">
96
  <p class="text-slate-600 uppercase font-medium text-sm font-sans">
97
  FEW SHOTS
 
106
  </p>
107
  </SecondaryLink>
108
  {/each}
109
+ </div> -->
110
  </nav>
111
  </aside>
112