From 2b8eff305e3259b5fdea038be9562c69909e8798 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 3 Mar 2026 16:45:51 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 617cce7..f5b4a73 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -15,22 +15,22 @@ import { Zap, Cog, Leaf, Rocket, Printer, Package, Image, FileText, Bookmark, Sp export default function HomePage() { const navItems = [ { name: "Home", id: "/" }, - { name: "Services", id: "/services" }, - { name: "Products", id: "/products" }, - { name: "About", id: "/about" }, - { name: "Contact", id: "/contact" }, + { name: "Services", id: "#services" }, + { name: "Products", id: "#products" }, + { name: "About", id: "#about" }, + { name: "Contact", id: "#contact" }, ]; const handleNavClick = (id: string) => { if (id === "/") { window.location.href = "/"; - } else if (id.startsWith("/")) { - window.location.href = id; - } else { - const element = document.querySelector(`#${id}`); + } else if (id.startsWith("#")) { + const element = document.querySelector(id); if (element) { element.scrollIntoView({ behavior: "smooth" }); } + } else if (id.startsWith("/")) { + window.location.href = id; } }; @@ -69,8 +69,8 @@ export default function HomePage() { showBlur={true} showDimOverlay={true} buttons={[ - { text: "Request a Quote", href: "/contact" }, - { text: "Learn More", href: "/about" }, + { text: "Request a Quote", href: "#contact" }, + { text: "Learn More", href: "#about" }, ]} buttonAnimation="slide-up" ariaLabel="LichtPrint hero section with premium printing solutions" @@ -97,7 +97,7 @@ export default function HomePage() { textboxLayout="default" useInvertedBackground={false} imagePosition="right" - buttons={[{ text: "Explore Services", href: "/services" }]} + buttons={[{ text: "Explore Services", href: "#services" }]} buttonAnimation="slide-up" /> @@ -143,7 +143,7 @@ export default function HomePage() { animationType="slide-up" textboxLayout="default" useInvertedBackground={false} - buttons={[{ text: "View All Products", href: "/products" }]} + buttons={[{ text: "View All Products", href: "#products" }]} buttonAnimation="slide-up" /> @@ -337,25 +337,25 @@ export default function HomePage() { columns={[ { title: "Services", items: [ - { label: "Digital Printing", href: "/services" }, - { label: "Offset Printing", href: "/services" }, - { label: "Packaging", href: "/services" }, - { label: "Large Format", href: "/services" }, + { label: "Digital Printing", href: "#services" }, + { label: "Offset Printing", href: "#services" }, + { label: "Packaging", href: "#services" }, + { label: "Large Format", href: "#services" }, ], }, { title: "Company", items: [ - { label: "About Us", href: "/about" }, - { label: "Our Team", href: "/about" }, + { label: "About Us", href: "#about" }, + { label: "Our Team", href: "#about" }, { label: "Careers", href: "#" }, { label: "Blog", href: "#" }, ], }, { title: "Support", items: [ - { label: "Contact Us", href: "/contact" }, - { label: "FAQ", href: "#faq" }, - { label: "Pricing", href: "#pricing" }, + { label: "Contact Us", href: "#contact" }, + { label: "FAQ", href: "#" }, + { label: "Pricing", href: "#" }, { label: "Privacy Policy", href: "#" }, ], },