Files
1d55c334-649e-4d4b-9ad7-e51…/src/components/Layout.tsx
2026-06-14 10:42:04 +00:00

104 lines
2.4 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
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": "Services",
"href": "#features"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Team",
"href": "#team"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="gridDots" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="PlumbTech"
logoImageSrc="https://images.unsplash.com/photo-1585821555634-e9216760cece?auto=format&fit=crop&w=100&h=100&q=80"
ctaButton={{
text: "Get Quote",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
imageSrc="http://img.b2bpic.net/free-photo/grille-pipe_23-2148107010.jpg"
brand="PlumbTech"
columns={[
{
title: "Company",
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Careers",
href: "#",
},
],
},
{
title: "Support",
items: [
{
label: "Contact",
href: "#contact",
},
{
label: "FAQ",
href: "#faq",
},
],
},
]}
copyright="© 2024 PlumbTech Services. All rights reserved."
links={[
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}