Update src/components/Layout.tsx

This commit is contained in:
2026-06-13 20:30:11 +00:00
parent ccfa3dbee1
commit 84fd3165d3

View File

@@ -7,34 +7,13 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
},
{
"name": "About Us",
"href": "#about"
},
{
"name": "Menu",
"href": "#menu"
},
{
"name": "Gallery",
"href": "#gallery"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Faq",
"href": "#faq"
}
{ "name": "Home", "href": "#hero" },
{ "name": "About Us", "href": "#about" },
{ "name": "Menu", "href": "#menu" },
{ "name": "Gallery", "href": "#gallery" },
{ "name": "Contact", "href": "#contact" },
{ "name": "Testimonials", "href": "#testimonials" },
{ "name": "Faq", "href": "#faq" }
];
return (
@@ -42,81 +21,47 @@ export default function Layout() {
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Royal Grill"
logoImageSrc="https://images.unsplash.com/photo-1599305445671-ac291c95aaa9?w=200&h=200&fit=crop"
ctaButton={{
text: "Reserve Now",
href: "#contact",
}}
navItems={navItems} />
logo="Royal Grill"
logoImageSrc="http://img.b2bpic.net/free-vector/cooking-landing-page-template-with-photo_23-2148368952.jpg"
ctaButton={{
text: "Reserve Now", href: "#contact"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="Royal Grill"
columns={[
{
title: "Menu",
items: [
brand="Royal Grill"
columns={[
{
label: "Dinner",
href: "#menu",
title: "Menu", items: [
{ label: "Dinner", href: "#menu" },
{ label: "Drinks", href: "#menu" },
{ label: "Catering", href: "#" },
],
},
{
label: "Drinks",
href: "#menu",
title: "Support", items: [
{ label: "FAQ", href: "#faq" },
{ label: "Contact", href: "#contact" },
{ label: "Bookings", href: "#" },
],
},
{
label: "Catering",
href: "#",
title: "Legal", items: [
{ label: "Privacy", href: "#" },
{ label: "Terms", href: "#" },
],
},
],
},
{
title: "Support",
items: [
{
label: "FAQ",
href: "#faq",
},
{
label: "Contact",
href: "#contact",
},
{
label: "Bookings",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
],
},
]}
copyright="© 2024 Royal Grill. All rights reserved."
links={[
{
label: "Twitter",
href: "#",
},
{
label: "Instagram",
href: "#",
},
]}
/>
]}
copyright="© 2024 Royal Grill. All rights reserved."
links={[
{ label: "Twitter", href: "#" },
{ label: "Instagram", href: "#" },
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);