From a8966f8174d9350f26a48a97d60eb6284fbbccd5 Mon Sep 17 00:00:00 2001 From: tayloraj10 Date: Tue, 14 Jul 2026 19:51:40 -0400 Subject: [PATCH 1/3] Add authenticated layout and dashboard redesign Applies the shared theming and layout components to the authenticated shell and rebuilds the dashboard page, including the pending-reviews summary card. --- app/routes/authenticated/_layout.tsx | 82 ++++++--- app/routes/authenticated/dashboard.tsx | 239 ++++++++++++++++++++++++- 2 files changed, 284 insertions(+), 37 deletions(-) diff --git a/app/routes/authenticated/_layout.tsx b/app/routes/authenticated/_layout.tsx index a0983a8..f2b77f5 100644 --- a/app/routes/authenticated/_layout.tsx +++ b/app/routes/authenticated/_layout.tsx @@ -1,42 +1,68 @@ +import { Dashboard, Logout, RateReview } from "@mui/icons-material"; import { Link, NavLink, Outlet } from "react-router"; - import phlasklogo from "~/assets/PHLASK_v2.svg"; +import { ThemeToggle } from "~/components/ThemeToggle"; +import { WaveDivider } from "~/components/WaveDivider"; export const action = () => {}; +const navLinkClass = ({ isActive }: { isActive: boolean }) => + `flex items-center gap-2.5 rounded-xl px-4 py-2.5 text-sm font-medium transition-colors ${ + isActive + ? "bg-brand-50 text-brand-700 dark:bg-navy-800 dark:text-brand-300" + : "text-navy-600 hover:bg-brand-50 dark:text-brand-100/80 dark:hover:bg-navy-800" + }`; + export default function DashboardLayout() { return ( -
-