diff --git a/src/app/page.tsx b/src/app/page.tsx index 542b044..28bdbc8 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,7 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; -import { useEffect, useState } from "react"; +import { useState } from "react"; import AboutMetric from '@/components/sections/about/AboutMetric'; import ContactCenter from '@/components/sections/contact/ContactCenter'; import FaqDouble from '@/components/sections/faq/FaqDouble'; @@ -16,10 +16,7 @@ import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCar import { Building2, MapPin, ShieldCheck, Sparkles, Users, Zap, UserCheck, FileCheck, BarChart3, Star } from "lucide-react"; export default function LandingPage() { - const [isMounted, setIsMounted] = useState(false); - useEffect(() => { - setIsMounted(true); - }, []); + const [isMounted] = useState(true); return (
@@ -66,7 +61,7 @@ export default function LandingPage() { mediaAnimation="slide-up" rating={5} ratingText="Trusted by 10,000+ happy families" - tagIcon={isMounted ? Sparkles : undefined} + tagIcon={Sparkles} />
@@ -75,10 +70,10 @@ export default function LandingPage() { useInvertedBackground={false} title="Driving Trust in Indian Real Estate" metrics={[ - { icon: isMounted ? Building2 : Building2, label: "Properties", value: "15,000+" }, - { icon: isMounted ? MapPin : MapPin, label: "Cities", value: "500+" }, - { icon: isMounted ? ShieldCheck : ShieldCheck, label: "Verified", value: "100%" }, - { icon: isMounted ? Users : Users, label: "Happy Clients", value: "25k+" }, + { id: "m1", icon: Building2, label: "Properties", value: "15,000+" }, + { id: "m2", icon: MapPin, label: "Cities", value: "500+" }, + { id: "m3", icon: ShieldCheck, label: "Verified", value: "100%" }, + { id: "m4", icon: Users, label: "Happy Clients", value: "25k+" }, ]} metricsAnimation="slide-up" /> @@ -90,16 +85,16 @@ export default function LandingPage() { useInvertedBackground={false} features={[ { - title: "AI Matchmaker", description: "Personalized recommendations based on your lifestyle and preferences.", imageSrc: "http://img.b2bpic.net/free-photo/modern-smartphone-with-live-abstract-wallpaper-coming-out-screen_23-2151033580.jpg", buttonIcon: isMounted ? Zap : Zap, + title: "AI Matchmaker", description: "Personalized recommendations based on your lifestyle and preferences.", imageSrc: "http://img.b2bpic.net/free-photo/modern-smartphone-with-live-abstract-wallpaper-coming-out-screen_23-2151033580.jpg", buttonIcon: Zap, }, { - title: "Expert Guidance", description: "Access to top-rated agents and builders for every transaction.", imageSrc: "http://img.b2bpic.net/free-photo/tall-indian-businessman-with-glasses-near-car-black-suit_496169-2933.jpg", buttonIcon: isMounted ? UserCheck : UserCheck, + title: "Expert Guidance", description: "Access to top-rated agents and builders for every transaction.", imageSrc: "http://img.b2bpic.net/free-photo/tall-indian-businessman-with-glasses-near-car-black-suit_496169-2933.jpg", buttonIcon: UserCheck, }, { - title: "Verified Plans", description: "Interactive floor plans and virtual tours of all your favorite homes.", imageSrc: "http://img.b2bpic.net/free-photo/3d-rendering-cartoon-house_23-2150188298.jpg", buttonIcon: isMounted ? FileCheck : FileCheck, + title: "Verified Plans", description: "Interactive floor plans and virtual tours of all your favorite homes.", imageSrc: "http://img.b2bpic.net/free-photo/3d-rendering-cartoon-house_23-2150188298.jpg", buttonIcon: FileCheck, }, { - title: "Price Insights", description: "AI-powered market trends and ROI predictions at your fingertips.", imageSrc: "http://img.b2bpic.net/free-photo/3d-cartoon-pin-location_23-2151642231.jpg", buttonIcon: isMounted ? BarChart3 : BarChart3, + title: "Price Insights", description: "AI-powered market trends and ROI predictions at your fingertips.", imageSrc: "http://img.b2bpic.net/free-photo/3d-cartoon-pin-location_23-2151642231.jpg", buttonIcon: BarChart3, }, ]} title="Smart Features for Better Decisions" @@ -153,11 +148,11 @@ export default function LandingPage() { textboxLayout="split" useInvertedBackground={false} testimonials={[ - { id: "1", name: "Ananya P.", handle: "@ananyap", testimonial: "Found my dream home in Bengaluru within a week!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-excited-handsome-man-looking-home-showing-house-thumbup-recommending-real-esta_1258-145410.jpg", icon: isMounted ? Star : undefined }, - { id: "2", name: "Rohan M.", handle: "@rohanm", testimonial: "The AI recommendations were spot on and super helpful.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-handsome-man-coat-red-scarf-moving-up-stairs_1262-15212.jpg", icon: isMounted ? Star : undefined }, - { id: "3", name: "Sarah K.", handle: "@sarahk", testimonial: "Verified listings made me feel secure throughout the process.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-couple-receiving-keys_23-2149986640.jpg", icon: isMounted ? Star : undefined }, - { id: "4", name: "Vikram S.", handle: "@vikrams", testimonial: "Professional, transparent, and absolutely seamless journey.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-couple-holding-house-plans_23-2148895458.jpg", icon: isMounted ? Star : undefined }, - { id: "5", name: "Divya R.", handle: "@divyar", testimonial: "Best platform for property searching in India today.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-working-as-real-estate-agent_23-2151064886.jpg", icon: isMounted ? Star : undefined } + { id: "1", name: "Ananya P.", handle: "@ananyap", testimonial: "Found my dream home in Bengaluru within a week!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-excited-handsome-man-looking-home-showing-house-thumbup-recommending-real-esta_1258-145410.jpg", icon: Star }, + { id: "2", name: "Rohan M.", handle: "@rohanm", testimonial: "The AI recommendations were spot on and super helpful.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-handsome-man-coat-red-scarf-moving-up-stairs_1262-15212.jpg", icon: Star }, + { id: "3", name: "Sarah K.", handle: "@sarahk", testimonial: "Verified listings made me feel secure throughout the process.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-couple-receiving-keys_23-2149986640.jpg", icon: Star }, + { id: "4", name: "Vikram S.", handle: "@vikrams", testimonial: "Professional, transparent, and absolutely seamless journey.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-couple-holding-house-plans_23-2148895458.jpg", icon: Star }, + { id: "5", name: "Divya R.", handle: "@divyar", testimonial: "Best platform for property searching in India today.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-working-as-real-estate-agent_23-2151064886.jpg", icon: Star } ]} title="Voices of Trust" description="What our users say about their experience with EstateVerse India."