Update src/components/Layout.tsx

This commit is contained in:
2026-06-15 09:47:11 +00:00
parent 99770486cb
commit e9a2f4517b

View File

@@ -7,99 +7,54 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "About",
"href": "#about"
},
{
"name": "Programs",
"href": "#features"
},
{
"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": "Programs", "href": "#features" },
{ "name": "Pricing", "href": "#pricing" },
{ "name": "Reviews", "href": "#testimonials" },
{ "name": "Hero", "href": "#hero" },
{ "name": "Metrics", "href": "#metrics" },
{ "name": "Faq", "href": "#faq" }
];
return (
<StyleProvider buttonVariant="default" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Mishka"
logoImageSrc="https://images.unsplash.com/photo-1596461404969-9ae70f2830c1?w=128&h=128&fit=crop&q=80"
ctaButton={{
text: "Book Tour",
href: "#contact",
}}
navItems={navItems} />
logo="Mishka"
logoImageSrc="http://img.b2bpic.net/free-vector/creative-california-bear-logo_23-2149212922.jpg"
ctaButton={{
text: "Book Tour", href: "#contact"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Mishka Daycare"
columns={[
{
title: "Links",
items: [
brand="Mishka Daycare"
columns={[
{
label: "About",
href: "#about",
title: "Links", items: [
{ label: "About", href: "#about" },
{ label: "Programs", href: "#features" },
{ label: "Pricing", href: "#pricing" },
],
},
{
label: "Programs",
href: "#features",
title: "Support", items: [
{ label: "FAQ", href: "#faq" },
{ label: "Contact", href: "#contact" },
],
},
{
label: "Pricing",
href: "#pricing",
},
],
},
{
title: "Support",
items: [
{
label: "FAQ",
href: "#faq",
},
{
label: "Contact",
href: "#contact",
},
],
},
]}
copyright="© 2024 Mishka Daycare. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
/>
]}
copyright="© 2024 Mishka Daycare. All rights reserved."
links={[
{ label: "Privacy Policy", href: "#" },
{ label: "Terms of Service", href: "#" },
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);