Files
abd1311a-0a98-421e-b985-76d…/src/components/Layout.tsx

58 lines
2.0 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
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: "Services", href: "#services" },
{ name: "Projects", href: "#projects" },
{ name: "Why Us", href: "#why-us" },
{ name: "Reviews", href: "#reviews" },
{ name: "Hero", href: "#hero" },
{ name: "Process", href: "#process" },
{ name: "Contact", href: "#contact" }
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Pešić Parketi"
logoImageSrc="http://img.b2bpic.net/free-vector/multicolor-wooden-texture-collection_1189-271.jpg"
ctaButton={{ text: "Call Now", href: "tel:+38269000000" }}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Pešić Parketi Podgorica"
columns={[
{
items: [
{ label: "Services", href: "#services" },
{ label: "Projects", href: "#projects" },
{ label: "About Us", href: "#why-us" }
]
},
{
items: [
{ label: "Contact", href: "tel:+38269000000" },
{ label: "Privacy Policy", href: "#" },
{ label: "Terms of Service", href: "#" }
]
}
]
}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}