From 5bad67dbb6bb1116e29318a9b00af25b9a197b2a Mon Sep 17 00:00:00 2001 From: zojgame Date: Tue, 2 Jul 2024 14:41:15 +0500 Subject: [PATCH] map page scaling --- client/src/components/ApartmentSidebar.tsx | 8 +- client/src/components/ButtomPanel.tsx | 6 +- client/src/components/Button.tsx | 2 +- client/src/components/Logo.tsx | 2 +- .../aboutComplex/LivingSolutionSlider.tsx | 3 +- .../apartmentPage/ApartmentLayout.tsx | 2 +- .../companyPage/OurValues/Slider.tsx | 3 +- .../complexPage/ComplexTopPanel.tsx | 12 +- .../components/complexPage/SequenceSlider.tsx | 56 +++++--- .../SequenceWing/SequenceWing.tsx | 134 ++++++++++++------ client/src/components/header/Auth/Auth.tsx | 8 +- .../header/Header/DesktopHeader.tsx | 2 +- .../src/components/header/Header/Layout.tsx | 4 +- .../components/header/Header/MobileHeader.tsx | 2 +- client/src/components/header/Location.tsx | 2 +- .../src/components/header/Navbar/Navbar.tsx | 4 +- .../header/Navbar/NavbarDesktop.tsx | 2 +- .../header/Navbar/NavbarTabDesktop.tsx | 4 +- .../components/masterplanPage/TopPanel.tsx | 2 +- .../src/components/masterplanPage/map/Map.tsx | 12 +- .../components/masterplanPage/map/Marker.tsx | 2 +- .../modals/mobile/SkygardenModal.tsx | 2 +- .../modals/mobile/WingFloorModal.tsx | 4 +- .../components/searchPage/SidebarFilters.tsx | 6 +- client/src/consts/markers.ts | 12 +- client/src/index.css | 4 + client/src/pages/AboutComplex.tsx | 4 +- 27 files changed, 191 insertions(+), 113 deletions(-) diff --git a/client/src/components/ApartmentSidebar.tsx b/client/src/components/ApartmentSidebar.tsx index 2dc0491..6773373 100644 --- a/client/src/components/ApartmentSidebar.tsx +++ b/client/src/components/ApartmentSidebar.tsx @@ -18,8 +18,8 @@ const ApartmentSidebar = ({ currentApartment }: ApartmentSidebarProps) => { }; return ( -
-
+
+

View from window

@@ -29,8 +29,8 @@ const ApartmentSidebar = ({ currentApartment }: ApartmentSidebarProps) => { className="w-full h-full object-cover" />
-
-
+
+

Parameters

diff --git a/client/src/components/ButtomPanel.tsx b/client/src/components/ButtomPanel.tsx index 7c6fae0..e42d2a3 100644 --- a/client/src/components/ButtomPanel.tsx +++ b/client/src/components/ButtomPanel.tsx @@ -25,7 +25,11 @@ const ButtomPanel = () => {
- compass + compass
diff --git a/client/src/components/Button.tsx b/client/src/components/Button.tsx index 0820abf..916f2b6 100644 --- a/client/src/components/Button.tsx +++ b/client/src/components/Button.tsx @@ -43,7 +43,7 @@ const Button = ({ type={type} disabled={disabled} onClick={onClick} - className={`min-w-10 max-h-10 ${rounded} ${ + className={`zoom-280 min-w-10 max-h-10 ${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} ${ className ? className : "" diff --git a/client/src/components/Logo.tsx b/client/src/components/Logo.tsx index 425fc18..5389668 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/aboutComplex/LivingSolutionSlider.tsx b/client/src/components/aboutComplex/LivingSolutionSlider.tsx index 9703b32..e9b8b27 100644 --- a/client/src/components/aboutComplex/LivingSolutionSlider.tsx +++ b/client/src/components/aboutComplex/LivingSolutionSlider.tsx @@ -2,11 +2,12 @@ import { useSwipeable } from "react-swipeable"; import { useEffect, useLayoutEffect, useRef, useState } from "react"; import { Image } from "../../types/image"; -import { isMobile } from "react-device-detect"; import Button from "../Button"; import LeftArrowSliderIcon from "../icons/LeftArrowSliderIcon"; import RightArrowSliderIcon from "../icons/RightArrowSliderIcon"; +const isMobile = true; + const images: Image[] = [ { id: "1", src: "/images/aboutCompany/livingSolutionsSlider/1.png" }, { id: "2", src: "/images/aboutCompany/livingSolutionsSlider/2.png" }, diff --git a/client/src/components/apartmentPage/ApartmentLayout.tsx b/client/src/components/apartmentPage/ApartmentLayout.tsx index 8b57bd7..7c97530 100644 --- a/client/src/components/apartmentPage/ApartmentLayout.tsx +++ b/client/src/components/apartmentPage/ApartmentLayout.tsx @@ -26,7 +26,7 @@ const ApartmentLayout = ({ currentApartment }: ApartmentLayoutProps) => { )?.layout; return ( -
+
{ setModal(); }; - const handleOnFiltersClick = () => { - setModal(); - }; + // const handleOnFiltersClick = () => { + // setModal(); + // }; const handleOnMobileFiltersClick = () => { setModal( @@ -61,7 +61,7 @@ const ComplexTopPanel = () => { return ( <> -
+
{ icon={} buttonType="primary" text="Filters" - onClick={handleOnFiltersClick} + onClick={handleOnMobileFiltersClick} />