Files
12db41ff-6486-4314-8fb4-334…/src/components/Layout.tsx
2026-06-14 19:26:48 +00:00

75 lines
1.7 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Facebook, Instagram } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Highlights",
"href": "#highlights"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="4 Ventos"
ctaButton={{
text: "Book Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="Pousada 4 Ventos - Arraial D'Ajuda"
copyright="© 2024 Pousada 4 Ventos. All rights reserved."
socialLinks={[
{
icon: Instagram,
href: "#",
},
{
icon: Facebook,
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}