diff --git a/src/components/Textarea.tsx b/src/components/Textarea.tsx new file mode 100644 index 0000000..0e738a7 --- /dev/null +++ b/src/components/Textarea.tsx @@ -0,0 +1,39 @@ +import type { FC, InputHTMLAttributes } from 'react' +import Error from './Error' +import { clx } from '../helpers/utils' + +type Props = { + label?: string, + error_text?: string +} & InputHTMLAttributes + +const Textarea: FC = (props: Props) => { + return ( +
+ { + props.label && + + } + + + { + props.error_text && + + } + +
+ ) +} + +export default Textarea \ No newline at end of file diff --git a/src/config/Paths.tsx b/src/config/Paths.tsx index add54a6..73b8431 100644 --- a/src/config/Paths.tsx +++ b/src/config/Paths.tsx @@ -13,6 +13,9 @@ export const Paths = { list: '/features/list', create: '/features/create' }, + service: { + print: '/service/print' + }, home: '/home', myOrders: '/my-orders', proformaInvoice: '/proforma-invoice', diff --git a/src/pages/service/PrintService.tsx b/src/pages/service/PrintService.tsx new file mode 100644 index 0000000..10fa2b0 --- /dev/null +++ b/src/pages/service/PrintService.tsx @@ -0,0 +1,171 @@ +import Button from '@/components/Button' +import Input from '@/components/Input' +import Select from '@/components/Select' +import Textarea from '@/components/Textarea' +import { COLORS } from '@/constants/colors' +import { Printer, TickSquare } from 'iconsax-react' +import { type FC } from 'react' + +const PrintService: FC = () => { + return ( +
+ {/* Header Section */} +
+

خدمات چاپ

+
+ + +
+
+ +
+ {/* Left Sidebar */} + + + {/* Right Content */} +
+ {/* Order Details Card */} +
+

جزئیات سفارش

+ +
+ { }} + seprator + /> + +
+ +
+ { }} + /> + +
+ +
+ { }} + /> +
+ +