96 lines
2.1 KiB
TypeScript
96 lines
2.1 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": "Menu",
|
|
"href": "#menu"
|
|
},
|
|
{
|
|
"name": "About",
|
|
"href": "#about"
|
|
},
|
|
{
|
|
"name": "Contact",
|
|
"href": "#contact"
|
|
},
|
|
{
|
|
"name": "Hero",
|
|
"href": "#hero"
|
|
},
|
|
{
|
|
"name": "Metrics",
|
|
"href": "#metrics"
|
|
},
|
|
{
|
|
"name": "Testimonials",
|
|
"href": "#testimonials"
|
|
},
|
|
{
|
|
"name": "Faq",
|
|
"href": "#faq"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="gradientBars">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<div className="[&_a]:!text-background [&_span]:!text-background [&_div]:!text-background">
|
|
<NavbarCentered
|
|
logo="Hummus House"
|
|
ctaButton={{
|
|
text: "Order Now",
|
|
href: "#order",
|
|
}}
|
|
navItems={navItems} />
|
|
</div>
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterSimpleCard
|
|
brand="Hummus House UK"
|
|
columns={[
|
|
{
|
|
title: "Location",
|
|
items: [
|
|
{
|
|
label: "Coventry City Centre",
|
|
href: "#",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "Contact",
|
|
items: [
|
|
{
|
|
label: "Phone: 0123 456 789",
|
|
href: "#",
|
|
},
|
|
],
|
|
},
|
|
]}
|
|
copyright="© 2024 Hummus House UK. All Rights Reserved."
|
|
links={[
|
|
{
|
|
label: "Instagram",
|
|
href: "#",
|
|
},
|
|
{
|
|
label: "Facebook",
|
|
href: "#",
|
|
},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|