Files
cd941be1-3233-4259-b8a7-868…/src/components/Layout.tsx

86 lines
2.6 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
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": "Features", "href": "#features"
},
{
"name": "How It Works", "href": "#steps"
},
{
"name": "Testimonials", "href": "#testimonials"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Social Proof", "href": "#social-proof"
},
{
"name": "Faq", "href": "#faq"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="3D Estates"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=b0l62i"
ctaButton={{
text: "Start Your Tour", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Platform", items: [
{
label: "Features", href: "#features"},
{
label: "Pricing", href: "#"},
{
label: "Support", href: "#"},
],
},
{
title: "Company", items: [
{
label: "About Us", href: "#"},
{
label: "Careers", href: "#"},
{
label: "Contact", href: "#"},
],
},
{
title: "Legal", items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
],
},
]}
leftText="© 2024 3D Estates. All rights reserved."
rightText="Designed for real estate innovators."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}