Files
1184ccd6-6ac1-443b-a240-c42…/src/components/Layout.tsx

64 lines
2.0 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
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: "Meni", href: "#products" },
{ name: "Lokacije", href: "#locations" },
{ name: "Kontakt", href: "#contact" },
{ name: "Features", href: "#features" },
{ name: "Metrics", href: "#metrics" },
{ name: "Testimonials", href: "#testimonials" }
];
return (
<StyleProvider buttonVariant="default" siteBackground="gridDots" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="CARIBIC"
ctaButton={{
text: "Naruči odmah", href: "#order"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="CARIBIC"
columns={[
{
items: [
{ label: "Meni", href: "#products" },
{ label: "Akcije", href: "#" },
{ label: "Lokacije", href: "#locations" }
]
},
{
items: [
{ label: "O nama", href: "#" },
{ label: "Franšiza", href: "#" },
{ label: "Blog", href: "#" }
]
},
{
items: [
{ label: "Kontakt", href: "#" },
{ label: "Moj nalog", href: "#" },
{ label: "Korpa", href: "#" }
]
}
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}