62 lines
1.8 KiB
TypeScript
62 lines
1.8 KiB
TypeScript
import FooterMinimal from '@/components/sections/footer/FooterMinimal';
|
|
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": "#hero"
|
|
},
|
|
{
|
|
"name": "About", "href": "#about"
|
|
},
|
|
{
|
|
"name": "Services", "href": "#services"
|
|
},
|
|
{
|
|
"name": "Contact", "href": "#contact"
|
|
},
|
|
{
|
|
"name": "Why Choose Us", "href": "#why-choose-us"
|
|
},
|
|
{
|
|
"name": "Testimonials", "href": "#testimonials"
|
|
},
|
|
{
|
|
"name": "Faq", "href": "#faq"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="cornerGlow">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="Stroebel Financial Consultants"
|
|
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=vfajlh"
|
|
ctaButton={{
|
|
text: "Get Consultation", href: "#contact"}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterMinimal
|
|
brand="Stroebel Financial Consultants | FSP Number: 44997"
|
|
copyright="© 2024 Stroebel Financial Consultants. Helping South Africans Protect, Grow, and Preserve Their Wealth."
|
|
socialLinks={[
|
|
{
|
|
icon: "Linkedin", href: "#"},
|
|
{
|
|
icon: "Facebook", href: "#"},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|