Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update not found page

Steven89c24415a695
diff --git a/web/src/less/not-found.less b/web/src/less/not-found.less
deleted file mode 100644
index d1722325f..000000000
--- a/web/src/less/not-found.less
+++ /dev/null
@@ -1,18 +0,0 @@
-.page-wrapper.not-found {
- @apply w-full h-full overflow-y-auto overflow-x-hidden bg-zinc-100 dark:bg-zinc-800;
-
- > .page-container {
- @apply relative w-full min-h-full mx-auto flex flex-col justify-center items-center;
-
- > .title-text {
- @apply text-xl sm:text-4xl text-gray-700 dark:text-gray-200;
- }
-
- > .action-button-container {
- > .link-btn {
- @apply block text-gray-600 dark:text-gray-200 dark:border-gray-600 font-mono text-base py-1 border px-3 leading-8 rounded-xl hover:opacity-80 my-3;
- }
- }
- }
-}
-
\ No newline at end of file
diff --git a/web/src/pages/NotFound.tsx b/web/src/pages/NotFound.tsx
index ec6516aa8..03dba4d12 100644
--- a/web/src/pages/NotFound.tsx
+++ b/web/src/pages/NotFound.tsx
@@ -1,19 +1,21 @@
+import { Button } from "@mui/joy";
import { Link } from "react-router-dom";
+import Icon from "@/components/Icon";
import { useTranslate } from "@/utils/i18n";
-import "@/less/not-found.less";
const NotFound = () => {
const t = useTranslate();
return (
- <div className="page-wrapper not-found">
- <div className="page-container">
- <p className="title-text">{t("message.page-not-found")}</p>
- <div className="action-button-container">
- <Link to="/" className="link-btn">
- <span>🏠</span> {t("router.back-to-home")}
- </Link>
- </div>
+ <div className="w-full h-full overflow-y-auto overflow-x-hidden bg-zinc-100 dark:bg-zinc-800">
+ <div className="w-full h-full flex flex-col justify-center items-center">
+ <Icon.Meh strokeWidth={1} className="w-20 h-auto opacity-80 dark:text-gray-300" />
+ <p className="mt-4 text-5xl font-mono dark:text-gray-300">404</p>
+ <Link className="mt-4" to="/">
+ <Button variant="outlined" startDecorator={<Icon.Home className="w-4 h-auto" />}>
+ {t("router.back-to-home")}
+ </Button>
+ </Link>
</div>
</div>
);