diff --git a/app/root/page.tsx b/app/root/page.tsx index af0559b..8302452 100644 --- a/app/root/page.tsx +++ b/app/root/page.tsx @@ -2,13 +2,9 @@ import { ExternalLink, FolderKanban, ImageIcon, - LayoutDashboard, LockKeyhole, - LogOut, ShieldAlert, Shapes, - SwatchBook, - ArrowLeft, } from "lucide-react"; import Link from "next/link"; import { redirect } from "next/navigation"; @@ -16,8 +12,7 @@ import { redirect } from "next/navigation"; import { Container } from "@/components/layout/container"; import { MotionFade } from "@/components/motion-fade"; import { DashboardCard } from "@/components/dashboard/dashboard-card"; -import { DashboardLayout } from "@/components/dashboard/dashboard-layout"; -import { ThemeToggle } from "@/components/theme-toggle"; +import { RootDashboardShell } from "@/components/root/root-dashboard-shell"; import { Badge, type BadgeProps } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; @@ -43,13 +38,11 @@ import { setAdminSessionCookie, } from "@/lib/admin-auth"; import { getMaintenanceMode } from "@/lib/app-config"; -import { getLocalizedPath } from "@/lib/locale"; import { getAdminMediaAssets } from "@/lib/media"; import { getAdminPortfolioCategories, getAdminPortfolioProjects, } from "@/lib/portfolio"; -import { getRootNavigation } from "@/lib/root-navigation"; type RootPageProps = { searchParams?: { @@ -220,7 +213,6 @@ export default async function RootPage({ searchParams }: RootPageProps) { getAdminMediaAssets(), ]); const publishedProjects = projects.filter((project) => project.isPublished).length; - const rootNavigation = getRootNavigation(copy, "overview"); const authHealthy = authConfigured && basicConfigured; const sectionRows: Array<{ label: string; @@ -265,52 +257,18 @@ export default async function RootPage({ searchParams }: RootPageProps) { ]; return ( - - - - - } + - {maintenanceEnabled ? ( - - ) : null} - - -
- -
- + ) : null } >
@@ -433,6 +391,6 @@ export default async function RootPage({ searchParams }: RootPageProps) {
-
+ ); }