Files
461ecb52-1e09-4d4d-b865-0b3…/src/components/Layout.tsx
2026-06-13 21:24:25 +00:00

110 lines
2.4 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": "Services",
"href": "#services"
},
{
"name": "Gallery",
"href": "#gallery"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="arrow" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="La Villa Mauresque"
ctaButton={{
text: "Book Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="La Villa Mauresque"
columns={[
{
title: "Useful Links",
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Services",
href: "#services",
},
{
label: "Gallery",
href: "#gallery",
},
{
label: "Contact",
href: "#contact",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
copyright="© 2024 La Villa Mauresque. All rights reserved."
links={[
{
label: "Instagram",
href: "#",
},
{
label: "Facebook",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}