Files
ed6c1070-2503-417d-a379-e26…/src/components/Layout.tsx

74 lines
2.0 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
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": "#"
},
{
"name": "Products", "href": "#products"
},
{
"name": "Gallery", "href": "#gallery"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "About", "href": "#about"
},
{
"name": "Features", "href": "#features"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Croch-Slay"
logoImageSrc="http://img.b2bpic.net/free-vector/colorful-minimal-logo-set-retro-style_23-2148369773.jpg"
ctaButton={{
text: "Shop Now", href: "#products"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Shop", items: [
{
label: "New Arrivals", href: "#"},
{
label: "All Products", href: "#products"},
],
},
{
title: "Support", items: [
{
label: "Shipping Info", href: "#"},
{
label: "Custom Orders", href: "#"},
],
},
]}
leftText="© 2026 Croch-Slay"
rightText="Made with 🩷 & Yarn"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}