Created
July 28, 2023 01:05
-
-
Save morjuax/143878b534254ffe390790b8db9bc046 to your computer and use it in GitHub Desktop.
Navbar tailwind
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
<header className="flex items-center bg-gray-800 px-28 py-3"> | |
<Link href="/"> | |
<h1 className="font-black text-3xl text-white">Title</h1> | |
</Link> | |
<div className="flex-grow text-right"> | |
<button | |
className="bg-green-500 hover:bg-green-400 px-5 py-2 text-gray font-bold rounded-sm inline-flex items-center" | |
onClick={() => router.push("/new")} | |
> | |
<AiOutlinePlus className="mr-2" /> | |
Add Task | |
</button> | |
</div> | |
</header> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment