Files
b1ef9220-9bd2-4d2e-9a57-6de…/src/components/Layout.tsx
kudinDmitriyUp 167600ca38 Initial commit
2026-05-18 23:08:38 +00:00

117 lines
2.5 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
import NavbarCentered from '@/components/ui/NavbarCentered';
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 Flowers",
"href": "#products"
},
{
"name": "Services",
"href": "#features"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "FAQs",
"href": "#faq"
},
{
"name": "Partners",
"href": "#social-proof"
},
{
"name": "Contact",
"href": "#contact"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
ctaButton={{
text: "Order Now",
href: "#products",
}}
logo="Kentucky Blooms"
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Kentucky Blooms"
columns={[
{
items: [
{
label: "Home",
href: "#hero",
},
{
label: "About Us",
href: "#about",
},
{
label: "Our Flowers",
href: "#products",
},
],
},
{
items: [
{
label: "Services",
href: "#features",
},
{
label: "Weddings",
href: "#features",
},
{
label: "Subscriptions",
href: "#features",
},
],
},
{
items: [
{
label: "Contact Us",
href: "#contact",
},
{
label: "FAQs",
href: "#faq",
},
{
label: "Privacy Policy",
href: "#",
},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}