Files
158f090d-d4f5-48c1-aba2-b1c…/src/components/Layout.tsx

88 lines
2.4 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": "Shop", "href": "#products"
},
{
"name": "About", "href": "#about"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Features", "href": "#features"
},
{
"name": "Pricing", "href": "#pricing"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="The Dollhouse Collective"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=v3ck7c"
ctaButton={{
text: "Shop Now", href: "#products"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Shop", items: [
{
label: "Bundles", href: "#"},
{
label: "Wigs", href: "#"},
{
label: "Collections", href: "#"},
],
},
{
title: "Company", items: [
{
label: "About Us", href: "#about"},
{
label: "Contact", href: "#contact"},
{
label: "Privacy Policy", href: "#"},
],
},
{
title: "Socials", items: [
{
label: "Instagram", href: "#"},
{
label: "TikTok", href: "#"},
{
label: "Facebook", href: "#"},
],
},
]}
leftText="© 2024 The Dollhouse Collective"
rightText="Designed for the dolls."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}