Skip to content

Instantly share code, notes, and snippets.

@morjuax
Created July 28, 2023 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morjuax/143878b534254ffe390790b8db9bc046 to your computer and use it in GitHub Desktop.
Save morjuax/143878b534254ffe390790b8db9bc046 to your computer and use it in GitHub Desktop.
Navbar tailwind
<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