Files
1f113271-2a76-42aa-9afb-270…/src/components/Layout.tsx
2026-06-20 20:29:38 +00:00

105 lines
2.3 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "Pricing",
"href": "#pricing"
},
{
"name": "Support",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Features Bento",
"href": "#features-bento"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="shift" siteBackground="noise" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="AI-Sync"
ctaButton={{
text: "Download App",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Product",
items: [
{
label: "Features",
href: "#features",
},
{
label: "Pricing",
href: "#pricing",
},
],
},
{
title: "Company",
items: [
{
label: "About Us",
href: "#",
},
{
label: "Careers",
href: "#",
},
],
},
{
title: "Support",
items: [
{
label: "Documentation",
href: "#",
},
{
label: "Help Center",
href: "#",
},
],
},
]}
leftText="© 2024 AI Sync. All rights reserved."
rightText="Privacy Policy"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}