Files
fb3f0bf4-d9c7-4002-b018-a8a…/src/components/Layout.tsx
2026-06-17 15:12:34 +00:00

107 lines
2.4 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarInline from '@/components/ui/NavbarInline';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Menu",
"href": "#menu"
},
{
"name": "Reservation",
"href": "#reservation"
},
{
"name": "Signature",
"href": "#signature"
},
{
"name": "Why Us",
"href": "#why-us"
},
{
"name": "Gallery",
"href": "#gallery"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="aurora" heroBackground="horizonGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarInline
logo="Glops"
ctaButton={{
text: "Book Now",
href: "#reservation",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Glops Restaurant"
columns={[
{
title: "Links",
items: [
{
label: "Home",
href: "#hero",
},
{
label: "About",
href: "#about",
},
{
label: "Menu",
href: "#menu",
},
],
},
{
title: "Contact",
items: [
{
label: "+91 87692 45945",
href: "tel:+918769245945",
},
{
label: "Email Us",
href: "#",
},
],
},
]}
copyright="© 2024 Glops Restaurant. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/beautiful-young-woman-wearing-sari_23-2149502951.jpg"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}