'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { useState, useEffect } from 'react'; import { Button } from '@workspace/ui/components/button'; import { Badge } from '@workspace/ui/components/badge'; import { Home, Briefcase, User, FileText, Bell, Search, Menu, X, LogOut, Settings, GraduationCap, TrendingUp, BookOpen } from 'lucide-react'; import { signOutAction } from './actions'; import Footer from '@/components/footer'; const navLinks = [ { href: '/', label: 'Home', icon: Home, description: 'Discover opportunities' }, { href: '/applications', label: 'My Applications', icon: FileText, description: 'Track your applications' }, { href: '/profile', label: 'Profile', icon: User, description: 'Manage your profile' }, ]; export default function MainLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const [isScrolled, setIsScrolled] = useState(false); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); const [isProfileDropdownOpen, setIsProfileDropdownOpen] = useState(false); const [isSearchOpen, setIsSearchOpen] = useState(false); // Handle scroll effect useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 10); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); // Close mobile menu when route changes useEffect(() => { setIsMobileMenuOpen(false); }, [pathname]); const handleSearchClick = () => { // Navigate to jobs page with search focus window.location.href = '/jobs'; }; const handleNotificationClick = () => { // Navigate to applications page to see status updates window.location.href = '/applications'; }; return (
{/* Modern Student Navbar */}
{/* Logo Section */}
Placement Portal Student Portal
{/* Desktop Navigation */} {/* Right Section - Search, Notifications, Profile */}
{/* Search Button */} {/* Notifications */} {/* Profile Dropdown */}
{/* Profile Dropdown Menu */} {isProfileDropdownOpen && (

Student Name

student@college.edu

)}
{/* Mobile Menu Button */}
{/* Mobile Navigation Menu */} {isMobileMenuOpen && (
)}
{/* Main Content */}
{children}
{/* Footer */}