Update src/components/Layout.tsx

This commit is contained in:
2026-06-15 19:58:07 +00:00
parent b17d72ba55
commit 3dc10a8076

View File

@@ -7,102 +7,56 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "About",
"href": "#about"
},
{
"name": "Services",
"href": "#services"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Reviews",
"href": "#testimonials"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Faq",
"href": "#faq"
}
];
{ name: "About", href: "#about" },
{ name: "Services", href: "#services" },
{ name: "Pricing", href: "#pricing" },
{ name: "Reviews", href: "#testimonials" },
{ name: "Hero", href: "#hero" },
{ name: "Metrics", href: "#metrics" },
{ name: "Faq", href: "#faq" }
];
return (
<StyleProvider buttonVariant="expand" siteBackground="aurora" heroBackground="horizonGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="ECC Lawn Mowing"
logoImageSrc="https://images.unsplash.com/photo-1592424001806-1d622e4fc331?auto=format&fit=crop&q=80&w=100&h=100"
ctaButton={{
text: "Free Quote",
href: "#contact",
}}
navItems={navItems} />
logo="ECC Lawn Mowing"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=cwevjb"
ctaButton={{
text: "Free Quote", href: "#contact"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="ECC Lawn Mowing"
columns={[
{
items: [
brand="ECC Lawn Mowing"
columns={[
{
label: "About Us",
href: "#about",
items: [
{ label: "About Us", href: "#about" },
{ label: "Services", href: "#services" },
{ label: "Pricing", href: "#pricing" }
]
},
{
label: "Services",
href: "#services",
items: [
{ label: "Contact", href: "#contact" },
{ label: "Book Now", href: "#contact" },
{ label: "FAQs", href: "#faq" }
]
},
{
label: "Pricing",
href: "#pricing",
},
],
},
{
items: [
{
label: "Contact",
href: "#contact",
},
{
label: "Book Now",
href: "#contact",
},
{
label: "FAQs",
href: "#faq",
},
],
},
{
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
/>
items: [
{ label: "Privacy Policy", href: "#" },
{ label: "Terms of Service", href: "#" }
]
}
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);