Files
3dfac131-140e-45ef-b79a-4e6…/src/components/Layout.tsx
2026-06-15 12:49:49 +00:00

97 lines
2.0 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
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": "Roadmaps",
"href": "#features"
},
{
"name": "Community",
"href": "#testimonials"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Product",
"href": "#product"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="OmniLearn"
ctaButton={{
text: "Get Started",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="OmniLearn"
columns={[
{
items: [
{
label: "Roadmaps",
href: "#features",
},
{
label: "Pricing",
href: "#pricing",
},
{
label: "About",
href: "#about",
},
],
},
{
items: [
{
label: "Terms",
href: "#",
},
{
label: "Privacy",
href: "#",
},
{
label: "Contact",
href: "#contact",
},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}