Files
c5e9c68f-aa94-401d-b25e-0a2…/src/components/Layout.tsx

72 lines
2.0 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Features", "href": "#features"
},
{
"name": "Products", "href": "#products"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="noiseGradient" heroBackground="lightRaysCorner">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="FinCommerce"
logoImageSrc="http://img.b2bpic.net/free-photo/25th-years-anniversary-celebration-3d-render_460848-8295.jpg"
ctaButton={{
text: "Get Started", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="FinCommerce"
columns={[
{
title: "Company", items: [
{
label: "About", href: "#"},
],
},
{
title: "Legal", items: [
{
label: "Privacy", href: "#"},
],
},
],
copyright="© 2024 FinCommerce. All rights reserved."
links={[
{
label: "Twitter", href: "#"},
]}
imageSrc="http://img.b2bpic.net/free-photo/25th-years-anniversary-celebration-3d-render_460848-8295.jpg"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}