Files
e887b79c-be5f-458f-9357-d40…/src/components/Layout.tsx

99 lines
2.3 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarInline from '@/components/ui/NavbarInline';
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": "Facilities",
"href": "#facilities"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Highlights",
"href": "#highlights"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarInline
logo="IndustrialPark Business"
ctaButton={{
text: "Contact Us",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="IndustrialPark Business"
columns={[
{
title: "Navigation",
items: [
{
label: "About",
href: "#about",
},
{
label: "Facilities",
href: "#facilities",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Use",
href: "#",
},
],
},
]}
copyright="© 2024 IndustrialPark Business. All rights reserved."
links={[
{
label: "LinkedIn",
href: "https://linkedin.com",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/aerial-view-new-cars-parking-port-automobile-factory_335224-734.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}