diff --git a/.env b/.env index 90eaa48..ed9a3f8 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ -VITE_API_URL=http://192.168.1.224:4002 -# VITE_API_URL=http://194.26.138.94:4002 \ No newline at end of file +# VITE_API_URL=http://192.168.1.224:4002 +# VITE_API_URL=http://194.26.138.94:4002 +VITE_API_URL=http://localhost:4002 \ No newline at end of file diff --git a/src/components/AboutMarasiDrive.tsx b/src/components/AboutMarasiDrive.tsx index b54b8da..fb0424f 100644 --- a/src/components/AboutMarasiDrive.tsx +++ b/src/components/AboutMarasiDrive.tsx @@ -1,7 +1,6 @@ import { marasiDriveFeatures, marasiDriveDescriptionBadges, - marasiDriveExpandable, marasiDriveMapCards, } from "../data/aboutMarasiDrive"; import MarariDriveNeighboursSlider from "./MarasiDriveNeighboursSlider"; @@ -82,7 +81,7 @@ function AboutMarasiDrive() {
-

+

{`What makes a Rove Home?`}

@@ -106,8 +105,9 @@ function AboutMarasiDrive() {
-

- Expandable Living Solutions +

+ {`Expandable living + solutions`}

{`ORI introduces a revolutionary solution to apartment living, @@ -119,16 +119,28 @@ function AboutMarasiDrive() { ))}

-
- {marasiDriveExpandable.map((image) => ( -
- Expandable Living Solutions -
- ))} +
+
+ +
+
+ +
+
+ +
diff --git a/src/components/MarasiDriveInteriorsSlider.tsx b/src/components/MarasiDriveInteriorsSlider.tsx index b6522d1..686d8ac 100644 --- a/src/components/MarasiDriveInteriorsSlider.tsx +++ b/src/components/MarasiDriveInteriorsSlider.tsx @@ -77,14 +77,14 @@ function MarasiDriveInteriorsSlider() { diff --git a/src/components/UnitCard.tsx b/src/components/UnitCard.tsx index 55ffadc..60162aa 100644 --- a/src/components/UnitCard.tsx +++ b/src/components/UnitCard.tsx @@ -25,6 +25,7 @@ function UnitCard({ unit }: { unit: Unit }) { return ( diff --git a/src/components/UnitTypeItem.tsx b/src/components/UnitTypeItem.tsx index 15f634f..2b93401 100644 --- a/src/components/UnitTypeItem.tsx +++ b/src/components/UnitTypeItem.tsx @@ -21,6 +21,14 @@ function UnitTypeItem({ texts, area, }: UnitTypeItemProps) { + function handleShare() { + // navigator.clipboard.writeText(window.location.href); + navigator.share({ + title: title, + url: window.location.href, + }); + } + return (
@@ -33,7 +41,7 @@ function UnitTypeItem({ {area}

-
- - +
diff --git a/src/pages/ApartmentItem.tsx b/src/components/_ApartmentItem.tsx similarity index 95% rename from src/pages/ApartmentItem.tsx rename to src/components/_ApartmentItem.tsx index a634ea4..b5aaaf7 100644 --- a/src/pages/ApartmentItem.tsx +++ b/src/components/_ApartmentItem.tsx @@ -1,7 +1,7 @@ -import HeartIcon from "../components/icons/HeartIcon"; -import PlayIcon from "../components/icons/PlayIcon"; -import ShareIcon from "../components/icons/ShareIcon"; -import Button from "../components/ui/Button"; +import HeartIcon from "./icons/HeartIcon"; +import PlayIcon from "./icons/PlayIcon"; +import ShareIcon from "./icons/ShareIcon"; +import Button from "./ui/Button"; interface ApartmentItemProps { title: string; diff --git a/src/components/ui/BrochureButton.tsx b/src/components/ui/BrochureButton.tsx index 8b6d051..fe5e58a 100644 --- a/src/components/ui/BrochureButton.tsx +++ b/src/components/ui/BrochureButton.tsx @@ -20,9 +20,9 @@ export default function BrochureButton({ return ( diff --git a/src/pages/UnitPage.tsx b/src/pages/UnitPage.tsx index 7459863..bef6e7d 100644 --- a/src/pages/UnitPage.tsx +++ b/src/pages/UnitPage.tsx @@ -41,6 +41,13 @@ function UnitPage() { if (!unit) return null; + function handleShare() { + navigator.share({ + title: `${unit!.unitType} - ${unit!.unitNo}`, + url: window.location.href, + }); + } + return (
@@ -76,7 +83,7 @@ function UnitPage() { )} - -