Add src/components/navbar/NavbarStyleApple/NavbarStyleApple.js
This commit is contained in:
68
src/components/navbar/NavbarStyleApple/NavbarStyleApple.js
Normal file
68
src/components/navbar/NavbarStyleApple/NavbarStyleApple.js
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Menu, X } from 'lucide-react';
|
||||||
|
|
||||||
|
function NavbarStyleApple() {
|
||||||
|
const [isOpen, setIsOpen] = React.useState(false);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<nav className="bg-white/80 backdrop-blur-md border-b border-gray-200 sticky top-0 z-50">
|
||||||
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
|
<div className="flex justify-between h-16">
|
||||||
|
<div className="flex items-center">
|
||||||
|
<img
|
||||||
|
className="h-8 w-8"
|
||||||
|
src="/images/logo-small-gradient.0ed287ce-1768917245367.svg"
|
||||||
|
alt="Logo"
|
||||||
|
/>
|
||||||
|
<span className="ml-2 text-xl font-semibold text-gray-900">Brand</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="hidden md:flex items-center space-x-8">
|
||||||
|
<a href="#" className="text-gray-900 hover:text-gray-700 px-3 py-2 text-sm font-medium">
|
||||||
|
Home
|
||||||
|
</a>
|
||||||
|
<a href="#" className="text-gray-900 hover:text-gray-700 px-3 py-2 text-sm font-medium">
|
||||||
|
Features
|
||||||
|
</a>
|
||||||
|
<a href="#" className="text-gray-900 hover:text-gray-700 px-3 py-2 text-sm font-medium">
|
||||||
|
About
|
||||||
|
</a>
|
||||||
|
<a href="#" className="text-gray-900 hover:text-gray-700 px-3 py-2 text-sm font-medium">
|
||||||
|
Contact
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="md:hidden flex items-center">
|
||||||
|
<button
|
||||||
|
onClick={() => setIsOpen(!isOpen)}
|
||||||
|
className="text-gray-900 hover:text-gray-700"
|
||||||
|
>
|
||||||
|
{isOpen ? <X size={24} /> : <Menu size={24} />}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{isOpen && (
|
||||||
|
<div className="md:hidden">
|
||||||
|
<div className="px-2 pt-2 pb-3 space-y-1 bg-white border-t border-gray-200">
|
||||||
|
<a href="#" className="block px-3 py-2 text-base font-medium text-gray-900 hover:text-gray-700">
|
||||||
|
Home
|
||||||
|
</a>
|
||||||
|
<a href="#" className="block px-3 py-2 text-base font-medium text-gray-900 hover:text-gray-700">
|
||||||
|
Features
|
||||||
|
</a>
|
||||||
|
<a href="#" className="block px-3 py-2 text-base font-medium text-gray-900 hover:text-gray-700">
|
||||||
|
About
|
||||||
|
</a>
|
||||||
|
<a href="#" className="block px-3 py-2 text-base font-medium text-gray-900 hover:text-gray-700">
|
||||||
|
Contact
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</nav>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default NavbarStyleApple;
|
||||||
Reference in New Issue
Block a user