diff --git a/apps/web/app/dashboard/page.tsx b/apps/web/app/dashboard/page.tsx index 3d3134e..aa93bb8 100644 --- a/apps/web/app/dashboard/page.tsx +++ b/apps/web/app/dashboard/page.tsx @@ -1,271 +1,1134 @@ "use client"; +import { useState } from "react"; import { useRouter } from "next/navigation"; import { signOut } from "@/lib/auth-client"; import { trpc } from "@/lib/trpc"; +import { PIN_CATEGORIES, getPinColor } from "@/data/pin-categories"; +import { useTheme } from "@/lib/ThemeContext"; export default function Dashboard() { - const router = useRouter(); - const { data } = trpc.user.getCurrent.useQuery(); - - const goToMap = () => router.push("/"); - const goToAdmin = () => router.push("/admin"); - - const handleSignOut = async () => { - await signOut(); - router.refresh(); - }; - - return ( -
-
- -
- {/* HEADER SECTION */} -
-
- - - - -
- -

- Welcome, {data?.name ? data.name.toUpperCase() : "OPERATOR"}! -

-

You made it to the protected area. 🎉

-
- - {/* ACTIONS PORTAL */} -
- {/* Primary Action: Go to Map */} - - - {/* Secondary Action: Admin */} - -
- - {/* FOOTER & SIGN OUT */} -
- -
-
- - -
- ); -} + + ); +} \ No newline at end of file