Update src/app/page.tsx

This commit is contained in:
2026-05-20 17:33:59 +00:00
parent 7d36d0fe1d
commit 2c4e7ede1d

View File

@@ -2,7 +2,7 @@
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import { Star, MessageSquare } from "lucide-react";
import { Star } from "lucide-react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
@@ -11,6 +11,13 @@ import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
export default function AdeptHandymanLandingPage() {
const scrollToSection = (id: string) => {
const element = document.getElementById(id.startsWith('#') ? id.slice(1) : id);
if (element) {
element.scrollIntoView({ behavior: 'smooth' });
}
};
return (
<ThemeProvider
defaultButtonVariant="hover-magnetic"
@@ -50,7 +57,7 @@ export default function AdeptHandymanLandingPage() {
enableKpiAnimation={true}
buttons={[
{ text: "Call Now: (561) 531-5971", onClick: () => window.location.href = "tel:+15615315971" },
{ text: "Schedule Service", href: "#appointment" }
{ text: "Schedule Service", onClick: () => scrollToSection("appointment") }
]}
imageSrc="https://img.b2bpic.net/free-photo/construction-worker-using-hammer-job-site_23-2150530686.jpg?_wi=1"
/>