Files
8b68c6a0-27df-4ac9-a9a3-c61…/src/components/Layout.tsx

103 lines
2.3 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": "Home",
"href": "#hero"
},
{
"name": "Showcase",
"href": "#showcase"
},
{
"name": "Finance",
"href": "#finance"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Bento Products",
"href": "#bento-products"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Team",
"href": "#team"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="floatingGradient" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="A S MOTORS"
ctaButton={{
text: "Test Ride",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="A S Motors Suzuki"
columns={[
{
title: "Company",
items: [
{
label: "About Us",
href: "#",
},
{
label: "Services",
href: "#",
},
],
},
{
title: "Bikes",
items: [
{
label: "Sports",
href: "#",
},
{
label: "Scooters",
href: "#",
},
],
},
]}
copyright="© 2024 A S Motors. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Use",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/futuristic-representation-fast-water-vehicle_23-2151048082.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}