89 lines
1.9 KiB
TypeScript
89 lines
1.9 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": "O nas",
|
|
"href": "#about"
|
|
},
|
|
{
|
|
"name": "Menu",
|
|
"href": "#menu"
|
|
},
|
|
{
|
|
"name": "Doświadczenie",
|
|
"href": "#experience"
|
|
},
|
|
{
|
|
"name": "Pizza",
|
|
"href": "#pizza"
|
|
},
|
|
{
|
|
"name": "Opinie",
|
|
"href": "#testimonials"
|
|
},
|
|
{
|
|
"name": "Rezerwacja",
|
|
"href": "#contact"
|
|
},
|
|
{
|
|
"name": "Hero",
|
|
"href": "#hero"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="bounce" siteBackground="noiseGradient" heroBackground="radialGradient">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloating
|
|
logo="PIZZAIOLO"
|
|
ctaButton={{
|
|
text: "Zarezerwuj",
|
|
href: "#contact",
|
|
}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterBrand
|
|
brand="PIZZAIOLO KRUCZA"
|
|
columns={[
|
|
{
|
|
items: [
|
|
{
|
|
label: "Krucza 12, Warszawa",
|
|
href: "#",
|
|
},
|
|
{
|
|
label: "kontakt@pizzaiolo.pl",
|
|
href: "mailto:kontakt@pizzaiolo.pl",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
items: [
|
|
{
|
|
label: "Instagram",
|
|
href: "https://instagram.com",
|
|
},
|
|
{
|
|
label: "Facebook",
|
|
href: "https://facebook.com",
|
|
},
|
|
],
|
|
},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|