fumadocs-ui
Version:
The Radix UI version of Fumadocs UI
42 lines (41 loc) • 1.4 kB
JavaScript
"use client";
import { cn } from "../../utils/cn.js";
import { buttonVariants } from "../../components/ui/button.js";
import Link from "fumadocs-core/link";
import { jsx, jsxs } from "react/jsx-runtime";
import { HomeIcon } from "lucide-react";
import { useTranslations } from "@fuma-translate/react";
//#region src/layouts/home/not-found.tsx
/**
* the default not found page content, please make your own if you want to customize it.
*/
function DefaultNotFound() {
const t = useTranslations({ note: "404 page" });
return /* @__PURE__ */ jsxs("div", {
className: "flex flex-col px-8 justify-center flex-1 text-center items-center gap-4",
children: [
/* @__PURE__ */ jsx("h1", {
className: "text-6xl font-bold text-fd-muted-foreground",
children: "404"
}),
/* @__PURE__ */ jsx("h2", {
className: "text-2xl font-semibold",
children: t("Page Not Found")
}),
/* @__PURE__ */ jsx("p", {
className: "text-fd-muted-foreground max-w-md",
children: t("The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.")
}),
/* @__PURE__ */ jsxs(Link, {
href: "/",
className: cn(buttonVariants({
className: "mt-4 gap-1.5",
variant: "primary"
})),
children: [/* @__PURE__ */ jsx(HomeIcon, { className: "size-4" }), t("Back to Home")]
})
]
});
}
//#endregion
export { DefaultNotFound };