Files
17aeb456-600d-4a6b-828b-834…/src/components/Layout.tsx

76 lines
2.0 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": "Home", "href": "#hero"
},
{
"name": "About", "href": "#about"
},
{
"name": "Services", "href": "#features"
},
{
"name": "Team", "href": "#team"
},
{
"name": "FAQ", "href": "#faq"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Netcare Renal"
ctaButton={{
text: "Contact", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Netcare Renal Rehabilitation Hospital"
columns={[
{
items: [
{
label: "Home", href: "/"},
{
label: "Services", href: "#features"},
{
label: "About Us", href: "#about"},
],
},
{
items: [
{
label: "Contact", href: "#contact"},
{
label: "Admissions", href: "#"},
{
label: "FAQ", href: "#faq"},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}