Files
f03fa937-1716-4a75-a67c-456…/src/components/Layout.tsx

90 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"
logoImageSrc="http://img.b2bpic.net/free-vector/collection-four-organic-bakery-labels-watercolor-style_23-2147627357.jpg"
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>
);
}