Files
5ecadfd5-587c-4e30-81dc-c8e…/src/components/Layout.tsx
2026-06-17 20:39:18 +00:00

92 lines
2.0 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "Our Philosophy",
"href": "#about"
},
{
"name": "Collections",
"href": "#products"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Social Proof",
"href": "#social-proof"
}
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="gridLines" heroBackground="radialGradient">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="HOUSE OF HOBOS"
ctaButton={{
text: "Shop Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Shop",
items: [
{
label: "Packs",
href: "#",
},
{
label: "Apparel",
href: "#",
},
],
},
{
title: "Company",
items: [
{
label: "About",
href: "#",
},
{
label: "Careers",
href: "#",
},
],
},
]}
leftText="© 2024 House of Hobos"
rightText="All rights reserved."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}