diff --git a/app/dashboard/not-found.js b/app/dashboard/not-found.js new file mode 100644 index 0000000..dede76b --- /dev/null +++ b/app/dashboard/not-found.js @@ -0,0 +1,12 @@ +import Layout from '@/components/layout' +import NotFoundPage from '@/components/notFound' + +function NotFound() { + return ( + + + + ) +} + +export default NotFound \ No newline at end of file diff --git a/app/not-found.js b/app/not-found.js new file mode 100644 index 0000000..dede76b --- /dev/null +++ b/app/not-found.js @@ -0,0 +1,12 @@ +import Layout from '@/components/layout' +import NotFoundPage from '@/components/notFound' + +function NotFound() { + return ( + + + + ) +} + +export default NotFound \ No newline at end of file diff --git a/components/dashboard/userAccount/ContentTabs.js b/components/dashboard/userAccount/ContentTabs.js index edc0294..1f03491 100644 --- a/components/dashboard/userAccount/ContentTabs.js +++ b/components/dashboard/userAccount/ContentTabs.js @@ -12,6 +12,7 @@ import Transactions from "./tabs/transactions"; import IsTurnsDetails from "./tabs/turns/isTurnsDetails"; import ArrowRightD from "@/components/icons/ArrowRightD"; import { Button } from "@mui/material"; +import NotfoundDashboard from "./NotfoundDashboard"; const listTab = ['حساب کاربری', 'نوبت های من', 'تراکنش های من', 'نظرات من', 'پیام ها']; @@ -23,7 +24,7 @@ function ContentTabs({ user, value, setValue, isOpenSide, setIsOpenSide }) { useEffect(() => { setTimeout(() => { - setLoading(true); + setLoading(false); }, 2000); }, []); @@ -33,7 +34,8 @@ function ContentTabs({ user, value, setValue, isOpenSide, setIsOpenSide }) { , , , - + , + ]; return ( diff --git a/components/dashboard/userAccount/NotfoundDashboard.js b/components/dashboard/userAccount/NotfoundDashboard.js new file mode 100644 index 0000000..62370a1 --- /dev/null +++ b/components/dashboard/userAccount/NotfoundDashboard.js @@ -0,0 +1,35 @@ +import NumberNotFound from "@/components/icons/NumberNotFound" +import { Button } from "@mui/material" +import Image from "next/image" + +function NotfoundDashboard() { + return ( +
+
+
+ +
+ notfound-cover +

صفحه مورد نظر یافت نشد!

+

متاسفانه صفحه ای که به دنبال آن هستید وجود ندارد یا پاک شده است.

+ +
+
+ ) +} + +export default NotfoundDashboard \ No newline at end of file diff --git a/components/dashboard/userAccount/UserAccount.js b/components/dashboard/userAccount/UserAccount.js index 1404da4..6f9c24a 100644 --- a/components/dashboard/userAccount/UserAccount.js +++ b/components/dashboard/userAccount/UserAccount.js @@ -1,17 +1,24 @@ import ContentTabs from "./ContentTabs" import Head from "./Head" +import NotfoundDashboard from "./NotfoundDashboard" function UserAccountPage({ user, value, setValue, isOpenSide, setIsOpenSide }) { return (
- - + {value === 5 ? ( + + ) : ( + <> + + + + )}
) } diff --git a/components/icons/NotFoundCover.js b/components/icons/NotFoundCover.js new file mode 100644 index 0000000..c0a4846 --- /dev/null +++ b/components/icons/NotFoundCover.js @@ -0,0 +1,36 @@ +function NotFoundCover() { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) +} + +export default NotFoundCover \ No newline at end of file diff --git a/components/icons/NumberNotFound.js b/components/icons/NumberNotFound.js new file mode 100644 index 0000000..0d173bf --- /dev/null +++ b/components/icons/NumberNotFound.js @@ -0,0 +1,11 @@ +function NumberNotFound() { + return ( + + + + + + ) +} + +export default NumberNotFound \ No newline at end of file diff --git a/components/notFound/index.js b/components/notFound/index.js new file mode 100644 index 0000000..5bd9e01 --- /dev/null +++ b/components/notFound/index.js @@ -0,0 +1,47 @@ +import Image from 'next/image' +import React from 'react' +import NumberNotFound from '../icons/NumberNotFound' +import { Button } from '@mui/material' + +function NotFoundPage() { + return ( +
+
+
+ +
+ notfound-cover +

صفحه مورد نظر یافت نشد!

+

متاسفانه صفحه ای که به دنبال آن هستید وجود ندارد یا پاک شده است.

+ +
+ notfound-cover +
+ ) +} + +export default NotFoundPage \ No newline at end of file diff --git a/public/assets/images/notfound-cover.png b/public/assets/images/notfound-cover.png new file mode 100644 index 0000000..761728b Binary files /dev/null and b/public/assets/images/notfound-cover.png differ