Update src/components/Layout.tsx

This commit is contained in:
2026-06-15 12:06:49 +00:00
parent 65817669a7
commit cdec201ced

View File

@@ -7,86 +7,49 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
},
{
"name": "Menu",
"href": "#menu"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Reviews",
"href": "#reviews"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Gallery",
"href": "#gallery"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
{ "name": "Home", "href": "#hero" },
{ "name": "Menu", "href": "#menu" },
{ "name": "About", "href": "#about" },
{ "name": "Reviews", "href": "#reviews" },
{ "name": "Contact", "href": "#contact" },
{ "name": "Gallery", "href": "#gallery" },
{ "name": "Metrics", "href": "#metrics" }
];
return (
<StyleProvider buttonVariant="expand" siteBackground="gridLines" heroBackground="horizonGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Grillo"
logoImageSrc="https://images.unsplash.com/photo-1599305445671-ac291c95aaa9?w=200&h=200&fit=crop"
ctaButton={{
text: "Book Now",
href: "#contact",
}}
navItems={navItems} />
logo="Grillo"
logoImageSrc="http://img.b2bpic.net/free-photo/grilled-beef-steak-with-asparagus-roasted-vegetables_84443-94484.jpg"
ctaButton={{
text: "Book Now", href: "#contact"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Grillo"
columns={[
{
items: [
brand="Grillo"
columns={[
{
label: "About",
href: "#about",
items: [
{ label: "About", href: "#about" },
{ label: "Menu", href: "#menu" },
{ label: "Directions", href: "#" }
]
},
{
label: "Menu",
href: "#menu",
},
{
label: "Directions",
href: "#",
},
],
},
{
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
/>
items: [
{ label: "Privacy Policy", href: "#" },
{ label: "Terms of Service", href: "#" }
]
}
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);