From a13a6b81b08d6b788ae30f37ce56d0b50085f0a7 Mon Sep 17 00:00:00 2001 From: RizqiSyahrendra Date: Fri, 18 Apr 2025 08:41:36 +0700 Subject: [PATCH] fix: responsive contact form position --- src/app/page.tsx | 5 ++ src/components/ContactFormBox.tsx | 2 +- src/components/ContactFormSection.tsx | 67 +++++++++++++++++++++++++++ src/components/Hero.tsx | 16 +++---- 4 files changed, 80 insertions(+), 10 deletions(-) create mode 100644 src/components/ContactFormSection.tsx diff --git a/src/app/page.tsx b/src/app/page.tsx index de68daa..7747a35 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,3 +1,4 @@ +import ContactFormSection from "@/components/ContactFormSection"; import GoogleReviewBox from "@/components/GoogleReviewBox"; import Hero from "@/components/Hero"; import Link from "next/link"; @@ -454,6 +455,10 @@ export default function Home() { + +
+ +
); } diff --git a/src/components/ContactFormBox.tsx b/src/components/ContactFormBox.tsx index fc953f3..9fbc71b 100644 --- a/src/components/ContactFormBox.tsx +++ b/src/components/ContactFormBox.tsx @@ -1,6 +1,6 @@ export default function ContactFormBox() { return ( -
+
diff --git a/src/components/ContactFormSection.tsx b/src/components/ContactFormSection.tsx new file mode 100644 index 0000000..fb2e3eb --- /dev/null +++ b/src/components/ContactFormSection.tsx @@ -0,0 +1,67 @@ +export default function ContactFormSection() { + return ( +
+
+ +
+
+
+

Get in Touch with Us Today!

+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+ ); +} diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index 53e1e89..a19bca4 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -6,14 +6,12 @@ import { Autoplay } from "swiper/modules"; export default function Hero() { return ( -
+
console.log("slide change")} - onSwiper={(swiper) => console.log(swiper)} autoplay={{ delay: 4000 }} loop > @@ -21,9 +19,9 @@ export default function Hero() {
-
-
Real Estate, Refined
-
Where Southern Charm Meets Boutique Real Estate
+
+
Real Estate, Refined
+
Where Southern Charm Meets Boutique Real Estate
@@ -33,9 +31,9 @@ export default function Hero() {
-
-
Your Vision, Our Expertise
-
Discover a Smarter Way to Buy & Sell
+
+
Your Vision, Our Expertise
+
Discover a Smarter Way to Buy & Sell