From 313ff8455a9ef76342c3a807f462806f2d65b765 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 1 Apr 2026 02:32:41 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 782a367..83d4cb7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,6 +13,13 @@ import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCar import { Award, Users, Zap } from "lucide-react"; export default function LandingPage() { + const scrollToContact = () => { + const element = document.getElementById("contact"); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + }; + return ( @@ -63,7 +70,7 @@ export default function LandingPage() { ]} buttons={[ { - text: "Get Your Free Restoration Quote", href: "#contact"}, + text: "Get Your Free Restoration Quote", onClick: scrollToContact}, ]} buttonAnimation="slide-up" marqueeItems={[ @@ -87,44 +94,32 @@ export default function LandingPage() { { id: "service-1", label: "Footwear Care", title: "Luxury Shoe Repair", items: [ "Stop replacing worn heels", "Fix loose stitching and tears", "Renew finish and suppleness"], - buttons: [{ - text: "Request a Repair Quote", href: "#contact" - }] + buttons: [{ text: "Request a Repair Quote", onClick: scrollToContact }] }, { id: "service-2", label: "Boot Expertise", title: "Boot Resole & Restoration", items: [ "Make your favorite boots walkable again", "Remove scuffs and restore color", "Keep your feet dry in any weather"], - buttons: [{ - text: "Request a Repair Quote", href: "#contact" - }] + buttons: [{ text: "Request a Repair Quote", onClick: scrollToContact }] }, { id: "service-3", label: "Designer Focus", title: "Designer Heel Repair", items: [ "Stop throwing away your favorite heels", "Fix broken heels and wobbly tips", "Maintain your luxury investment"], - buttons: [{ - text: "Request a Repair Quote", href: "#contact" - }] + buttons: [{ text: "Request a Repair Quote", onClick: scrollToContact }] }, { id: "service-4", label: "Accessories", title: "Leather Bag Repair", items: [ "Fix broken straps that won't stay", "Replace stuck or broken zippers", "Restore the look of aged leather"], - buttons: [{ - text: "Request a Repair Quote", href: "#contact" - }] + buttons: [{ text: "Request a Repair Quote", onClick: scrollToContact }] }, { id: "service-5", label: "Custom Fitting", title: "Stretching & Fitting", items: [ "Eliminate painful pressure points", "Get the perfect fit for your foot", "Make uncomfortable shoes wearable"], - buttons: [{ - text: "Request a Repair Quote", href: "#contact" - }] + buttons: [{ text: "Request a Repair Quote", onClick: scrollToContact }] }, { id: "service-6", label: "Personalization", title: "Custom Modifications", items: [ "Update old, outdated hardware", "Change the color of your style", "Add unique custom touches"], - buttons: [{ - text: "Request a Repair Quote", href: "#contact" - }] + buttons: [{ text: "Request a Repair Quote", onClick: scrollToContact }] } ]} title="Our Services" @@ -190,7 +185,7 @@ export default function LandingPage() { description="Experience the meticulous journey your items take from worn to renewed, handled with expertise at every stage." buttons={[ { - text: "Request a Repair", href: "#contact" + text: "Request a Repair", onClick: scrollToContact } ]} /> -- 2.49.1