From f0f4e6f23406b4f34b4b4a9de1b443896db9dcb0 Mon Sep 17 00:00:00 2001 From: Lanskikh Date: Wed, 30 Apr 2025 13:05:02 +0500 Subject: [PATCH] completed search page, some chasnges buttons in sequence --- src/components/Compass.tsx | 4 +- src/components/DisclaimerButton.tsx | 4 +- src/components/FullScreenButton.tsx | 10 +-- src/components/PrivacyPolicyButton.tsx | 2 +- src/components/SearchFilters.tsx | 103 +++++++++++++++++++------ src/components/SequenceSlider.tsx | 36 ++++----- src/components/UnitTypesSelect.tsx | 2 +- src/components/icons/SortIcon.tsx | 14 ++++ src/components/ui/Select.tsx | 2 +- src/main.tsx | 2 - src/pages/SearchPage.tsx | 79 ++++++++++++++++--- 11 files changed, 189 insertions(+), 69 deletions(-) create mode 100644 src/components/icons/SortIcon.tsx diff --git a/src/components/Compass.tsx b/src/components/Compass.tsx index 9c2e39b..33f467c 100644 --- a/src/components/Compass.tsx +++ b/src/components/Compass.tsx @@ -6,7 +6,7 @@ interface CompassProps { function Compass({ imgStyle }: CompassProps) { return ( -
+
); diff --git a/src/components/DisclaimerButton.tsx b/src/components/DisclaimerButton.tsx index f66a37e..cbe8c04 100644 --- a/src/components/DisclaimerButton.tsx +++ b/src/components/DisclaimerButton.tsx @@ -8,11 +8,11 @@ export default function BottomButton() { return ( diff --git a/src/components/PrivacyPolicyButton.tsx b/src/components/PrivacyPolicyButton.tsx index 08a2f84..1199371 100644 --- a/src/components/PrivacyPolicyButton.tsx +++ b/src/components/PrivacyPolicyButton.tsx @@ -13,7 +13,7 @@ export default function PrivacyPolicyButton() { onlyIcon onClick={() => setModal()} > - + diff --git a/src/components/SearchFilters.tsx b/src/components/SearchFilters.tsx index b47c70f..c1153f5 100644 --- a/src/components/SearchFilters.tsx +++ b/src/components/SearchFilters.tsx @@ -15,6 +15,7 @@ import Select from "./ui/Select"; import { AnimatePresence, motion } from "motion/react"; import CloseIcon from "./icons/CloseIcon"; import Project from "../types/Project"; +import FiltersIcon from "./icons/FiltersIcon"; export interface Filters { unitTypes: string[]; @@ -206,16 +207,16 @@ function SearchFilters({ <> {inModal && (
)}
{inModal && ( @@ -229,22 +230,38 @@ function SearchFilters({
)} -
-

- Search -

- {project && ( - title === project)!} - /> - )} +
+
+

+ {inModal ? "Filters" : "Search"} +

+
+ {project && ( + title === project)! + } + /> + )} +
+
+
-
{filters && ( <> -
+

Apartment type

-
+
-
+
{inModal ? ( - +
diff --git a/src/components/SequenceSlider.tsx b/src/components/SequenceSlider.tsx index ec4c87e..6a08531 100644 --- a/src/components/SequenceSlider.tsx +++ b/src/components/SequenceSlider.tsx @@ -10,7 +10,6 @@ import Compass from "./Compass"; import { useNavigate } from "react-router"; import InfoIcon from "./icons/InfoIcon"; import FullScreenButton from "./FullScreenButton"; -import BottomButton from "./DisclaimerButton"; import PrivacyPolicyButton from "./PrivacyPolicyButton"; import DisclaimerButton from "./DisclaimerButton"; @@ -167,9 +166,8 @@ function SequenceSlider({ complexName }: SequenceSliderProps) { {imageLoaded === FRAME_COUNT && ( <> -
+

ROVE Home Marasi Drive

- - -
- -
- - -
+ +
+ + +
)} diff --git a/src/components/UnitTypesSelect.tsx b/src/components/UnitTypesSelect.tsx index b858e95..cfb0eb7 100644 --- a/src/components/UnitTypesSelect.tsx +++ b/src/components/UnitTypesSelect.tsx @@ -19,7 +19,7 @@ function UnitTypesSelect({ useEffect(() => onSelect(selectedUnitTypes), [selectedUnitTypes]); return ( -
+
{unitTypes.map((unitType) => (

+ + + ); +} + +export default SortIcon; diff --git a/src/components/ui/Select.tsx b/src/components/ui/Select.tsx index 719d8a1..cccc25e 100644 --- a/src/components/ui/Select.tsx +++ b/src/components/ui/Select.tsx @@ -38,7 +38,7 @@ function Select({ )}