Files
6c569ddf-def3-4924-9195-840…/src/components/Layout.tsx

84 lines
2.4 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "About", "href": "#about"
},
{
"name": "Services", "href": "#services"
},
{
"name": "Testimonials", "href": "#testimonials"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Products", "href": "#products"
},
{
"name": "Metrics", "href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Landscape Christchurch"
logoImageSrc="http://img.b2bpic.net/free-vector/gardening-labels-template-design_23-2149382121.jpg"
ctaButton={{
text: "Get a Quote", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Landscape Christchurch"
columns={[
{
title: "Quick Links", items: [
{
label: "About Us", href: "#about"},
{
label: "Our Services", href: "#services"},
{
label: "Testimonials", href: "#testimonials"},
{
label: "Contact", href: "#contact"},
],
},
{
title: "Contact Details", items: [
{
label: "Phone: 022 898 0029", href: "tel:0228980029"},
{
label: "Christchurch, New Zealand", href: "#"},
],
},
]}
copyright="© 2024 Landscape Christchurch. All rights reserved."
links={[
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}