Files
bdd6f1ed-6fea-4c0b-8ab9-4cf…/src/components/Header.js
2026-01-19 17:58:34 +02:00

76 lines
3.0 KiB
JavaScript

import React, { useState } from 'react';
import { Menu, X, ChevronDown, Github } from 'lucide-react';
const Header = () => {
const [isMenuOpen, setIsMenuOpen] = useState(false);
return (
<header className="fixed top-0 left-0 right-0 z-50 bg-black/90 backdrop-blur-sm">
<div className="container-custom">
<div className="flex items-center justify-between h-16">
{/* Logo */}
<div className="flex items-center">
<a href="https://enterprise.nestjs.com/" className="flex items-center">
<img
src="https://enterprise.nestjs.com/logo-small-gradient.76616405.svg"
alt="NestJS - A progressive Node.js framework"
className="h-8 w-auto"
/>
</a>
</div>
{/* Desktop Navigation */}
<nav className="hidden md:flex items-center space-x-8">
<a href="#" className="text-white hover:text-nest-red transition-colors">
OUR WEBSITE
</a>
<a href="#" className="text-white hover:text-nest-red transition-colors">
COURSES
</a>
<div className="relative group">
<button className="flex items-center text-white hover:text-nest-red transition-colors">
<span className="bg-nest-red text-white text-xs px-2 py-1 rounded mr-2">NEW</span>
RESOURCES
<ChevronDown className="ml-1 w-4 h-4" />
</button>
</div>
<a href="https://github.com/nestjs/nest" className="text-white hover:text-nest-red transition-colors">
<Github className="w-5 h-5" />
</a>
<a href="https://twitter.com/nestframework" className="text-white hover:text-nest-red transition-colors">
<X className="w-5 h-5" />
</a>
</nav>
{/* Mobile menu button */}
<button
className="md:hidden text-white"
onClick={() => setIsMenuOpen(!isMenuOpen)}
>
{isMenuOpen ? <X className="w-6 h-6" /> : <Menu className="w-6 h-6" />}
</button>
</div>
{/* Mobile Navigation */}
{isMenuOpen && (
<div className="md:hidden bg-black/95 backdrop-blur-sm border-t border-gray-800">
<div className="px-2 pt-2 pb-3 space-y-1">
<a href="#" className="block px-3 py-2 text-white hover:text-nest-red transition-colors">
OUR WEBSITE
</a>
<a href="#" className="block px-3 py-2 text-white hover:text-nest-red transition-colors">
COURSES
</a>
<a href="#" className="block px-3 py-2 text-white hover:text-nest-red transition-colors">
<span className="bg-nest-red text-white text-xs px-2 py-1 rounded mr-2">NEW</span>
RESOURCES
</a>
</div>
</div>
)}
</div>
</header>
);
};
export default Header;