56 lines
1.8 KiB
TypeScript
56 lines
1.8 KiB
TypeScript
import FooterBrand from '@/components/sections/footer/FooterBrand';
|
|
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: "Reviews", href: "#testimonials" },
|
|
{ name: "Pricing", href: "#pricing" },
|
|
{ name: "Hero", href: "#hero" },
|
|
{ name: "Metrics", href: "#metrics" },
|
|
{ name: "Faq", href: "#faq" }
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="gradientBars">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="Takla"
|
|
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=5bsjb4"
|
|
ctaButton={{
|
|
text: "Book Now", href: "#contact"}}
|
|
navItems={navItems}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterBrand
|
|
brand="Takla Car Detailing"
|
|
columns={[
|
|
{
|
|
items: [
|
|
{ label: "Services", href: "#services" },
|
|
{ label: "About", href: "#about" },
|
|
],
|
|
},
|
|
{
|
|
items: [
|
|
{ label: "Privacy Policy", href: "#" },
|
|
{ label: "Terms of Service", href: "#" },
|
|
],
|
|
},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|