Files
bc09bbe0-5c47-49c8-96a0-e6c…/src/components/Layout.tsx

115 lines
2.5 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "#products"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Social Proof",
"href": "#social-proof"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Bihari Samosa"
ctaButton={{
text: "Order Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Bihari Samosa Ghantawala"
columns={[
{
title: "Visit Us",
items: [
{
label: "Wembley, UK",
href: "#",
},
{
label: "Open Daily 8AM - 8PM",
href: "#",
},
],
},
{
title: "Company",
items: [
{
label: "Our History",
href: "#",
},
{
label: "Careers",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
copyright="© 2026 Bihari Samosa Ghantawala. All rights reserved."
links={[
{
label: "Instagram",
href: "#",
},
{
label: "Facebook",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}