diff --git a/public/images/not-found.svg b/public/images/not-found.svg new file mode 100644 index 0000000..8735cf8 --- /dev/null +++ b/public/images/not-found.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index b00205e..67cc090 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -10,6 +10,7 @@ "register_welfare_services": "ثبت نام اعضای خدمات رفاهی", "pending": "درحال اجرا...", "user_navy": "ناوگان", + "page_not_found": "صفحه مورد نظر یافت نشد", "header": { "open_profile": "پروفایل", "edit_profile": "ویرایش پروفایل", @@ -28,7 +29,8 @@ "title_login_navy_page": "ورود اعضای ناوگان", "title_login_welfare_services_page": "ورود اعضای خدمات رفاهی", "title_register_navy_page": "ثبت نام اعضای ناوگان", - "title_register_welfare_services_page": "ثبت نام اعضای خدمات رفاهی" + "title_register_welfare_services_page": "ثبت نام اعضای خدمات رفاهی", + "title_not_found": "یافت نشد" }, "sidebar": { "dashboard": "داشبورد", diff --git a/src/components/not-found.jsx b/src/components/not-found.jsx new file mode 100644 index 0000000..c699d84 --- /dev/null +++ b/src/components/not-found.jsx @@ -0,0 +1,38 @@ +import CenterLayout from "@/layouts/CenterLayout"; +import FullPageLayout from "@/layouts/FullPageLayout"; +import { Box, Button, Typography } from "@mui/material"; +import { NextLinkComposed } from "@/core/components/LinkRouting"; +import { useTranslations } from "next-intl"; +import Image from "next/image"; + +const NotFoundComponent = () => { + const t = useTranslations(); + return ( + + + + not found image + + + صفحه ای با این عنوان یافت نشد + + + + + ); +}; + +export default NotFoundComponent; diff --git a/src/pages/404.jsx b/src/pages/404.jsx new file mode 100644 index 0000000..9b75470 --- /dev/null +++ b/src/pages/404.jsx @@ -0,0 +1,13 @@ +import NotFoundComponent from "@/components/not-found"; +import Head from "next/head"; + +export default function NotFound() { + return ( + <> + + یافت نشد + + + + ); +}