Files
7304401e-0529-4e8f-a036-334…/src/components/Layout.tsx

57 lines
2.1 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
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": "בית", "href": "#hero" },
{ "name": "אודות", "href": "#about" },
{ "name": "תפריט", "href": "#menu" },
{ "name": "צרו קשר", "href": "#contact" },
{ "name": "Features", "href": "#features" },
{ "name": "Testimonials", "href": "#testimonials" },
{ "name": "Faq", "href": "#faq" }
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="noise" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="קפה אמירה"
logoImageSrc="http://img.b2bpic.net/free-vector/elegant-coffee-shop-typography-logo_742173-4123.jpg"
ctaButton={{
text: "הזמן מקום", href: "#contact"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "ניווט", items: [
{ label: "בית", href: "#hero" },
{ label: "אודות", href: "#about" },
{ label: "תפריט", href: "#menu" },
],
},
{
title: "קשר", items: [
{ label: "050-1234567", href: "tel:0501234567" },
{ label: "info@cafeamira.co.il", href: "mailto:info@cafeamira.co.il" },
],
},
]}
leftText="© 2024 קפה אמירה"
rightText="כל הזכויות שמורות"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}