From 40a3465ed9cd734ae23c55902399497d07e30ba4 Mon Sep 17 00:00:00 2001 From: Lanskikh Date: Tue, 20 Jan 2026 13:34:23 +0500 Subject: [PATCH] fix tailwind --- src/components/AboutDubaiMarina.tsx | 6 +-- src/components/AboutMarasiDrive.tsx | 31 ++++++++--- .../MarasiDriveInteriorsSliderMobile.tsx | 53 +++++++++++-------- src/components/MarasiDriveMapMobile.tsx | 9 +++- .../MarasiDriveNeighboursSliderMobile.tsx | 52 +++++++++++------- src/components/Slider.tsx | 4 +- src/components/SliderMobile.tsx | 52 +++++++++--------- src/components/UnitTypesSelect.tsx | 2 +- src/components/ui/Badge.tsx | 2 +- src/components/ui/Button.tsx | 12 ++--- src/components/ui/MultiRangeSlider.tsx | 4 +- src/pages/SearchPage.tsx | 2 +- 12 files changed, 136 insertions(+), 93 deletions(-) diff --git a/src/components/AboutDubaiMarina.tsx b/src/components/AboutDubaiMarina.tsx index bca9164..1a0fdd4 100644 --- a/src/components/AboutDubaiMarina.tsx +++ b/src/components/AboutDubaiMarina.tsx @@ -93,7 +93,7 @@ function AboutDubaiMarina() { {`Own the last slice of Dubai Marina, ROVE Style`} -

+

{`With an extended playlist of life-enhancing amenities, Rove Home is a complete ecosystem that has everything you'll ever need.`} @@ -108,9 +108,9 @@ function AboutDubaiMarina() { zIndex: 1, }} > -

+
-
+

{`Own the last slice of Dubai Marina, ROVE Style`} diff --git a/src/components/AboutMarasiDrive.tsx b/src/components/AboutMarasiDrive.tsx index 37dc7cc..8064675 100644 --- a/src/components/AboutMarasiDrive.tsx +++ b/src/components/AboutMarasiDrive.tsx @@ -98,19 +98,32 @@ function AboutMarasiDrive() { destination for artful inspiration and cleverly activated spaces.`}

-
+
{marasiDriveFeatures.map(({ image, name }) => ( -
+
{name} - {name} + + {name} +
))}
- +
@@ -165,7 +178,7 @@ function AboutMarasiDrive() {

- +
@@ -232,10 +245,10 @@ function AboutMarasiDrive() { />
- +
-
+
-
Download our brochures
+
+ Download our brochures +
(null) +function MarasiDriveInteriorsSliderMobile() { + const interiorsRef = useRef(null); - - return( - <> -
- {marasiDriveInspiredInteriors.map(({ image, name }) => ( -
- {name} -
{name}
-
- ))} + return ( + <> +
+ {marasiDriveInspiredInteriors.map(({ image, name }) => ( +
+ {name} +
+ {name}
- - - - ) +
+ ))} +
+ + + ); } -export default MarasiDriveInteriorsSliderMobile; \ No newline at end of file +export default MarasiDriveInteriorsSliderMobile; diff --git a/src/components/MarasiDriveMapMobile.tsx b/src/components/MarasiDriveMapMobile.tsx index e786c7a..da697af 100644 --- a/src/components/MarasiDriveMapMobile.tsx +++ b/src/components/MarasiDriveMapMobile.tsx @@ -6,7 +6,7 @@ function MarasiDriveMapMobile() { const containerRef = useRef(null); return ( -
+
))}
- +
); } diff --git a/src/components/MarasiDriveNeighboursSliderMobile.tsx b/src/components/MarasiDriveNeighboursSliderMobile.tsx index 06933b3..339b44e 100644 --- a/src/components/MarasiDriveNeighboursSliderMobile.tsx +++ b/src/components/MarasiDriveNeighboursSliderMobile.tsx @@ -2,27 +2,39 @@ import { marasiDriveNeighbours } from "../data/aboutMarasiDrive"; import { useRef } from "react"; import CustomScrollBar from "./ui/ScrollBar"; -function MarasiDriveNeighboursSliderMobile(){ - const neighboursRef = useRef(null); +function MarasiDriveNeighboursSliderMobile() { + const neighboursRef = useRef(null); - - return( - <> -
- {marasiDriveNeighbours.map(({ image, name }) => ( -
- {name} -
{name}
-
- ))} + return ( + <> +
+ {marasiDriveNeighbours.map(({ image, name }) => ( +
+ {name} +
+ {name}
- - - ) +
+ ))} +
+ + + ); } -export default MarasiDriveNeighboursSliderMobile \ No newline at end of file +export default MarasiDriveNeighboursSliderMobile; diff --git a/src/components/Slider.tsx b/src/components/Slider.tsx index 2de476c..afcb45b 100644 --- a/src/components/Slider.tsx +++ b/src/components/Slider.tsx @@ -96,7 +96,7 @@ function Slider({ onlyIcon onClick={handlePreviousSlide} disabled={currentSlide === 0} - className="disabled:!text-opacity-40 disabled:!bg-[#fff] disabled:!bg-opacity-80 disabled:!cursor-default hover:bg-[#F3F3F2] transition-all duration-200" + className="disabled:!bg-[#fff] disabled:!bg-opacity-80 disabled:!cursor-default hover:bg-[#F3F3F2] transition-all duration-200" > @@ -112,7 +112,7 @@ function Slider({ disabled={ currentSlide === dubaiMarinaSlider[categoryName].length - 1 } - className="disabled:!text-opacity-40 disabled:!bg-[#fff] disabled:!bg-opacity-80 disabled:!cursor-default hover:bg-[#F3F3F2] transition-all duration-200" + className="disabled:!bg-[#fff] disabled:!bg-opacity-80 disabled:!cursor-default hover:bg-[#F3F3F2] transition-all duration-200" > diff --git a/src/components/SliderMobile.tsx b/src/components/SliderMobile.tsx index 00662c7..0803fe8 100644 --- a/src/components/SliderMobile.tsx +++ b/src/components/SliderMobile.tsx @@ -1,11 +1,11 @@ -import { motion, useScroll, useTransform } from 'framer-motion'; -import Slider from './Slider'; -import { useRef } from 'react'; +import { motion, useScroll, useTransform } from "framer-motion"; +import Slider from "./Slider"; +import { useRef } from "react"; function SliderMobile() { const sliderMobileRef = useRef(null); const { scrollYProgress } = useScroll({ target: sliderMobileRef, - offset: ['start start', 'end end'], + offset: ["start start", "end end"], }); const opacityFirstSlide = useTransform( @@ -27,78 +27,78 @@ function SliderMobile() { return (
-
+
Wellness
-

+

Unlock your inner zen in our wellness playground

- +
-
+
Fitness
-

+

Cancel all your membership. Your new home has it all

- +
-
+
Community
-

+

Connect. Engage. Thrive.

- +
-
+
Convenience
-

+

Your smart living hub

- +
-
+
); } diff --git a/src/components/UnitTypesSelect.tsx b/src/components/UnitTypesSelect.tsx index 40d2af7..28a85df 100644 --- a/src/components/UnitTypesSelect.tsx +++ b/src/components/UnitTypesSelect.tsx @@ -35,7 +35,7 @@ function UnitTypesSelect({ "2xl:px-[1.389vw] 2xl:py-[0.833vw] px-5 py-3 2xl:rounded-[2.778vw] rounded-[40px] 2xl:ring-[0.069vw] ring-1 transition-[box-shadow] cursor-pointer text-s", selectedUnitTypes.includes(unitType) ? "ring-[#00BED7]" - : "ring-[#E2E2DC] text-opacity-70" + : "ring-[#E2E2DC] text-[#0D1922]/70" )} > {formattedUnitTypes.get(unitType)} diff --git a/src/components/ui/Badge.tsx b/src/components/ui/Badge.tsx index 2540a19..b45db42 100644 --- a/src/components/ui/Badge.tsx +++ b/src/components/ui/Badge.tsx @@ -12,7 +12,7 @@ function Badge({ variant, text, className }: BadgeProps) { className={clsx( "2xl:rounded-[0.278vw] rounded-lg 2xl:px-[0.556vw] 2xl:py-[0.139vw] px-2 py-1 w-fit", variant === "primary" && "bg-[#00BED7] text-white", - variant === "secondary" && "bg-[#F3F3F2] text-opacity-70", + variant === "secondary" && "bg-[#F3F3F2] text-[#0D1922]/70", className )} > diff --git a/src/components/ui/Button.tsx b/src/components/ui/Button.tsx index c9daaef..99e9e59 100644 --- a/src/components/ui/Button.tsx +++ b/src/components/ui/Button.tsx @@ -26,7 +26,7 @@ function Button({ ref={ref} {...props} className={clsx( - "transition-all flex items-center justify-center disabled:text-opacity-40 disabled:bg-[#0D1922] disabled:bg-opacity-[8%] disabled:!cursor-default select-none text-btn-s", + "transition-all flex items-center justify-center disabled:text-[#0D1922]/40 disabled:bg-[#0D1922] disabled:bg-opacity-[8%] disabled:!cursor-default select-none text-btn-s", variant !== "link" && [ size === "large" && (onlyIcon @@ -34,8 +34,8 @@ function Button({ : "2xl:px-[1.111vw] 2xl:py-[0.833vw] 2xl:gap-[0.556vw] px-4 py-3 gap-2"), size === "medium" && (onlyIcon - ? "2xl:p-[0.694vw] p-2.5" - : "2xl:px-[0.972vw] 2xl:py-[0.694vw] 2xl:gap-[0.278vw] px-3 py-2.5 gap-1"), + ? "2xl:p-[0.694vw] p-[10px]" + : "2xl:px-[0.972vw] 2xl:py-[0.694vw] 2xl:gap-[0.278vw] px-3 py-[10px] gap-1"), size === "small" && (onlyIcon ? "2xl:p-[0.556vw] p-2" @@ -43,13 +43,13 @@ function Button({ ], variant === "link" && "text-sm text-black/50 w-fit", variant === "cta" && - "bg-[#00BED7] hover:!bg-[#0AB3C9] text-white disabled:!bg-[#0D1922] disabled:!bg-opacity-[8%] disabled:text-opacity-40", + "bg-[#00BED7] hover:!bg-[#0AB3C9] text-white disabled:!bg-[#0D1922] disabled:!bg-opacity-[8%] disabled:text-[#0D1922]/40", variant === "primary" && "bg-[#F3F3F2] active:!bg-[#00BED7] active:!text-[#FFFFFF] hover:!bg-[#E2E2DC] disabled:!bg-[#0D1922] disabled:!bg-opacity-[8%] disabled:!text-[#0D1922]/40", variant === "secondary" && - "bg-white hover:!bg-white hover:bg-opacity-80 text-opacity-70 disabled:!bg-[#0D1922] disabled:!bg-opacity-[8%] disabled:text-[#0D1922]/40", + "bg-white hover:!bg-white hover:bg-opacity-80 text-[#0D1922]/70 disabled:!bg-[#0D1922] disabled:!bg-opacity-[8%] disabled:text-[#0D1922]/40", variant === "tertiary" && - "text-xs leading-[135%] text-opacity-70 !px-0 hover:!text-opacity-100 disabled:!bg-transparent", + "text-xs leading-[135%] text-[#0D1922]/70 !px-0 hover:!text-[#0D1922] disabled:!bg-transparent", roundedFull ? "rounded-full" : "2xl:rounded-[0.833vw] rounded-xl", className )} diff --git a/src/components/ui/MultiRangeSlider.tsx b/src/components/ui/MultiRangeSlider.tsx index 6bfcbb1..e38888f 100644 --- a/src/components/ui/MultiRangeSlider.tsx +++ b/src/components/ui/MultiRangeSlider.tsx @@ -99,10 +99,10 @@ function MultiRangeSlider({

{label}

-

+

{Intl.NumberFormat("en").format(Math.ceil(value[0]))}

-

+

{Intl.NumberFormat("en").format(Math.ceil(value[1]))}

diff --git a/src/pages/SearchPage.tsx b/src/pages/SearchPage.tsx index 680aba0..6206774 100644 --- a/src/pages/SearchPage.tsx +++ b/src/pages/SearchPage.tsx @@ -323,7 +323,7 @@ function SearchPage() { window.location.href = "/search"; }} > - + Reset