Files
9d8cd883-aa08-45f1-ab0a-d02…/src/components/Layout.tsx

103 lines
2.3 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "#features"
},
{
"name": "Portfolio",
"href": "#portfolio"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="SOIRÉE"
ctaButton={{
text: "Enquire Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="SOIRÉE"
columns={[
{
title: "Company",
items: [
{
label: "About Us",
href: "#",
},
{
label: "Services",
href: "#features",
},
],
},
{
title: "Support",
items: [
{
label: "Consultations",
href: "#contact",
},
{
label: "Privacy",
href: "#",
},
],
},
]}
copyright="© 2024 Soirée Events & Catering. All rights reserved."
links={[
{
label: "Instagram",
href: "#",
},
{
label: "LinkedIn",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/beauty-details-this-lovely-table_8353-9904.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}