Files
cca1001a-245d-4df8-9bf6-a2d…/src/components/Layout.tsx

64 lines
1.4 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
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": "About",
"href": "#about"
},
{
"name": "Services",
"href": "#services"
},
{
"name": "Products",
"href": "#products"
},
{
"name": "Reviews",
"href": "#testimonials"
},
{
"name": "FAQ",
"href": "#faq"
},
{
"name": "Contact",
"href": "#contact"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
ctaButton={{
text: "Get a Quote",
href: "#contact",
}}
logo="HVAC Pros"
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="HVAC Pros"
copyright="© 2023 HVAC Pros. All rights reserved."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}