Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
chore: improve not-found (#556)
Maximilian Kaskea69302bcb051
diff --git a/apps/web/src/app/not-found.tsx b/apps/web/src/app/not-found.tsxindex f235b35ec..e66d15bae 100644--- a/apps/web/src/app/not-found.tsx+++ b/apps/web/src/app/not-found.tsx@@ -1,25 +1,44 @@+"use client";+import Link from "next/link";+import { useRouter } from "next/navigation";import { Button } from "@openstatus/ui";-import { Header } from "@/components/dashboard/header";import { Shell } from "@/components/dashboard/shell";export default function NotFound() {+ const router = useRouter();+return (<main className="flex min-h-screen w-full flex-col space-y-6 p-4 md:p-8"><div className="flex flex-1 flex-col items-center justify-center gap-8"><div className="mx-auto max-w-xl text-center"><Shell>- <div className="flex flex-col gap-4 p-12">- <Header- title="404"- description="Sorry, this page could not be found."- />- {/* could think of redirecting the user to somewhere else! */}- <Button variant="link" asChild>- <Link href="/">Homepage</Link>- </Button>+ <div className="flex flex-col gap-4 p-6 sm:p-12">+ <div className="flex flex-col gap-2">+ <p className="text-muted-foreground font-medium sm:text-lg">+ 404 Page not found+ </p>+ <h2 className="font-cal text-2xl sm:text-3xl">+ Oops, something went wrong.+ </h2>+ <p className="text-muted-foreground text-sm sm:text-base">+ The page you are looking for doesn't exist.+ </p>+ </div>+ <div className="flex flex-col items-center justify-center gap-4 sm:flex-row">+ <Button+ variant="link"+ size="lg"+ onClick={() => void router.back()}+ >+ Go Back+ </Button>+ <Button size="lg" asChild>+ <Link href="/">Home</Link>+ </Button>+ </div></div></Shell></div>