Files
3971ebab-5720-4e11-8011-9f7…/src/components/Layout.tsx

79 lines
2.4 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarFloating from '@/components/ui/NavbarFloating';
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", "href": "#about"
},
{
"name": "Services", "href": "#services"
},
{
"name": "Contatti", "href": "#contact"
},
{
"name": "Why Us", "href": "#why-us"
},
{
"name": "Team", "href": "#team"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="noiseGradient" heroBackground="lightRaysCorner">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Clima Service"
ctaButton={{
text: "Richiedi Preventivo", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Clima Service"
columns={[
{
title: "Informazioni", items: [
{
label: "Chi Siamo", href: "#about"},
{
label: "Servizi", href: "#services"},
{
label: "Privacy Policy", href: "#"},
],
},
{
title: "Contatti", items: [
{
label: "Telefono: +39 000 000 000", href: "tel:+39000000000"},
{
label: "Email: info@climaservice.it", href: "mailto:info@climaservice.it"},
{
label: "Sede: Milano, Italia", href: "#"},
],
},
]}
copyright="© 2024 Clima Service. Tutti i diritti riservati."
links={[]}
imageSrc="http://img.b2bpic.net/free-photo/meticulous-wiremen-expertly-refilling-freon-external-air-conditioner-while-using-manifold-measurement-device-closely-measure-pressure-hvac-system-ensuring-perfect-cooling-performance_482257-68069.jpg?_wi=1"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}