Files
e5b0c61e-eba0-49ae-9cda-8fa…/src/components/Layout.tsx
2026-06-24 11:04:00 +00:00

97 lines
2.1 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
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": "Services",
"href": "#services"
},
{
"name": "Expertise",
"href": "#expertise"
},
{
"name": "Leadership",
"href": "#leadership"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="magnetic" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Thafelcap"
ctaButton={{
text: "Consultation",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Thafelcap Group"
columns={[
{
items: [
{
label: "Business Rescue",
href: "#services",
},
{
label: "Turnaround Advisory",
href: "#services",
},
],
},
{
items: [
{
label: "Governance",
href: "#services",
},
{
label: "Capital & Strategy",
href: "#services",
},
],
},
{
items: [
{
label: "Contact",
href: "#contact",
},
{
label: "Privacy Policy",
href: "#",
},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}