Update src/components/Layout.tsx

This commit is contained in:
2026-06-14 14:34:09 +00:00
parent e4380dee77
commit d6011f12c5

View File

@@ -7,112 +7,59 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Products",
"href": "#products"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
{ name: "Home", href: "#hero" },
{ name: "About", href: "#about" },
{ name: "Features", href: "#features" },
{ name: "Contact", href: "#contact" },
{ name: "Products", href: "#products" },
{ name: "Metrics", href: "#metrics" },
{ name: "Testimonials", href: "#testimonials" }
];
return (
<StyleProvider buttonVariant="arrow" siteBackground="noise" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Meru Greenwood"
logoImageSrc="https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=100&h=100&q=80"
ctaButton={{
text: "Get Directions",
href: "#contact",
}}
navItems={navItems} />
logo="Meru Greenwood"
logoImageSrc="http://img.b2bpic.net/free-vector/hand-drawn-full-side-color-business-card_23-2151022832.jpg"
ctaButton={{ text: "Get Directions", href: "#contact" }}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="Meru Greenwood Park"
columns={[
{
title: "Navigation",
items: [
brand="Meru Greenwood Park"
columns={[
{
label: "Home",
href: "#hero",
title: "Navigation", items: [
{ label: "Home", href: "#hero" },
{ label: "About", href: "#about" },
{ label: "Shops", href: "#products" },
],
},
{
label: "About",
href: "#about",
title: "Payments", items: [
{ label: "KCB / M-Pesa", href: "#" },
{ label: "Visa / Mastercard", href: "#" },
],
},
{
label: "Shops",
href: "#products",
title: "Support", items: [
{ label: "Contact", href: "#contact" },
{ label: "Privacy Policy", href: "#" },
],
},
],
},
{
title: "Payments",
items: [
{
label: "KCB / M-Pesa",
href: "#",
},
{
label: "Visa / Mastercard",
href: "#",
},
],
},
{
title: "Support",
items: [
{
label: "Contact",
href: "#contact",
},
{
label: "Privacy Policy",
href: "#",
},
],
},
]}
copyright="© 2024 Meru Greenwood Park. All rights reserved."
links={[
{
label: "Terms",
href: "#",
},
{
label: "Privacy",
href: "#",
},
]}
/>
copyright="© 2024 Meru Greenwood Park. All rights reserved."
links={[
{ label: "Terms", href: "#" },
{ label: "Privacy", href: "#" },
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);