Files
29e8bb09-8717-4cf6-9f95-faa…/src/components/Layout.tsx
2026-06-22 02:47:06 +00:00

114 lines
2.5 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "Home",
"href": "#hero"
},
{
"name": "Menu",
"href": "#products"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="noiseGradient" heroBackground="horizonGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="Burger Republic"
ctaButton={{
text: "Order Online",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Burger Republic"
columns={[
{
title: "Branches",
items: [
{
label: "65 Al Dwidar",
href: "#",
},
{
label: "Makram Ebeid",
href: "#",
},
{
label: "Tivoli Dome",
href: "#",
},
],
},
{
title: "Company",
items: [
{
label: "About Us",
href: "#",
},
{
label: "Careers",
href: "#",
},
{
label: "Contact",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
copyright="© 2024 Burger Republic. All rights reserved."
links={[]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}