Files
5a40524d-9e77-4a2e-9598-b5d…/src/components/Layout.tsx
2026-06-23 19:16:41 +00:00

103 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": "Products",
"href": "#products"
},
{
"name": "Performance",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Pricing",
"href": "#pricing"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Swimbait Supply"
ctaButton={{
text: "Shop Now",
href: "/shop",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Swimbait Supply"
columns={[
{
title: "Shop",
items: [
{
label: "New Arrivals",
href: "#",
},
{
label: "Best Sellers",
href: "#",
},
],
},
{
title: "Company",
items: [
{
label: "About Us",
href: "#",
},
{
label: "Contact",
href: "#",
},
],
},
]}
copyright="© 2024 Swimbait Supply. All rights reserved."
links={[
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/vintage-collage-person-doing-kayaking-road_23-2149438109.jpg"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}