Skip to content

Commit

Permalink
Fix drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Sep 30, 2024
1 parent eb3ddc9 commit 8ee6268
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
34 changes: 24 additions & 10 deletions app/web_ui/src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,39 @@
/>
</svg>
</label>
<div class="flex-grow">Home</div>
<div class="flex-grow"></div>
</div>
</div>

<div class="flex-grow rounded-t-lg bg-base-100 shadow-lg">
<div class="flex-grow rounded-t-lg bg-base-100 shadow-lg p-4">
<slot />
</div>
</div>
<div class="drawer-side">
<label for="my-drawer-2" aria-label="close sidebar" class="drawer-overlay"
<label for="main-drawer" aria-label="close sidebar" class="drawer-overlay"
></label>

<div class="flex flex-row items-center mx-6 my-3 hidden lg:flex">
<img src="/logo.svg" alt="logo" class="w-8 h-8" />
<div class="text-lg font-bold ml-1">Kiln AI</div>
</div>
<ul class="menu bg-base-200 text-base-content min-h-full w-60 p-4">
<li><a href="/">Sidebar Item 1</a></li>
<li><a href="/">Sidebar Item 2</a></li>
<ul
class="menu bg-base-200 text-base-content min-h-full w-72 lg:w-60 p-4 pt-1 lg:pt-4"
>
<li class="hover:bg-transparent flex flex-row justify-end">
<label
for="main-drawer"
class="lg:hidden ml-3 text-2xl cursor-pointer ml-4 pt-[5px]"
>
&#x2715;
</label>
</li>
<li class="mb-4">
<a href="https://kiln-ai.com" target="_blank">
<div class="flex flex-row items-center mx-[-5px] p-0">
<img src="/logo.svg" alt="logo" class="w-8 h-8" />
<div class="text-lg font-bold ml-1">Kiln AI</div>
</div>
</a>
</li>
<li><a href="/?1">Sidebar Item 1</a></li>
<li><a href="/?2">Sidebar Item 2</a></li>
</ul>
</div>
</div>
2 changes: 2 additions & 0 deletions app/web_ui/src/routes/(app)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
<title>Kiln Studio</title>
<meta name="description" content="The open source ML product platform" />
</svelte:head>

<h1>Home</h1>

0 comments on commit 8ee6268

Please sign in to comment.