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/dashboard/loan-follow-up/index.jsx b/src/components/dashboard/loan-follow-up/index.jsx index e69147e..e05fa20 100644 --- a/src/components/dashboard/loan-follow-up/index.jsx +++ b/src/components/dashboard/loan-follow-up/index.jsx @@ -1,16 +1,177 @@ import CenterLayout from "@/layouts/CenterLayout"; import DashboardLayouts from "@/layouts/dashboardLayouts"; import useUser from "@/lib/app/hooks/useUser"; +import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; +import { + Avatar, + Box, + Card, + CardActions, + CardContent, + CardHeader, + Collapse, + Grid, + IconButton, + Stack, + Typography, +} from "@mui/material"; +import { styled } from "@mui/material/styles"; import { useTranslations } from "next-intl"; -import React from "react"; +import { useState } from "react"; + +const ExpandMore = styled((props) => { + const { expand, ...other } = props; + return ; +})(({ theme, expand }) => ({ + transform: !expand ? "rotate(0deg)" : "rotate(180deg)", + marginLeft: "auto", + transition: theme.transitions.create("transform", { + duration: theme.transitions.duration.shortest, + }), +})); const DashboardLoanFollowUpComponent = () => { const t = useTranslations(); const { token } = useUser(); + + const [expanded, setExpanded] = useState(false); + + const handleExpandClick = () => { + setExpanded(!expanded); + }; + return ( -

چه کشکی چه پشمی

+ + + + + + } + title="اسم اقاهه" + subheader="تاریخ اگه خواستیم" + /> + + + متن تست + + + + + + + + + + اطلاعات تکمیلی: + پارت دوم متن تست + پارت سه همون قبلی + در ادامه باید بگم که... + درپایان همینه که هست + + + + + + + + } + title="اسم اقاهه" + subheader="تاریخ اگه خواستیم" + /> + + + متن تست + + + + + + + + + + اطلاعات تکمیلی: + پارت دوم متن تست + پارت سه همون قبلی + در ادامه باید بگم که... + درپایان همینه که هست + + + + + + + + } + title="اسم اقاهه" + subheader="تاریخ اگه خواستیم" + /> + + + متن تست + + + + + + + + + + اطلاعات تکمیلی: + پارت دوم متن تست + پارت سه همون قبلی + در ادامه باید بگم که... + درپایان همینه که هست + + + + + +
); 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 ( + <> + + یافت نشد + + + + ); +}