'use client' import React from "react" import { useState } from 'react' import { ChevronDown, Menu, X } from 'lucide-react' import Link from 'next/link' import { ThemeToggle } from '@/components/theme-toggle' export function Header() { const [isMenuOpen, setIsMenuOpen] = useState(false) const [isMoreOpen, setIsMoreOpen] = useState(false) const handleProjectsClick = (e: React.MouseEvent) => { e.preventDefault() const element = document.getElementById('featured-projects') if (element) { element.scrollIntoView({ behavior: 'smooth' }) setIsMenuOpen(false) } } const menuItems = [ { label: 'Home', href: '/' }, { label: 'Projects', href: '#featured-projects', onClick: handleProjectsClick }, { label: 'Research', href: '/research' }, { label: 'Blogs', href: '/blogs' }, { label: 'Teams', href: '/teams' }, ] const moreItems = [ { label: 'Events', href: '/events' }, { label: 'People Review', href: '/reviews' }, { label: 'Contact Us', href: '/contact' }, { label: 'Join Community', href: '/join' }, { label: 'Educational Content', href: '/education' }, ] return (
{/* Top Bar */}
{/* Logo and Brand */}
I

Ignite

Open Source Community

{/* Desktop Navigation */} {/* Mobile Actions */}
{/* Mobile Navigation */} {isMenuOpen && ( )}
) }