82 lines
2.3 KiB
TypeScript
82 lines
2.3 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": "About", "href": "#about"
|
|
},
|
|
{
|
|
"name": "Menu", "href": "#menu"
|
|
},
|
|
{
|
|
"name": "Team", "href": "#team"
|
|
},
|
|
{
|
|
"name": "Contact", "href": "#contact"
|
|
},
|
|
{
|
|
"name": "Hero", "href": "#hero"
|
|
},
|
|
{
|
|
"name": "Features", "href": "#features"
|
|
},
|
|
{
|
|
"name": "Testimonials", "href": "#testimonials"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="stagger" siteBackground="noiseGradient" heroBackground="horizonGlow">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="Buono"
|
|
logoImageSrc="http://img.b2bpic.net/free-photo/pasta-raw-tasty-word-shaped-with-oil-red-sliced-tomatoes-greens-surrounding-dark-floor_179666-138.jpg"
|
|
ctaButton={{
|
|
text: "Book Table", href: "#contact"}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterSimpleCard
|
|
brand="Buono Italian"
|
|
columns={[
|
|
{
|
|
title: "Navigation", items: [
|
|
{
|
|
label: "About", href: "#about"},
|
|
{
|
|
label: "Menu", href: "#menu"},
|
|
{
|
|
label: "Team", href: "#team"},
|
|
],
|
|
},
|
|
{
|
|
title: "Contact", items: [
|
|
{
|
|
label: "Email", href: "mailto:hello@buono.it"},
|
|
{
|
|
label: "Phone", href: "tel:+1234567890"},
|
|
],
|
|
},
|
|
]}
|
|
copyright="© 2024 Buono Italian. All rights reserved."
|
|
links={[
|
|
{
|
|
label: "Privacy Policy", href: "#"},
|
|
{
|
|
label: "Terms of Service", href: "#"},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|