Files
2ad80e2b-acd1-462c-9ceb-b6a…/src/components/Layout.tsx
2026-06-21 12:01:15 +00:00

106 lines
2.4 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "Services",
"href": "#services"
},
{
"name": "Gallery",
"href": "#gallery"
},
{
"name": "Reviews",
"href": "#reviews"
},
{
"name": "Services Overview",
"href": "#services-overview"
},
{
"name": "Product List",
"href": "#product-list"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Vantage"
ctaButton={{
text: "Get Quote",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Vantage Paint Protection and Tint"
columns={[
{
title: "Services",
items: [
{
label: "Paint Protection",
href: "#",
},
{
label: "Window Tint",
href: "#",
},
{
label: "Color Wrap",
href: "#",
},
],
},
{
title: "Contact",
items: [
{
label: "57 Parris Ave, Nashville",
href: "#",
},
{
label: "(615) 879-3759",
href: "tel:+16158793759",
},
],
},
]}
copyright="© 2024 Vantage Paint Protection and Tint. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}