Files
5aa97060-201e-4848-bb6f-2eb…/src/components/Layout.tsx
2026-06-18 12:19:17 +00:00

76 lines
1.7 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarFloating from '@/components/ui/NavbarFloating';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Facebook, Instagram, Twitter } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "About",
"href": "#about"
},
{
"name": "Courses",
"href": "#courses"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "FAQ",
"href": "#faq"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="expand" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="TOEFL CENTER"
ctaButton={{
text: "Apply Now",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="TOEFL CENTER Bishkek"
copyright="© 2024 TOEFL CENTER Kyrgyzstan. All rights reserved."
socialLinks={[
{
icon: Instagram,
},
{
icon: Facebook,
},
{
icon: Twitter,
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}