From 89c24415a6950dd037288d0d725690301e2780e9 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 23 Sep 2023 20:39:01 +0800 Subject: [PATCH] chore: update not found page --- web/src/less/not-found.less | 18 ------------------ web/src/pages/NotFound.tsx | 20 +++++++++++--------- 2 files changed, 11 insertions(+), 27 deletions(-) delete mode 100644 web/src/less/not-found.less 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 ( -
-
-

{t("message.page-not-found")}

-
- - 🏠 {t("router.back-to-home")} - -
+
+
+ +

404

+ + +
);