Changeset 636f86c for src/components
- Timestamp:
- 09/25/25 16:30:46 (12 months ago)
- Branches:
- master
- Children:
- 6b8332f
- Parents:
- 875f7d6
- File:
-
- 1 edited
-
src/components/navbar.tsx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/components/navbar.tsx
r875f7d6 r636f86c 9 9 import { faBars, faTimes, faGraduationCap } from '@fortawesome/free-solid-svg-icons'; 10 10 import { useState } from 'react'; 11 import Link from 'next/link'; 11 12 12 13 const Navbar = () => { … … 18 19 19 20 const menuItems = [ 20 { icon: faUser, label: 'Профил' },21 { icon: faBookmark, label: 'Семестри' },22 { icon: faBook, label: 'Предмети' },23 { icon: faPenToSquare, label: 'Пријави' },24 { icon: faListCheck, label: 'Положени' },25 { icon: faFilePdf, label: 'Документи' }21 { icon: faUser, label: 'Профил', href: '/profile' }, 22 { icon: faBookmark, label: 'Семестри', href: '/semesters' }, 23 { icon: faBook, label: 'Предмети', href: '/subjects' }, 24 { icon: faPenToSquare, label: 'Пријави', href: '/applications' }, 25 { icon: faListCheck, label: 'Положени', href: '/exams' }, 26 { icon: faFilePdf, label: 'Документи', href: '/documents' } 26 27 ]; 27 28 … … 31 32 <nav className="hidden md:flex flex-row gap-2 justify-evenly bg-primary text-white p-7 rounded-xl my-5 text-xl"> 32 33 {menuItems.map((item, index) => ( 33 <div key={index} className="group flex flex-row items-center gap-2 px-3 py-2 rounded-lg cursor-pointer transition-all duration-300 hover:bg-white hover:bg-opacity-20 hover:scale-105 hover:shadow-lg hover:text-primary"> 34 <FontAwesomeIcon icon={item.icon} className="transition-transform duration-300 group-hover:rotate-12" /> 35 <span>{item.label}</span> 36 </div> 34 <Link key={index} href={item.href}> 35 <div className="group flex flex-row items-center gap-2 px-3 py-2 rounded-lg cursor-pointer transition-all duration-300 hover:bg-white hover:bg-opacity-20 hover:scale-105 hover:shadow-lg hover:text-primary"> 36 <FontAwesomeIcon icon={item.icon} className="transition-transform duration-300 group-hover:rotate-12" /> 37 <span>{item.label}</span> 38 </div> 39 </Link> 37 40 ))} 38 41 </nav> … … 65 68 <div className="px-4 pb-4 space-y-2"> 66 69 {menuItems.map((item, index) => ( 67 <div key={index} className="group flex flex-row items-center gap-3 px-3 py-3 rounded-lg cursor-pointer transition-all duration-300 hover:bg-white hover:bg-opacity-20 hover:text-primary"> 68 <FontAwesomeIcon icon={item.icon} className="transition-transform duration-300 group-hover:rotate-12" /> 69 <span className="text-lg">{item.label}</span> 70 </div> 70 <Link key={index} href={item.href}> 71 <div className="group flex flex-row items-center gap-3 px-3 py-3 rounded-lg cursor-pointer transition-all duration-300 hover:bg-white hover:bg-opacity-20 hover:text-primary"> 72 <FontAwesomeIcon icon={item.icon} className="transition-transform duration-300 group-hover:rotate-12" /> 73 <span className="text-lg">{item.label}</span> 74 </div> 75 </Link> 71 76 ))} 72 77 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
