Files
24c3979d-4086-4bcf-b5cf-2d5…/src/components/Layout.tsx
2026-06-15 09:42:50 +00:00

102 lines
2.2 KiB
TypeScript

import FooterSimple from '@/components/sections/footer/FooterSimple';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "Menu",
"href": "#menu"
},
{
"name": "Experience",
"href": "#about"
},
{
"name": "Location",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Product",
"href": "#product"
},
{
"name": "Testimonial",
"href": "#testimonial"
}
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="RATIONED"
ctaButton={{
text: "Order Now",
href: "#order",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="RATIONED"
columns={[
{
title: "Visit Us",
items: [
{
label: "Nad Al Sheba, Dubai",
href: "#",
},
{
label: "Open Daily",
href: "#",
},
],
},
{
title: "Social",
items: [
{
label: "Instagram",
href: "https://instagram.com/r.ationed",
},
{
label: "Tripadvisor",
href: "#",
},
],
},
]}
copyright="© 2025 Rationed. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}