menu: UI enhancements in desktop sizes

- add product dialog
- enhance product page layout for desktop size
This commit is contained in:
2025-10-11 20:34:22 +03:00
parent c4d8c3f883
commit cbc64b6e38
13 changed files with 456 additions and 189 deletions

View File

@@ -0,0 +1,3 @@
.productModal{
width: 80vw;
}

View File

@@ -0,0 +1,34 @@
import { Modal } from "antd";
import ProductDetailPage from "pages/product/page";
import styles from "./ProductPreviewDialog.module.css";
interface ProductPreviewDialogProps {
isOpen: boolean;
onClose: () => void;
}
export function ProductPreviewDialog({
isOpen,
onClose,
}: ProductPreviewDialogProps) {
// const { isRTL } = useAppSelector((state) => state.locale);
// const { themeName } = useAppSelector((state) => state.theme);
return (
<Modal
open={isOpen}
onCancel={onClose}
footer={null}
width="auto"
centered
className={styles.productModal}
height={600}
style={{
width: "80vw",
minWidth: "80vw",
}}
>
<ProductDetailPage />
</Modal>
);
}

View File

@@ -0,0 +1 @@
export { ProductPreviewDialog } from "./ProductPreviewDialog";