mirror of
https://github.com/docmost/docmost.git
synced 2026-08-27 08:47:06 +08:00
27 lines
919 B
TypeScript
27 lines
919 B
TypeScript
import { Title, Text, Button, Container, Group } from "@mantine/core";
|
|
import classes from "./error-404.module.css";
|
|
import { Link } from "react-router-dom";
|
|
import { useTranslation } from "react-i18next";
|
|
import { DocumentTitle } from "@/components/ui/document-title.tsx";
|
|
|
|
export function Error404() {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<>
|
|
<DocumentTitle title={t("404 page not found")} />
|
|
<Container className={classes.root}>
|
|
<Title className={classes.title}>{t("404 page not found")}</Title>
|
|
<Text c="dimmed" size="lg" ta="center" className={classes.description}>
|
|
{t("Sorry, we can't find the page you are looking for.")}
|
|
</Text>
|
|
<Group justify="center">
|
|
<Button component={Link} to={"/home"} variant="subtle" size="md">
|
|
{t("Take me back to homepage")}
|
|
</Button>
|
|
</Group>
|
|
</Container>
|
|
</>
|
|
);
|
|
}
|