Skip to content
This repository has been archived by the owner on Feb 8, 2025. It is now read-only.

Commit

Permalink
Merge pull request #109 from Kerosene-Labs/build-home-screen
Browse files Browse the repository at this point in the history
Build home screen
  • Loading branch information
hlafaille authored Dec 23, 2024
2 parents 8f8f957 + 437b778 commit a6df927
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/svelte/src/lib/components/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

<!--please note that our main will clip any content that is overflowing in an effort to maintain a decent user experience-->
<main class="min-h-screen h-screen max-h-screen overflow-clip">
<div id="appBar" class="absolute bg-neutral-900 h-14 max-h-14 w-screen z-30 drop-shadow-lg flex flex-row items-center px-4">
<div id="appBar"
class="absolute bg-neutral-900 h-14 max-h-14 w-screen z-30 drop-shadow-lg flex flex-row items-center px-4">
<button aria-label="App Drawer Toggle" on:click={toggleDrawer}>
<svg class="h-10 fill-neutral-300" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4 7C4 6.44771 4.44772 6 5 6H24C24.5523 6 25 6.44771 25 7C25 7.55229 24.5523 8 24 8H5C4.44772 8 4 7.55229 4 7Z"
Expand All @@ -21,8 +22,11 @@
</svg>
</button>
</div>
<div id="drawer" class="inset-y-y fixed h-screen w-[90%] lg:w-[25%] bg-neutral-950 z-20 translate-x-[-100%] transition-all" class:translate-x-[0%]={drawerOpen}></div>
<div id="drawerBg" class="inset-y-0 fixed bg-black/50 w-screen h-screen z-10 backdrop-blur-sm transition-all" class:opacity-0={!drawerOpen} class:opacity-[99%]={drawerOpen}></div>
<div id="drawer"
class="inset-y-y fixed h-screen w-[90%] lg:w-[25%] bg-neutral-950 z-20 translate-x-[-100%] transition-all"
class:translate-x-[0%]={drawerOpen} class:pointer-events-none={!drawerOpen}></div>
<div id="drawerBg" class="inset-y-0 fixed bg-black/50 w-screen h-screen z-10 backdrop-blur-sm transition-all"
class:opacity-0={!drawerOpen} class:opacity-[99%]={drawerOpen} class:pointer-events-none={!drawerOpen}></div>
<div id="pageContent" class="pt-14 h-full overflow-y-scroll">
<slot></slot>
</div>
Expand Down

0 comments on commit a6df927

Please sign in to comment.