Files
153f9872-dcc5-4935-9d1c-e4b…/src/components/Layout.tsx

82 lines
2.2 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": "Sobre", "href": "#about"
},
{
"name": "Bolos", "href": "#products"
},
{
"name": "Contato", "href": "#contact"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonials", "href": "#testimonials"
},
{
"name": "Faq", "href": "#faq"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="noiseGradient" heroBackground="horizonGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Delícias Confeitaria"
logoImageSrc="http://img.b2bpic.net/free-photo/love-bakery_23-2147989464.jpg"
ctaButton={{
text: "Encomendar", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Confeitaria", items: [
{
label: "Sobre", href: "#about"},
{
label: "Cardápio", href: "#products"},
],
},
{
title: "Atendimento", items: [
{
label: "FAQ", href: "#faq"},
{
label: "Contato", href: "#contact"},
],
},
{
title: "Legal", items: [
{
label: "Termos", href: "#"},
{
label: "Privacidade", href: "#"},
],
},
]}
leftText="© 2024 Delícias Confeitaria."
rightText="Todos os direitos reservados."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}