Files
4925a8d5-7191-44f7-a82f-c04…/src/components/Layout.tsx

81 lines
2.3 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Testimonials", "href": "#testimonials"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "About", "href": "#about"
},
{
"name": "Desserts", "href": "#desserts"
},
{
"name": "Metrics", "href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="expand" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Mio Mondo"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=l91tng"
ctaButton={{
text: "Reserve Now", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Mio Mondo Sousse"
columns={[
{
title: "Location", items: [
{
label: "Boulevard du 14 Janvier", href: "#"},
{
label: "Khézema, Sousse, Tunisia", href: "#"},
],
},
{
title: "Contact", items: [
{
label: "+216 73 273 243", href: "tel:+21673273243"},
{
label: "+216 50 727 071", href: "tel:+21650727071"},
],
},
]}
copyright="© 2024 Mio Mondo Sousse. All rights reserved."
imageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=l91tng"
links={[
{
label: "Terms of Service", href: "#"},
{
label: "Privacy Policy", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}