From ecdabcce2ccf64bf6da763e686d96d1b3b313c05 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 8 Mar 2026 13:28:55 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 52 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index a9ae79e..9b1dd30 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -29,16 +29,16 @@ export default function HomePage() { const footerColumns = [ { title: "Services", items: [ - { label: "Roof Repairs", href: "/services" }, - { label: "Flat Roof Installation", href: "/services" }, - { label: "Chimney Repairs", href: "/services" }, - { label: "Guttering & Drainage", href: "/services" }, - { label: "Emergency Roofing", href: "/services" }, + { label: "Roof Repairs", href: "#services" }, + { label: "Flat Roof Installation", href: "#services" }, + { label: "Chimney Repairs", href: "#services" }, + { label: "Guttering & Drainage", href: "#services" }, + { label: "Emergency Roofing", href: "#services" }, ], }, { title: "Company", items: [ - { label: "About Us", href: "#" }, + { label: "About Us", href: "#why-us" }, { label: "Reviews", href: "#reviews" }, { label: "Contact", href: "#contact" }, { label: "FAQ", href: "#" }, @@ -73,7 +73,8 @@ export default function HomePage() { brandName="Lavelle Roofing" navItems={navItems} button={{ - text: "Get Free Quote", href: "#contact"}} + text: "Get Free Quote", onClick: handleGetQuoteClick, + }} animateOnLoad={true} /> @@ -108,7 +109,8 @@ export default function HomePage() { ]} buttons={[ { - text: "Get Free Quote", href: "#contact"}, + text: "Get Free Quote", onClick: handleGetQuoteClick, + }, { text: "Call Now", onClick: () => { window.location.href = "tel:+1234567890"; @@ -164,25 +166,49 @@ export default function HomePage() { { id: "1", title: "Roof Repairs", description: "Leaks, broken tiles, storm damage and general roof issues fixed quickly and professionally.", tag: "Emergency", imageSrc: "http://img.b2bpic.net/free-photo/crop-skateboarder-man-ramp_23-2147678250.jpg?_wi=2", imageAlt: "Professional roof repair work", buttons: [ { - text: "Learn More", href: "/services"}, + text: "Learn More", onClick: () => { + const servicesSection = document.getElementById("services"); + if (servicesSection) { + servicesSection.scrollIntoView({ behavior: "smooth" }); + } + }, + }, ], }, { id: "2", title: "Flat Roof Installation", description: "Durable modern flat roofing systems built to last with professional installation.", tag: "Installation", imageSrc: "http://img.b2bpic.net/free-photo/bison-race-obstacle-race-sports-competition-belarus-may-2019_1321-3203.jpg?_wi=2", imageAlt: "Modern flat roof installation", buttons: [ { - text: "Learn More", href: "/services"}, + text: "Learn More", onClick: () => { + const servicesSection = document.getElementById("services"); + if (servicesSection) { + servicesSection.scrollIntoView({ behavior: "smooth" }); + } + }, + }, ], }, { id: "3", title: "Chimney Repairs", description: "Repointing, chimney restoration and leak prevention with expert workmanship.", tag: "Repairs", imageSrc: "http://img.b2bpic.net/free-photo/plasterer-renovating-indoor-walls_1150-9959.jpg?_wi=2", imageAlt: "Professional chimney repair", buttons: [ { - text: "Learn More", href: "/services"}, + text: "Learn More", onClick: () => { + const servicesSection = document.getElementById("services"); + if (servicesSection) { + servicesSection.scrollIntoView({ behavior: "smooth" }); + } + }, + }, ], }, { id: "4", title: "Guttering & Drainage", description: "Repairs, replacements and cleaning to prevent damp issues and water damage.", tag: "Maintenance", imageSrc: "http://img.b2bpic.net/free-photo/focused-plumber-working-assembling-pipelines-install-plumbing-system-while-building-new-house_662251-539.jpg?_wi=2", imageAlt: "Professional guttering installation", buttons: [ { - text: "Learn More", href: "/services"}, + text: "Learn More", onClick: () => { + const servicesSection = document.getElementById("services"); + if (servicesSection) { + servicesSection.scrollIntoView({ behavior: "smooth" }); + } + }, + }, ], }, { @@ -272,4 +298,4 @@ export default function HomePage() { ); -} \ No newline at end of file +}