Files
fc2f3965-0bb9-4e1f-836c-a74…/src/components/Layout.tsx

124 lines
2.7 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "About",
"href": "#about"
},
{
"name": "Services",
"href": "#services"
},
{
"name": "Team",
"href": "#team"
},
{
"name": "Reviews",
"href": "#testimonials"
},
{
"name": "Products",
"href": "#products"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Akari Barbershop"
ctaButton={{
text: "Book Online",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Akari Barbershop"
columns={[
{
title: "Services",
items: [
{
label: "Haircuts",
href: "#services",
},
{
label: "Beard",
href: "#services",
},
{
label: "Shaves",
href: "#services",
},
],
},
{
title: "Company",
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Team",
href: "#team",
},
{
label: "Contact",
href: "#contact",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
copyright="© 2024 Akari Barbershop. All rights reserved."
links={[
{
label: "Facebook",
href: "#",
},
{
label: "Instagram",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/front-view-hairstilyst-giving-haircut_23-2148506294.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}