From 727555e70f906ec8522215678990c546ad323fa4 Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Sun, 16 Mar 2025 18:20:34 +0000 Subject: [PATCH] Fixed issue with map not loading, making SVG dynamically altered depending on the number of clues. then linking that to the clue pages Grey = cant click Red = current Green = complete blue = skipped? --- app/(main)/[teamId]/page.js | 24 +- app/(main)/map/map.module.css | 4 +- app/(main)/map/page.js | 533 +++++++++++++++++-------------- app/(main)/team/[teamId]/page.js | 8 +- clue_hunt.db | Bin 86016 -> 86016 bytes components/NavBar.js | 90 ++++++ public/images/map.svg | 80 ++--- utils/map-populate.js | 216 +++++++++++++ 8 files changed, 645 insertions(+), 310 deletions(-) create mode 100644 utils/map-populate.js diff --git a/app/(main)/[teamId]/page.js b/app/(main)/[teamId]/page.js index b6b1e7b..7af59a3 100644 --- a/app/(main)/[teamId]/page.js +++ b/app/(main)/[teamId]/page.js @@ -4,6 +4,7 @@ import { useSession } from "next-auth/react"; import { useRouter } from "next/navigation"; import Link from "next/link"; import { use } from "react"; // Add this import for React.use() +import NavBar from "@/components/NavBar"; export default function TeamPage({ params }) { const { status, data: session } = useSession(); @@ -276,27 +277,7 @@ export default function TeamPage({ params }) { {/* Replace the outdated navbar with the correct one */} -
- -
πŸ—ΊοΈ
-
Map
- - -
πŸ“Š
-
Stats
- - -
πŸ‘₯
-
Team
- - -
πŸ†
-
Leaderboard
- -
+