From ad523d848f7b52e5449cfee64f98f364a6b15fe5 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Tue, 16 Jun 2026 14:05:57 +0330 Subject: [PATCH] create project --- src/config/Pages.ts | 1 + src/langs/fa.json | 13 +- src/pages/taskmanager/project/Create.tsx | 52 +++++ .../components/CreateProjectSidebar.tsx | 177 ++++++++++++++++++ src/router/Main.tsx | 2 + 5 files changed, 244 insertions(+), 1 deletion(-) create mode 100644 src/pages/taskmanager/project/Create.tsx create mode 100644 src/pages/taskmanager/project/components/CreateProjectSidebar.tsx diff --git a/src/config/Pages.ts b/src/config/Pages.ts index 3ec35cf..a74d3ba 100644 --- a/src/config/Pages.ts +++ b/src/config/Pages.ts @@ -169,5 +169,6 @@ export const Pages = { taskmanager: { workspace: "/taskmanager/workspace/", createWorkspace: "/workspace/create", + createProject: "/project/create", }, }; diff --git a/src/langs/fa.json b/src/langs/fa.json index 100e697..b742227 100644 --- a/src/langs/fa.json +++ b/src/langs/fa.json @@ -976,6 +976,17 @@ "choose_color": "انتخاب رنگ دلخواه", "users": "کاربران", "select_user": "انتخاب کاربر", - "no_users_added": "هنوز کاربری اضافه نکردی" + "no_users_added": "هنوز کاربری اضافه نکردی", + "new_project": "افزودن پروژه", + "submit_project": "ثبت پروژه", + "project_info": "اطلاعات پروژه", + "project_name": "نام پروژه", + "project_start_date": "تاریخ شروع پروژه", + "employer_name": "نام کارفرما", + "project_status": "وضعیت فضای کار", + "background": "پس زمینه", + "background_image": "تصویر پس زمینه", + "upload_background": "تصویر مورد نظر را دراپ کنید", + "select_date": "انتخاب تاریخ" } } diff --git a/src/pages/taskmanager/project/Create.tsx b/src/pages/taskmanager/project/Create.tsx new file mode 100644 index 0000000..5f23b1c --- /dev/null +++ b/src/pages/taskmanager/project/Create.tsx @@ -0,0 +1,52 @@ +import { TickCircle } from "iconsax-react"; +import { useTranslation } from "react-i18next"; +import Button from "../../../components/Button"; +import DatePickerComponent from "../../../components/DatePicker"; +import Input from "../../../components/Input"; +import Textarea from "../../../components/Textarea"; +import CreateProjectSidebar from "./components/CreateProjectSidebar"; + +const CreateProject = () => { + const { t } = useTranslation("global"); + + return ( +
+
+
{t("taskmanager.new_project")}
+
+ +
+
+ +
+
+
+
{t("taskmanager.project_info")}
+ +
+ +
+ +
+ undefined} /> + +
+ +
+