mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
fixing navbar
Adding Svg files and fixing appearance of navbar to look like the design pages
This commit is contained in:
1 parent
5a20899808
commit
c496b08d52
13 files changed
+674
-867
No files matched your search
@@ -4,6 +4,7 @@ import { useSearchParams } from "next/navigation";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useSession } from "next-auth/react";
|
||||
import Link from "next/link";
|
||||
import NavBar from "@/components/NavBar";
|
||||
|
||||
export default function LeaderboardPage() {
|
||||
const [teams, setTeams] = useState([]);
|
||||
@@ -160,31 +161,7 @@ export default function LeaderboardPage() {
|
||||
|
||||
{/* Only show navigation bar when the hunt hasn't ended */}
|
||||
{!huntJustEnded && (
|
||||
<div className="nav-bar">
|
||||
<Link href="/map" className="nav-item">
|
||||
<div className="nav-icon">🗺️</div>
|
||||
<div className="nav-label">Map</div>
|
||||
</Link>
|
||||
<Link href="/stats" className="nav-item">
|
||||
<div className="nav-icon">📊</div>
|
||||
<div className="nav-label">Stats</div>
|
||||
</Link>
|
||||
<Link
|
||||
href={
|
||||
session?.user?.teamId
|
||||
? `/${session.user.teamId}`
|
||||
: "/team-selection"
|
||||
}
|
||||
className="nav-item"
|
||||
>
|
||||
<div className="nav-icon">👥</div>
|
||||
<div className="nav-label">Team</div>
|
||||
</Link>
|
||||
<Link href="/leaderboard" className="nav-item active">
|
||||
<div className="nav-icon">🏆</div>
|
||||
<div className="nav-label">Leaderboard</div>
|
||||
</Link>
|
||||
</div>
|
||||
<NavBar activeLink="leaderboard" teamData={{ id: session?.user?.teamId }} />
|
||||
)}
|
||||
|
||||
{/* Add a "back to home" button when the hunt has ended */}
|
||||
|
||||
Reference in new issue
Block a user