Skip to content

Instantly share code, notes, and snippets.

@kubilaybzk
Created October 25, 2023 08:07
Show Gist options
  • Save kubilaybzk/216741d772adb12b9eb8043f67ecb35f to your computer and use it in GitHub Desktop.
Save kubilaybzk/216741d772adb12b9eb8043f67ecb35f to your computer and use it in GitHub Desktop.
Header
import React from "react";
export default function Header() {
console.log("Header Rendered");
return (
<>
<div className="header-2">
<nav className="bg-white py-2 md:py-4">
<div className="container px-4 mx-auto md:flex md:items-center">
<div className="flex justify-between items-center">
<a href="#" className="font-bold text-xl text-indigo-600">
FWR
</a>
<button
className="border border-solid border-gray-600 px-3 py-1 rounded text-gray-600 opacity-50 hover:opacity-75 md:hidden"
id="navbar-toggle"
>
<i className="fas fa-bars"></i>
</button>
</div>
<div
className="hidden md:flex flex-col md:flex-row md:ml-auto mt-3 md:mt-0"
id="navbar-collapse"
>
<a
href="#"
className="p-2 lg:px-4 md:mx-2 text-white rounded bg-indigo-600"
>
Home
</a>
<a
href="#"
className="p-2 lg:px-4 md:mx-2 text-gray-600 rounded hover:bg-gray-200 hover:text-gray-700 transition-colors duration-300"
>
About
</a>
<a
href="#"
className="p-2 lg:px-4 md:mx-2 text-gray-600 rounded hover:bg-gray-200 hover:text-gray-700 transition-colors duration-300"
>
Features
</a>
<a
href="#"
className="p-2 lg:px-4 md:mx-2 text-gray-600 rounded hover:bg-gray-200 hover:text-gray-700 transition-colors duration-300"
>
Pricing
</a>
<a
href="#"
className="p-2 lg:px-4 md:mx-2 text-gray-600 rounded hover:bg-gray-200 hover:text-gray-700 transition-colors duration-300"
>
Contact
</a>
<a
href="#"
className="p-2 lg:px-4 md:mx-2 text-indigo-600 text-center border border-transparent rounded hover:bg-indigo-100 hover:text-indigo-700 transition-colors duration-300"
>
Login
</a>
<a
href="#"
className="p-2 lg:px-4 md:mx-2 text-indigo-600 text-center border border-solid border-indigo-600 rounded hover:bg-indigo-600 hover:text-white transition-colors duration-300 mt-1 md:mt-0 md:ml-1"
>
Signup
</a>
</div>
</div>
</nav>
</div>
</>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment