Files
75580c1c-615b-4173-af76-e1b…/src/components/Layout.tsx

82 lines
2.5 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Sobre", "href": "#about"
},
{
"name": "Serviços", "href": "#services"
},
{
"name": "Preços", "href": "#pricing"
},
{
"name": "Contactos", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Features", "href": "#features"
},
{
"name": "Metrics", "href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="shift" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Premiumlab"
logoImageSrc="http://img.b2bpic.net/free-photo/top-view-metallic-straws-black-background_23-2148289740.jpg"
ctaButton={{
text: "Agendar Consulta", href: "#contact"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Premiumlab"
columns={[
{
title: "Serviços", items: [
{
label: "Implantes", href: "#"},
{
label: "Próteses", href: "#"},
],
},
{
title: "Contactos", items: [
{
label: "Lisboa, Portugal", href: "#"},
{
label: "geral@premiumlab.pt", href: "mailto:geral@premiumlab.pt"},
],
},
]}
copyright="© 2024 Premiumlab. Todos os direitos reservados."
links={[
{
label: "Privacidade", href: "#"},
{
label: "Termos", href: "#"},
]}
imageSrc="http://img.b2bpic.net/free-photo/top-view-metallic-straws-black-background_23-2148289740.jpg"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}