This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from mfdavies/daisy-ui-init
daisy ui init + test
- Loading branch information
Showing
5 changed files
with
108 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
const Navbar = () => { | ||
return ( | ||
<div className="navbar bg-base-100"> | ||
<div className="flex-1"> | ||
<a className="btn btn-ghost text-xl">MobilityMate</a> | ||
</div> | ||
<div className="flex-none"> | ||
<div className="dropdown dropdown-end"> | ||
<div | ||
tabIndex={0} | ||
className="mt-3 z-[1] card card-compact dropdown-content w-52 bg-base-100 shadow" | ||
> | ||
<div className="card-body"> | ||
<span className="font-bold text-lg">8 Items</span> | ||
<span className="text-info">Subtotal: $999</span> | ||
<div className="card-actions"> | ||
<button className="btn btn-primary btn-block">View cart</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="dropdown dropdown-end"> | ||
<div | ||
tabIndex={0} | ||
role="button" | ||
className="btn btn-ghost btn-circle avatar" | ||
> | ||
<div className="w-10 rounded-full"> | ||
<img | ||
alt="Tailwind CSS Navbar component" | ||
src="https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg" | ||
/> | ||
</div> | ||
</div> | ||
<ul | ||
tabIndex={0} | ||
className="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52" | ||
> | ||
<li> | ||
<a className="justify-between"> | ||
Profile | ||
<span className="badge">New</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a>Settings</a> | ||
</li> | ||
<li> | ||
<a>Logout</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Navbar; |
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 |
---|---|---|
|
@@ -15,6 +15,6 @@ export default { | |
}, | ||
}, | ||
}, | ||
plugins: [], | ||
plugins: [require("daisyui")], | ||
} | ||
|