92 lines
2.0 KiB
TypeScript
92 lines
2.0 KiB
TypeScript
import FooterBasic from '@/components/sections/footer/FooterBasic';
|
|
import NavbarDropdown from '@/components/ui/NavbarDropdown';
|
|
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": "Reviews",
|
|
"href": "#reviews"
|
|
},
|
|
{
|
|
"name": "Contact",
|
|
"href": "#contact"
|
|
},
|
|
{
|
|
"name": "About",
|
|
"href": "#about"
|
|
},
|
|
{
|
|
"name": "Features",
|
|
"href": "#features"
|
|
},
|
|
{
|
|
"name": "Metrics",
|
|
"href": "#metrics"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarDropdown
|
|
logo="Kanteen"
|
|
ctaButton={{
|
|
text: "Book Table",
|
|
href: "#contact",
|
|
}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterBasic
|
|
columns={[
|
|
{
|
|
title: "Kanteen",
|
|
items: [
|
|
{
|
|
label: "About Us",
|
|
href: "#",
|
|
},
|
|
{
|
|
label: "Our Menu",
|
|
href: "#menu",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "Support",
|
|
items: [
|
|
{
|
|
label: "Help Center",
|
|
href: "#",
|
|
},
|
|
{
|
|
label: "Privacy Policy",
|
|
href: "#",
|
|
},
|
|
],
|
|
},
|
|
]}
|
|
leftText="© 2024 Kanteen. All rights reserved."
|
|
rightText="Dolmen Mall, Clifton, Karachi."
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|