Files
21b30922-5b82-4e81-9062-584…/src/components/Layout.tsx

86 lines
2.4 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": "About", "href": "#about"
},
{
"name": "Services", "href": "#services"
},
{
"name": "Pricing", "href": "#pricing"
},
{
"name": "Team", "href": "#team"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Salon Elegance"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=0pr9u4"
ctaButton={{
text: "Book Now", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Services", items: [
{
label: "Haircut", href: "#services"},
{
label: "Coloring", href: "#services"},
{
label: "Skin Care", href: "#services"},
],
},
{
title: "Company", items: [
{
label: "About Us", href: "#about"},
{
label: "Our Team", href: "#team"},
{
label: "FAQ", href: "#faq"},
],
},
{
title: "Legal", items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Use", href: "#"},
],
},
]}
leftText="© 2024 Salon Elegance. All rights reserved."
rightText="Premium Salon Services in the Heart of the City."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}