Update src/components/Layout.tsx

This commit is contained in:
2026-06-14 11:04:03 +00:00
parent d0248b2924
commit 103156562f

View File

@@ -8,32 +8,25 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
"name": "Home", "href": "#hero"
},
{
"name": "About",
"href": "#about"
"name": "About", "href": "#about"
},
{
"name": "Menu",
"href": "#product"
"name": "Menu", "href": "#product"
},
{
"name": "Contact",
"href": "#contact"
"name": "Contact", "href": "#contact"
},
{
"name": "Features",
"href": "#features"
"name": "Features", "href": "#features"
},
{
"name": "Metrics",
"href": "#metrics"
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonial",
"href": "#testimonial"
"name": "Testimonial", "href": "#testimonial"
}
];
@@ -42,59 +35,45 @@ export default function Layout() {
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Al Corvo"
logoImageSrc="https://images.unsplash.com/photo-1514933651103-005eec06c04b?q=80&w=1934&auto=format&fit=crop"
ctaButton={{
text: "Book Table",
href: "#contact",
}}
navItems={navItems} />
logo="Al Corvo"
logoImageSrc="http://img.b2bpic.net/free-photo/gold-cutlery-set-black-background_1220-4097.jpg"
ctaButton={{
text: "Book Table", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Ristorante Al Corvo"
columns={[
{
items: [
brand="Ristorante Al Corvo"
columns={[
{
label: "About Us",
href: "#about",
items: [
{
label: "About Us", href: "#about"},
{
label: "Our Menu", href: "#product"},
],
},
{
label: "Our Menu",
href: "#product",
},
],
},
{
items: [
{
label: "Reservations",
href: "#contact",
items: [
{
label: "Reservations", href: "#contact"},
{
label: "Contact", href: "#contact"},
],
},
{
label: "Contact",
href: "#contact",
items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
],
},
],
},
{
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
/>
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);