79 lines
1.8 KiB
TypeScript
79 lines
1.8 KiB
TypeScript
import FooterMinimal from '@/components/sections/footer/FooterMinimal';
|
|
import NavbarInline from '@/components/ui/NavbarInline';
|
|
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
|
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
|
|
import { Facebook, Instagram, Phone } from "lucide-react";
|
|
import { Outlet } from 'react-router-dom';
|
|
import { StyleProvider } from "@/components/ui/StyleProvider";
|
|
|
|
export default function Layout() {
|
|
const navItems = [
|
|
{
|
|
"name": "Services",
|
|
"href": "#services"
|
|
},
|
|
{
|
|
"name": "About",
|
|
"href": "#about"
|
|
},
|
|
{
|
|
"name": "Reviews",
|
|
"href": "#reviews"
|
|
},
|
|
{
|
|
"name": "Contact",
|
|
"href": "#contact"
|
|
},
|
|
{
|
|
"name": "Hero",
|
|
"href": "#hero"
|
|
},
|
|
{
|
|
"name": "Features",
|
|
"href": "#features"
|
|
},
|
|
{
|
|
"name": "Faq",
|
|
"href": "#faq"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="bounce" siteBackground="gridDots" heroBackground="lightRaysCenter">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarInline
|
|
logo="San Jose Drain & Main"
|
|
ctaButton={{
|
|
text: "(408) 854-2863",
|
|
href: "tel:4088542863",
|
|
}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterMinimal
|
|
brand="San Jose Drain & Main"
|
|
copyright="© 2024 San Jose Drain & Main. All rights reserved. | (408) 854-2863"
|
|
socialLinks={[
|
|
{
|
|
icon: Instagram,
|
|
href: "#",
|
|
},
|
|
{
|
|
icon: Facebook,
|
|
href: "#",
|
|
},
|
|
{
|
|
icon: Phone,
|
|
href: "tel:4088542863",
|
|
},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|