-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
73 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,87 @@ | ||
<script> | ||
import {username} from '../store.js'; | ||
import { username } from "../store.js"; | ||
let isOpen = false; | ||
let isOpen = false; | ||
function toggleDrawer() { | ||
function toggleDrawer() { | ||
isOpen = !isOpen; | ||
} | ||
} | ||
</script> | ||
|
||
<div class="navbar bg-base-100 rounded-3xl shadow-xl topnavbar"> | ||
<div class="flex-none"> | ||
<div class="drawer"> | ||
<input | ||
id="my-drawer" | ||
type="checkbox" | ||
bind:checked={isOpen} | ||
class="drawer-toggle" | ||
/> | ||
<div class="drawer-content"> | ||
<!-- Page content here --> | ||
<button on:click={toggleDrawer} class="btn btn-square btn-ghost"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
class="inline-block w-5 h-5 stroke-current" | ||
><path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M4 6h16M4 12h16M4 18h16" | ||
></path></svg | ||
> | ||
</button> | ||
</div> | ||
<div class="drawer-side"> | ||
<label for="my-drawer" aria-label="close sidebar" class="drawer-overlay" | ||
></label> | ||
<ul class="menu p-4 w-80 min-h-full bg-base-200 text-base-content"> | ||
<!-- Sidebar content here --> | ||
<li><a href="/#">Sidebar Item 1</a></li> | ||
<li><a href="/#">Sidebar Item 2</a></li> | ||
</ul> | ||
<div class="flex-none"> | ||
<div class="drawer"> | ||
<input | ||
id="my-drawer" | ||
type="checkbox" | ||
bind:checked={isOpen} | ||
class="drawer-toggle" | ||
/> | ||
<div class="drawer-content"> | ||
<!-- Page content here --> | ||
<button on:click={toggleDrawer} class="btn btn-square btn-ghost"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
class="inline-block w-5 h-5 stroke-current" | ||
><path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M4 6h16M4 12h16M4 18h16" | ||
></path></svg | ||
> | ||
</button> | ||
</div> | ||
<div class="drawer-side"> | ||
<label for="my-drawer" aria-label="close sidebar" class="drawer-overlay" | ||
></label> | ||
<ul class="menu p-4 w-80 min-h-full bg-base-200 text-base-content"> | ||
<!-- Sidebar content here --> | ||
<li><a href="/#">Sidebar Item 1</a></li> | ||
<li><a href="/#">Sidebar Item 2</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="flex-1"> | ||
<a href="/#/login" class="btn btn-ghost text-xl logo">lips</a> | ||
</div> | ||
<div class="flex-none"> | ||
<div class="dropdown dropdown-end"> | ||
<div | ||
class="mt-3 z-[1] card card-compact dropdown-content w-52 bg-base-100 shadow" | ||
> | ||
<div class="card-body"> | ||
<span class="font-bold text-lg">8 Items</span> | ||
<span class="text-info">Subtotal: $999</span> | ||
<div class="card-actions"> | ||
<button class="btn btn-primary btn-block">View cart</button> | ||
<div class="flex-1"> | ||
<a href="/#/login" class="btn btn-ghost text-xl logo">lips</a> | ||
</div> | ||
<div class="flex-none"> | ||
<div class="dropdown dropdown-end"> | ||
<div | ||
class="mt-3 z-[1] card card-compact dropdown-content w-52 bg-base-100 shadow" | ||
> | ||
<div class="card-body"> | ||
<span class="font-bold text-lg">8 Items</span> | ||
<span class="text-info">Subtotal: $999</span> | ||
<div class="card-actions"> | ||
<button class="btn btn-primary btn-block">View cart</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="dropdown dropdown-end"> | ||
<div tabindex="0" role="button" class="btn btn-ghost btn-circle avatar"> | ||
<div class="w-10 rounded-full"> | ||
<img alt="Tailwind CSS Navbar component" src="userPicture.jpeg" /> | ||
<div class="dropdown dropdown-end"> | ||
<div tabindex="0" role="button" class="btn btn-ghost btn-circle avatar"> | ||
<div class="w-10 rounded-full"> | ||
<img alt="Tailwind CSS Navbar component" src="userPicture.jpeg" /> | ||
</div> | ||
</div> | ||
<ul | ||
class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52" | ||
> | ||
<li> | ||
<a class="justify-between btn-disabled text-black" href="/" | ||
>{$username}</a | ||
> | ||
</li> | ||
<li><a class="justify-between" href="/#/profile">Profile</a></li> | ||
<li><a href="/#/setting">Settings</a></li> | ||
<li><a href="/#/login">Logout</a></li> | ||
</ul> | ||
</div> | ||
<ul | ||
class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52" | ||
> | ||
<li><a class="justify-between btn-disabled text-black" href='/'>{$username}</a></li> | ||
<li><a class="justify-between" href="/#/profile">Profile</a></li> | ||
<li><a href="/#/setting">Settings</a></li> | ||
<li><a href="/#/login">Logout</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="navbar"></div> | ||
<div class="navbar"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters