63 lines
1.9 KiB
TypeScript
63 lines
1.9 KiB
TypeScript
import FooterMinimal from '@/components/sections/footer/FooterMinimal';
|
|
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
|
|
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
|
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
|
|
import { Facebook, Instagram } from "lucide-react";
|
|
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": "Contact", "href": "#contact"
|
|
},
|
|
{
|
|
"name": "Packages", "href": "#packages"
|
|
},
|
|
{
|
|
"name": "Metrics", "href": "#metrics"
|
|
},
|
|
{
|
|
"name": "Testimonials", "href": "#testimonials"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="magnetic" siteBackground="noise" heroBackground="gradientBars">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="AutoCare"
|
|
logoImageSrc="http://img.b2bpic.net/free-photo/taxi-car-with-pin-pointer-mark-location-smartphone-online-transportation-service-concept-web-banner-cartoon-icon-symbol-background-3d-illustration_56104-1999.jpg"
|
|
ctaButton={{
|
|
text: "Book Now", href: "#contact"}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterMinimal
|
|
brand="AutoCare"
|
|
copyright="© 2024 AutoCare Service. All rights reserved."
|
|
socialLinks={[
|
|
{
|
|
icon: "Facebook", href: "#"},
|
|
{
|
|
icon: "Instagram", href: "#"},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|