Files
29e8bb09-8717-4cf6-9f95-faa…/src/components/Layout.tsx

86 lines
2.3 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>
);
}