Files
b3d2ebd1-25c3-4956-911e-e50…/src/components/Layout.tsx
2026-06-16 10:19:15 +00:00

115 lines
2.5 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
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": "#menu"
},
{
"name": "Ambience",
"href": "#ambience"
},
{
"name": "Contact",
"href": "#footer"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="gridLines" heroBackground="lightRaysCorner">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="SUKHSAGAR"
ctaButton={{
text: "Digital Menu",
href: "#menu",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="SUKHSAGAR"
columns={[
{
title: "Timing",
items: [
{
label: "Open Daily: 11 AM - 11 PM",
href: "#",
},
{
label: "Short wait times on weekends.",
href: "#",
},
],
},
{
title: "Location",
items: [
{
label: "Ahilyanagar, Maharashtra",
href: "https://maps.google.com",
},
{
label: "Kothi - Yash Palace Rd",
href: "#",
},
],
},
{
title: "Contact",
items: [
{
label: "095617 45045",
href: "tel:09561745045",
},
{
label: "Directions",
href: "https://maps.google.com",
},
],
},
]}
copyright="© 2024 Sukhsagar Restaurant. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}