From 53e81fb712b457b4f6fe68137830546af9b8d006 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 5 Nov 2025 14:28:53 +0330 Subject: [PATCH] create cusromer --- src/components/CustomerStats.tsx | 2 +- src/index.css | 20 ++++ src/pages/customers/Create.tsx | 160 +++++++++++++++++++++++++++++++ src/router/Main.tsx | 2 + 4 files changed, 183 insertions(+), 1 deletion(-) create mode 100644 src/pages/customers/Create.tsx diff --git a/src/components/CustomerStats.tsx b/src/components/CustomerStats.tsx index 6f0850e..a4ec6de 100644 --- a/src/components/CustomerStats.tsx +++ b/src/components/CustomerStats.tsx @@ -11,7 +11,7 @@ const CustomerStats: FC = ({ walletBalance = '۲۴۰.۰۰۰ تومان' }) => { return ( -
+
diff --git a/src/index.css b/src/index.css index 8074abb..25a0ebc 100644 --- a/src/index.css +++ b/src/index.css @@ -47,3 +47,23 @@ textarea::placeholder { tbody tr:nth-child(odd) { background: rgba(233, 235, 244, 0.2) !important; } + +.rmdp-input { + min-height: 40px; + background-color: white; + border-radius: 12px !important; + border: 1px solid oklch(0.922 0 0) !important; + font-size: 12px !important; + width: 100% !important; + margin: 0px; + padding-right: 16px !important; + transition: background-color 0.3s ease, border-color 0.3s ease; +} +.readOny .rmdp-input { + background-color: #f5f5f5 !important; + border: none !important; +} + +.rmdp-container { + width: 100%; +} diff --git a/src/pages/customers/Create.tsx b/src/pages/customers/Create.tsx new file mode 100644 index 0000000..208171e --- /dev/null +++ b/src/pages/customers/Create.tsx @@ -0,0 +1,160 @@ +import Button from '@/components/Button' +import Input from '@/components/Input' +import Select from '@/components/Select' +import DatePicker from '@/components/DatePicker' +import Textarea from '@/components/Textarea' +import CustomerStats from '@/components/CustomerStats' +import { TickCircle, Wallet2, TicketDiscount } from 'iconsax-react' +import { type FC } from 'react' + +const CreateCustomer: FC = () => { + return ( +
+
+

افزودن مشتری

+ +
+ +
+
+
+
+ اطلاعات مشتری +
+ +
+ + +
+ +
+ + +
+ +
+
+ { }} + /> +
+ { }} + /> +
+
+ +
+
+ آدرس +
+ +
+ +
+ +
+ +
+ +
+