diff --git a/frontend/src/app/(dashboard)/layout.tsx b/frontend/src/app/(dashboard)/layout.tsx index b55b130d..32153347 100644 --- a/frontend/src/app/(dashboard)/layout.tsx +++ b/frontend/src/app/(dashboard)/layout.tsx @@ -6,16 +6,7 @@ import { SidebarInset, SidebarProvider, } from "@/components/ui/sidebar" -import { - AlertDialog, - AlertDialogAction, - AlertDialogContent, - AlertDialogDescription, - AlertDialogFooter, - AlertDialogHeader, - AlertDialogTitle, -} from "@/components/ui/alert-dialog" -import { Clock } from "lucide-react" +import { MaintenanceAlert } from "@/components/maintenance-alert" interface DashboardLayoutProps { children: React.ReactNode @@ -40,24 +31,11 @@ export default function DashboardLayout({ - - - -
- -
- High Demand Notice - - Due to exceptionally high demand, our service is currently experiencing slower response times. - We recommend returning tomorrow when our systems will be operating at normal capacity. - Thank you for your understanding. - -
- - I'll Return Tomorrow - -
-
+ ) } \ No newline at end of file diff --git a/frontend/src/components/maintenance-alert.tsx b/frontend/src/components/maintenance-alert.tsx new file mode 100644 index 00000000..cf58fe73 --- /dev/null +++ b/frontend/src/components/maintenance-alert.tsx @@ -0,0 +1,94 @@ +"use client" + +import { AlertDialog, AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "@/components/ui/alert-dialog" +import { Clock, Github, X } from "lucide-react" +import Link from "next/link" +import { AnimatePresence, motion } from "motion/react" +import { Button } from "@/components/ui/button" + +interface MaintenanceAlertProps { + open: boolean + onOpenChange: (open: boolean) => void + closeable?: boolean +} + +export function MaintenanceAlert({ open, onOpenChange, closeable = true }: MaintenanceAlertProps) { + return ( + + + + {/* Background pattern */} +
+
+
+ + {closeable && ( + + )} + + + +
+
+ +
+
+
+ + + + High Demand Notice + + + + + + Due to exceptionally high demand, our service is currently experiencing slower response times. + We recommend returning tomorrow when our systems will be operating at normal capacity. + Thank you for your understanding. We will notify you via email once the service is fully operational again. + + +
+ + + + + Explore Self-Hosted Version + + + + + + ) +} \ No newline at end of file