Files
7bacf5a1-3260-4501-bcb7-d28…/src/components/Layout.tsx
2026-06-14 22:20:28 +00:00

123 lines
2.5 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": "Stays",
"href": "#"
},
{
"name": "Experiences",
"href": "#"
},
{
"name": "Become a Host",
"href": "#"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Comparison",
"href": "#comparison"
}
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="VacationMarket"
ctaButton={{
text: "Sign Up",
href: "#",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="VacationMarket"
columns={[
{
title: "Product",
items: [
{
label: "Stays",
href: "#",
},
{
label: "Experiences",
href: "#",
},
{
label: "Host Tools",
href: "#",
},
],
},
{
title: "Company",
items: [
{
label: "About",
href: "#",
},
{
label: "Careers",
href: "#",
},
{
label: "Press",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
],
},
]}
copyright="© 2024 VacationMarket Inc. All rights reserved."
links={[
{
label: "Twitter",
href: "#",
},
{
label: "Instagram",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}