Update src/app/page.tsx
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
</div>
|
||||
@@ -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"
|
||||
/>
|
||||
</div>
|
||||
@@ -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: "#" },
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user