Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@dagrejs/dagre": "^3.0.0",
"@xyflow/react": "^12.10.2",
"lucide-react": "^1.22.0",
"nvm": "^0.0.4",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"react-router-dom": "^7.15.1",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
import { NavLink } from 'react-router-dom';
import { Network } from 'lucide-react';
import { CalendarDays } from 'lucide-react';

// Import Network, CalendarDays

export default function Header() {
const linkClass = ({ isActive }: { isActive: boolean }) =>
isActive
? 'text-sm font-medium text-red-600'
: 'text-sm text-gray-600 hover:text-gray-900';
? 'flex items-center gap-1.5 text-sm font-medium text-red-600'
: 'flex items-center gap-1.5 text-sm text-gray-600 hover:text-gray-900';

return (
<header className="flex h-14 flex-none items-center gap-6 border-b border-gray-200 bg-white px-6">
<span className="font-semibold text-gray-900">
Carleton CS Course Graph
</span>
<nav className="flex gap-4">
<nav className="flex items-center gap-6">
<NavLink to="/explorer" className={linkClass}>
Explorer
<Network size={20} /> Explorer
</NavLink>
<NavLink to="/planner" className={linkClass}>
Planner
<CalendarDays size={20} /> Planner
</NavLink>
</nav>
</header>
Expand Down
Loading