Files
b23249d4-a6ab-43e2-af26-296…/src/components/Layout.tsx

124 lines
2.8 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
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": "Inventory",
"href": "#inventory"
},
{
"name": "FAQ",
"href": "#faq"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="ARV GROUPE"
ctaButton={{
text: "Sell Vehicle",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="ARV GROUPE"
columns={[
{
title: "Company",
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Inventory",
href: "#inventory",
},
{
label: "Careers",
href: "#",
},
],
},
{
title: "Marketplace",
items: [
{
label: "Facebook Marketplace",
href: "https://facebook.com",
},
{
label: "Swisstruck.ch",
href: "https://swisstruck.ch",
},
{
label: "All Listings",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
copyright="© 2024 ARV Groupe. All rights reserved."
links={[
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/business-woman-looking-auto-mobile-car-showroom_1303-21308.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}