Files
6bb68296-c56e-4169-967a-d44…/src/components/Layout.tsx

78 lines
2.2 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "About Us", "href": "#about"
},
{
"name": "Our Impact", "href": "#metrics"
},
{
"name": "How to Help", "href": "#help"
},
{
"name": "FAQs", "href": "#faq"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Testimonials", "href": "#testimonials"
},
{
"name": "Contact", "href": "#contact"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="RMHC South Africa"
logoImageSrc="http://img.b2bpic.net/free-vector/charity-emblems-design-flat-composition_98292-2506.jpg"
ctaButton={{
text: "Donate Now", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="RMHC South Africa"
columns={[
{
title: "Get Involved", items: [
{
label: "Donate", href: "#"},
{
label: "Volunteer", href: "#"},
],
},
{
title: "Our Work", items: [
{
label: "About Us", href: "#"},
{
label: "Our Impact", href: "#"},
],
},
]}
copyright="© 2024 Ronald McDonald House Charities South Africa."
links={[
{
label: "Privacy Policy", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}