diff --git a/src/app/page.tsx b/src/app/page.tsx index 756a9c6..3a24faa 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,16 +2,18 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; -import ContactCenter from '@/components/sections/contact/ContactCenter'; -import FeatureCardTwentyFour from '@/components/sections/feature/FeatureCardTwentyFour'; -import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal'; -import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard'; -import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout'; -import MetricCardOne from '@/components/sections/metrics/MetricCardOne'; -import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; -import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne'; +import dynamic from 'next/dynamic'; import { ShieldCheck, Star, Zap } from "lucide-react"; +const ContactCenter = dynamic(() => import('@/components/sections/contact/ContactCenter'), { ssr: false }); +const FeatureCardTwentyFour = dynamic(() => import('@/components/sections/feature/FeatureCardTwentyFour'), { ssr: false }); +const FooterBaseReveal = dynamic(() => import('@/components/sections/footer/FooterBaseReveal'), { ssr: false }); +const HeroLogoBillboard = dynamic(() => import('@/components/sections/hero/HeroLogoBillboard'), { ssr: false }); +const InlineImageSplitTextAbout = dynamic(() => import('@/components/sections/about/InlineImageSplitTextAbout'), { ssr: false }); +const MetricCardOne = dynamic(() => import('@/components/sections/metrics/MetricCardOne'), { ssr: false }); +const NavbarStyleCentered = dynamic(() => import('@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'), { ssr: false }); +const TestimonialCardOne = dynamic(() => import('@/components/sections/testimonial/TestimonialCardOne'), { ssr: false }); + export default function LandingPage() { return ( @@ -68,7 +70,7 @@ export default function LandingPage() { { type: "text", content: "Your Trusted Local Experts"}, { - type: "image", src: "http://img.b2bpic.net/free-photo/front-view-young-beautiful-woman-white-shirt-black-trousers-along-with-young-man-discussing-something-daytime-building-job-activity_140725-15290.jpg", alt: "Friendly staff at reception"}, + type: "image", src: "http://img.b2bpic.net/free-photo/front-view-young-beautiful-woman-white-shirt-black-trousers-along-with-young-man-discussing-something-daytime-building-job-activity_140725-15290.jpg?w=800&q=75", alt: "Friendly staff at reception"}, ]} /> @@ -82,15 +84,15 @@ export default function LandingPage() { { id: "f1", title: "MOT Testing", author: "DVSA Approved", description: "Quick and thorough annual MOT tests to keep you road legal and safe.", tags: [ "MOT"], - imageSrc: "http://img.b2bpic.net/free-photo/mechanic-servicing-car-engine_1170-1176.jpg"}, + imageSrc: "http://img.b2bpic.net/free-photo/mechanic-servicing-car-engine_1170-1176.jpg?w=600&q=75"}, { id: "f2", title: "Vehicle Servicing", author: "Expert Care", description: "Full and interim servicing tailored to your car's make and model.", tags: [ "Servicing"], - imageSrc: "http://img.b2bpic.net/free-photo/mechanic-checking-car_329181-11830.jpg"}, + imageSrc: "http://img.b2bpic.net/free-photo/mechanic-checking-car_329181-11830.jpg?w=600&q=75"}, { id: "f3", title: "Brake Repairs", author: "Safety First", description: "Professional brake inspection and repairs for maximum stopping power.", tags: [ "Safety"], - imageSrc: "http://img.b2bpic.net/free-photo/mechanic-using-laptop_1170-1318.jpg"}, + imageSrc: "http://img.b2bpic.net/free-photo/mechanic-using-laptop_1170-1318.jpg?w=600&q=75"}, ]} title="Our Professional Services" description="We offer a wide range of repair and maintenance services to keep your vehicle running perfectly." @@ -133,19 +135,19 @@ export default function LandingPage() { testimonials={[ { id: "t1", name: "Sarah J.", role: "Driver", company: "Coventry Local", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/female-mechanic-servicing-car_1170-1401.jpg"}, + imageSrc: "http://img.b2bpic.net/free-photo/female-mechanic-servicing-car_1170-1401.jpg?w=200&q=75"}, { id: "t2", name: "Mark D.", role: "Parent", company: "Local Driver", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/traveler-car-facing-camera_23-2148218421.jpg"}, + imageSrc: "http://img.b2bpic.net/free-photo/traveler-car-facing-camera_23-2148218421.jpg?w=200&q=75"}, { id: "t3", name: "Emily R.", role: "Commuter", company: "Business Owner", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-woman-car-salon_1157-31957.jpg"}, + imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-woman-car-salon_1157-31957.jpg?w=200&q=75"}, { id: "t4", name: "Dave L.", role: "Car Enthusiast", company: "Regular", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg"}, + imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?w=200&q=75"}, { id: "t5", name: "Janet P.", role: "Driver", company: "Long-term client", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-man-inside-car_23-2149201412.jpg"}, + imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-man-inside-car_23-2149201412.jpg?w=200&q=75"}, ]} title="Customer Reviews" description="Don't just take our word for it—our customers love our work." @@ -190,4 +192,4 @@ export default function LandingPage() { ); -} \ No newline at end of file +}