Files
404c7fb2-4d9f-465a-b462-3fa…/src/components/Layout.tsx
2026-06-22 20:21:18 +00:00

106 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": "Início",
"href": "#hero"
},
{
"name": "Serviços",
"href": "#servicos"
},
{
"name": "Produtos",
"href": "#produtos"
},
{
"name": "Sobre",
"href": "#sobre"
},
{
"name": "Diferenciais",
"href": "#diferenciais"
},
{
"name": "Avaliacoes",
"href": "#avaliacoes"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Nohill Club"
logoImageSrc="https://images.unsplash.com/photo-1599305445671-ac291c95aaa9?w=800&q=80"
ctaButton={{
text: "Agendar no WhatsApp",
href: "https://wa.me/5524999999999",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Nohill Club",
items: [
{
label: "Sobre",
href: "#sobre",
},
{
label: "Serviços",
href: "#servicos",
},
],
},
{
title: "Redes Sociais",
items: [
{
label: "Instagram",
href: "#",
},
{
label: "Facebook",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Termos de Uso",
href: "#",
},
{
label: "Privacidade",
href: "#",
},
],
},
]}
leftText="© 2024 Nohill Club - Volta Redonda, RJ"
rightText="Todos os direitos reservados."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}