Files
ae6c83bb-dfec-4db1-9b42-eac…/src/components/Layout.tsx

102 lines
2.2 KiB
TypeScript

import FooterSimple from '@/components/sections/footer/FooterSimple';
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": "Services",
"href": "#services"
},
{
"name": "Reviews",
"href": "#reviews"
},
{
"name": "FAQ",
"href": "#faq"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Team",
"href": "#team"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="noiseGradient" heroBackground="lightRaysCorner">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="AC&HS Meridian"
ctaButton={{
text: "Schedule Service",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="Air Conditioning & Heating Service of Meridian"
columns={[
{
title: "Company",
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Services",
href: "#services",
},
],
},
{
title: "Support",
items: [
{
label: "Reviews",
href: "#reviews",
},
{
label: "FAQ",
href: "#faq",
},
],
},
]}
copyright="© 2024 Air Conditioning & Heating Service of Meridian, Inc."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}