Files
101986b4-e8c2-4857-96f2-683…/src/components/Layout.tsx
2026-06-20 20:38:37 +00:00

101 lines
2.1 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": "Programs",
"href": "#programs"
},
{
"name": "About",
"href": "#about"
},
{
"name": "AI Learning",
"href": "#ai-learning"
},
{
"name": "Admissions",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Features",
"href": "#features"
}
];
return (
<StyleProvider buttonVariant="expand" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="KASOD"
ctaButton={{
text: "Apply Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="KASOD Academy"
columns={[
{
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Programs",
href: "#programs",
},
],
},
{
items: [
{
label: "Admissions",
href: "#contact",
},
{
label: "Portal Login",
href: "#",
},
],
},
{
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}