From b021168c7ae4e607aa0597fb5115aa3dbe147c16 Mon Sep 17 00:00:00 2001 From: zojgame Date: Thu, 4 Jul 2024 19:22:02 +0500 Subject: [PATCH] modals --- client/src/components/Button.tsx | 4 +- client/src/components/Logo.tsx | 2 +- .../complexPage/ComplexTopPanel.tsx | 9 ++-- .../MobileApartmentDescription.tsx | 10 ++-- .../SequenceWing/MobileFloorDescription.tsx | 2 +- .../SkygardenSidebar/ActivityCard.tsx | 2 +- .../SkygardenIndoorLayout.tsx | 1 + .../SkygardenOutdoorLayout.tsx | 1 + .../SkygardenSidebar/ZoneSlider.tsx | 26 +++++---- .../modals/mobile/SkygardenModal.tsx | 23 ++++---- .../modals/mobile/WingFloorModal.tsx | 33 ++++++------ client/src/consts/buttonStyles.ts | 2 +- client/src/index.css | 53 ++++++++++--------- client/tailwind.config.js | 24 ++++++++- 14 files changed, 116 insertions(+), 76 deletions(-) diff --git a/client/src/components/Button.tsx b/client/src/components/Button.tsx index d1e27ea..c2a07ab 100644 --- a/client/src/components/Button.tsx +++ b/client/src/components/Button.tsx @@ -43,9 +43,9 @@ const Button = ({ type={type} disabled={disabled} onClick={onClick} - className={`zoom-280 min-w-10 max-h-10 ${rounded} ${ + className={`zoom-280 min-w-[40px] max-h-[40px] ${rounded} ${ icon && !text ? "p-[10px] " : padding - } transition-all duration-300 ease-in-out text-s pointer-events-auto flex gap-1 items-center align-middle h-fit ${backgroundColor} ${textColor} ${border} ${disabledStyle} ${ + } transition-all duration-300 ease-in-out text-[16px] pointer-events-auto flex gap-1 items-center align-middle h-fit ${backgroundColor} ${textColor} ${border} ${disabledStyle} ${ className ? className : "" }`} > diff --git a/client/src/components/Logo.tsx b/client/src/components/Logo.tsx index 5389668..54366d4 100644 --- a/client/src/components/Logo.tsx +++ b/client/src/components/Logo.tsx @@ -14,7 +14,7 @@ const Logo = ({ className = "" }: LogoProps) => { return (
diff --git a/client/src/components/complexPage/ComplexTopPanel.tsx b/client/src/components/complexPage/ComplexTopPanel.tsx index e0a508d..a29496f 100644 --- a/client/src/components/complexPage/ComplexTopPanel.tsx +++ b/client/src/components/complexPage/ComplexTopPanel.tsx @@ -15,7 +15,7 @@ import { MobileModalWrapper } from "../modals/mobile/MobileModalWrapper"; import MasterplanFiltersModal from "../modals/mobile/MasterplanFiltersModal"; const ComplexTopPanel = () => { - const { setModal } = useModal(); + const { setModal, modal } = useModal(); const { onFullscreen, isFullscreen, setIsFullscreen } = useFullScreen(); const { setIsSidebar, isSidebar } = useWingSidebar(); const navigate = useNavigate(); @@ -119,11 +119,14 @@ const ComplexTopPanel = () => {
-

+

ROVE Home Marasi Drive

+

Select а floor

diff --git a/client/src/components/complexWingPage/MobileApartmentDescription.tsx b/client/src/components/complexWingPage/MobileApartmentDescription.tsx index 9a5c0c3..1603123 100644 --- a/client/src/components/complexWingPage/MobileApartmentDescription.tsx +++ b/client/src/components/complexWingPage/MobileApartmentDescription.tsx @@ -58,7 +58,7 @@ const MobileApartmentDescription = ({ {apartment && (

{apartment?.Unit_Type},{" "} @@ -80,16 +80,18 @@ const MobileApartmentDescription = ({

*/} {isVirtualTourAvailiable && (
- +
+ +

3D-tour

)}

-
+
-
+
{images.map((image, index) => (
))} diff --git a/client/src/components/modals/mobile/SkygardenModal.tsx b/client/src/components/modals/mobile/SkygardenModal.tsx index c95de30..f1b7cd1 100644 --- a/client/src/components/modals/mobile/SkygardenModal.tsx +++ b/client/src/components/modals/mobile/SkygardenModal.tsx @@ -47,27 +47,28 @@ const SkygardenModal = () => { return (
-

- Rove Home Marasi Drive -

+

ROVE Home Marasi Drive

Skygarden

- +
+ +
@@ -76,7 +77,7 @@ const SkygardenModal = () => {

22-23 floor

-
+
17 amenties
@@ -85,7 +86,7 @@ const SkygardenModal = () => {
-
+
Indoor Amenties
@@ -99,7 +100,7 @@ const SkygardenModal = () => { /> } />
-
+
Outdoor Amenties
diff --git a/client/src/components/modals/mobile/WingFloorModal.tsx b/client/src/components/modals/mobile/WingFloorModal.tsx index 63eca7e..76ff86c 100644 --- a/client/src/components/modals/mobile/WingFloorModal.tsx +++ b/client/src/components/modals/mobile/WingFloorModal.tsx @@ -115,8 +115,9 @@ const WingFloorModal = ({ } else { const scrollOffsetY = window.scrollY; //detect mouse pos - const y = event.clientY - 65 + scrollOffsetY - 205; - const x = event.clientX - 50; + const y = event.clientY - 65 + scrollOffsetY - 650; + const x = event.clientX - 140; + // const x = event.clientX - 50; setMousePos([x, y]); } } @@ -142,7 +143,7 @@ const WingFloorModal = ({ return ( <>
{isDescVisible && (
)}
@@ -172,10 +173,12 @@ const WingFloorModal = ({ className="bg-[#F3F3F2] h-full p-6 pt-0 flex flex-col gap-6 transition-transform ease-in-out relative" >
- +
+ +
@@ -184,33 +187,33 @@ const WingFloorModal = ({

{wing}

-
+
{floorApartments.length} units
-
{currentFloor?.floor} floor
+
{currentFloor?.floor} floor
-
+
1

Studio flex

-
+
11

Studio

-
+
3

1 Bedroom

-
+
7

2 Bedroom

@@ -221,7 +224,7 @@ const WingFloorModal = ({ {currentFloor?.wing === "West Wing" ? ( currentFloor && currentFloor.floor <= 21 ? ( ) : (