Files
f03fa937-1716-4a75-a67c-456…/src/components/Layout.tsx
kudinDmitriyUp 2fb1a3b499 Initial commit
2026-06-08 09:55:07 +00:00

121 lines
2.6 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": "#hero"
},
{
"name": "About Us",
"href": "#about"
},
{
"name": "Our Products",
"href": "#products"
},
{
"name": "How It Works",
"href": "#how-it-works"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "FAQ",
"href": "#faq"
},
{
"name": "Contact",
"href": "#contact"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Sweet Delights Bakery"
ctaButton={{
text: "Order Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Products",
items: [
{
label: "Pastries",
href: "#products",
},
{
label: "Cakes",
href: "#products",
},
{
label: "Bread",
href: "#products",
},
{
label: "Custom Orders",
href: "#faq",
},
],
},
{
title: "About Us",
items: [
{
label: "Our Story",
href: "#about",
},
{
label: "Our Team",
href: "#",
},
{
label: "Careers",
href: "#",
},
],
},
{
title: "Support",
items: [
{
label: "FAQ",
href: "#faq",
},
{
label: "Contact Us",
href: "#contact",
},
{
label: "Loyalty Program",
href: "#faq",
},
],
},
]}
leftText="© 2024 Sweet Delights Bakery. All rights reserved."
rightText="Baked with Love."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}