Skip to content

Open-source status page, incident response and uptime monitoring

1.9 KB
Raw Blame
import { Incident, Monitor, Overview, StatusPage } from "@openstatus/icons";
import Link from "next/link";

import { WorkspaceSwitcher } from "@/components/nav/workspace-switcher";

const quickLinks = [
  { name: "Overview", href: "/overview", icon: Overview },
  { name: "Incidents", href: "/incidents", icon: Incident },
  { name: "Status Pages", href: "/status-pages", icon: StatusPage },
  { name: "Monitors", href: "/monitors", icon: Monitor },
];

export default function NotFound() {
  return (
    <main className="flex min-h-screen w-full flex-col items-center justify-center p-4 md:p-8">
      <div className="border-border bg-sidebar mx-auto w-full max-w-md rounded-lg border">
        <div className="flex flex-col gap-6 p-6 sm:p-8">
          <div className="flex flex-col gap-1 text-center">
            <p className="text-destructive font-mono">404 Not found</p>
            <h2 className="font-cal text-foreground text-2xl">
              Page not found
            </h2>
            <p className="text-muted-foreground text-sm">
              This resource doesn&apos;t exist or you might not be in the right
              workspace.
            </p>
          </div>
          <WorkspaceSwitcher
            className="border-border bg-background rounded-md border"
            side="bottom"
          />
          <div className="grid gap-2 sm:grid-cols-2">
            {quickLinks.map((link) => (
              <Link
                key={link.href}
                href={link.href}
                className="border-border bg-background font-commit-mono text-muted-foreground hover:bg-accent hover:text-accent-foreground flex items-center gap-2 rounded-md border px-4 py-2 text-sm transition-colors"
              >
                <link.icon className="h-4 w-4" />
                {link.name}
              </Link>
            ))}
          </div>
        </div>
      </div>
    </main>
  );
}