Files
faed1b34-b808-48ef-af94-62b…/src/components/Layout.tsx

111 lines
2.5 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "Home",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Services",
"href": "#services"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Portfolio",
"href": "#portfolio"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Workflow",
"href": "#workflow"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="WebC"
ctaButton={{
text: "Get Started",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="WebC"
columns={[
{
title: "Services",
items: [
{
label: "Website Development",
href: "#services",
},
{
label: "Business Systems",
href: "#services",
},
{
label: "Maintenance",
href: "#services",
},
],
},
{
title: "Company",
items: [
{
label: "About",
href: "#about",
},
{
label: "Portfolio",
href: "#portfolio",
},
{
label: "Contact",
href: "#contact",
},
],
},
]}
copyright="© 2024 WebC Development. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/ecology-fresh-lush-natural-nature_53876-133745.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}