Files
91be151c-4d58-42f8-83bc-707…/src/components/Layout.tsx
2026-07-01 17:11:06 +00:00

109 lines
2.5 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
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": "/"
},
{
"name": "About",
"href": "#about"
},
{
"name": "The Blueprint",
"href": "/blueprint"
},
{
"name": "Clinic",
"href": "/clinic"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="floatingGradient" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Dr. Cam Daniels"
ctaButton={{
text: "Take the Quiz",
href: "#",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Navigation",
items: [
{
label: "Home",
href: "/",
},
{
label: "About",
href: "/about",
},
{
label: "Blueprint",
href: "/blueprint",
},
{
label: "Clinic",
href: "/clinic",
},
],
},
{
title: "Connect",
items: [
{
label: "YouTube",
href: "#",
},
{
label: "Instagram",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Disclaimer",
href: "#",
},
],
},
]}
leftText="© 2024 Dr. Cam Daniels. All rights reserved."
rightText="This is for patient education only and does not constitute advice. If you are experiencing severe or unusual symptoms, contact your medical provider or seek emergency care."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}