Files
7a4d67b4-2aef-45d1-8d37-2c4…/src/components/Layout.tsx

80 lines
2.1 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": "Pricing", "href": "#pricing"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Features", "href": "#features"
},
{
"name": "Products", "href": "#products"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Merydian AI"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=14v7u3"
ctaButton={{
text: "Get Started", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Merydian AI"
columns={[
{
title: "Company", items: [
{
label: "About", href: "#"},
{
label: "Careers", href: "#"},
],
},
{
title: "Solutions", items: [
{
label: "Automation", href: "#"},
{
label: "Vision", href: "#"},
],
},
]}
copyright="© 2024 Merydian AI. All rights reserved."
links={[
{
label: "Privacy", href: "#"},
{
label: "Terms", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}