Files
e25bd345-c02f-40de-9890-800…/src/components/Layout.tsx
2026-06-22 17:09:16 +00:00

127 lines
2.6 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
import NavbarInline from '@/components/ui/NavbarInline';
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": "Models",
"href": "#models"
},
{
"name": "Experience",
"href": "#experience"
},
{
"name": "Ownership",
"href": "#ownership"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Performance",
"href": "#performance"
}
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="floatingGradient" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarInline
logo="BUGATTI"
ctaButton={{
text: "Book Test Drive",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="BUGATTI"
columns={[
{
title: "Models",
items: [
{
label: "Chiron",
href: "#",
},
{
label: "Mistral",
href: "#",
},
{
label: "Bolide",
href: "#",
},
],
},
{
title: "Experience",
items: [
{
label: "History",
href: "#",
},
{
label: "Events",
href: "#",
},
{
label: "Lifestyle",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
{
label: "Cookie Policy",
href: "#",
},
],
},
]}
copyright="© 2024 Bugatti Automobiles S.A.S."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Legal Notice",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}