Files
7b5d792d-de93-4f0b-af8f-976…/src/components/Layout.tsx

111 lines
2.5 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Portfolio",
"href": "#portfolio"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="aurora" heroBackground="lightRaysCorner">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="ARC"
ctaButton={{
text: "Inquire",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="ARC Architecture & Construction"
columns={[
{
title: "Navigate",
items: [
{
label: "Portfolio",
href: "#portfolio",
},
{
label: "About",
href: "#about",
},
{
label: "Pricing",
href: "#pricing",
},
],
},
{
title: "Company",
items: [
{
label: "Contact",
href: "#contact",
},
{
label: "Partners",
href: "#",
},
{
label: "Careers",
href: "#",
},
],
},
]}
copyright="© 2024 ARC Construction. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Use",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/close-up-hand-drawing-blueprint-office_23-2148203979.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}