Update src/components/Layout.tsx

This commit is contained in:
2026-06-23 17:19:28 +00:00
parent 96f4725e09
commit d79dbac2b4

View File

@@ -1,100 +1,55 @@
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": "Home",
"href": "#"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Capabilities",
"href": "#capabilities"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
{ name: "Home", href: "#" },
{ name: "Features", href: "#features" },
{ name: "Capabilities", href: "#capabilities" },
{ name: "Testimonials", href: "#testimonials" },
{ name: "About", href: "#about" },
{ name: "Metrics", href: "#metrics" }
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="gridDots" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<StyleProvider>
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="LeadsFlowAI"
ctaButton={{
text: "Get Started",
href: "#contact",
}}
navItems={navItems} />
logo="LeadsFlowAI"
logoImageSrc="http://img.b2bpic.net/free-photo/innovation-development-rocket-graphic-concept_53876-120019.jpg"
ctaButton={{ text: "Get Started", href: "#contact" }}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="LeadsFlowAI"
columns={[
{
title: "Company",
items: [
brand="LeadsFlowAI"
columns={[
{
label: "About",
href: "#",
title: "Company", items: [
{ label: "About", href: "#" },
{ label: "Careers", href: "#" }
]
},
{
label: "Careers",
href: "#",
},
],
},
{
title: "Services",
items: [
{
label: "Automation",
href: "#",
},
{
label: "Consulting",
href: "#",
},
],
},
]}
copyright="© 2024 LeadsFlowAI. All rights reserved."
links={[
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
]}
/>
title: "Services", items: [
{ label: "Automation", href: "#" },
{ label: "Consulting", href: "#" }
]
}
]}
copyright="© 2024 LeadsFlowAI. All rights reserved."
links={[
{ label: "Privacy", href: "#" },
{ label: "Terms", href: "#" }
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);