mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 07:26:43 +00:00
32 lines
1.4 KiB
JavaScript
32 lines
1.4 KiB
JavaScript
const NavBar = () => <div className="drawer">
|
|
<input id="my-drawer-3" type="checkbox" className="drawer-toggle" />
|
|
<div className="drawer-content flex flex-col">
|
|
{/* Navbar */}
|
|
<div className="w-full navbar bg-base-300 fixed top-0">
|
|
<div className="flex-none lg:hidden">
|
|
<label htmlFor="my-drawer-3" className="btn btn-square btn-ghost">
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" className="inline-block w-6 h-6 stroke-current"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M4 6h16M4 12h16M4 18h16"></path></svg>
|
|
</label>
|
|
</div>
|
|
<div className="flex-1 px-2 mx-2">Navbar Title</div>
|
|
<div className="flex-none hidden lg:block">
|
|
<ul className="menu menu-horizontal">
|
|
{/* Navbar menu content here */}
|
|
<li><a>Navbar Item 1</a></li>
|
|
<li><a>Navbar Item 2</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div className="drawer-side">
|
|
<label htmlFor="my-drawer-3" className="drawer-overlay"></label>
|
|
<ul className="menu p-4 w-80 h-full bg-base-200">
|
|
{/* Sidebar content here */}
|
|
<li><a>Sidebar Item 1</a></li>
|
|
<li><a>Sidebar Item 2</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
export default NavBar
|