Files
afcb9828-5832-479b-ab4e-fe0…/src/components/Layout.tsx
2026-06-20 21:19:43 +00:00

117 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": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Expertise",
"href": "#features"
},
{
"name": "Team",
"href": "#team"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Testimonial",
"href": "#testimonial"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Fashandi & Associates"
ctaButton={{
text: "Book Consultation",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Practice Areas",
items: [
{
label: "Litigation",
href: "#",
},
{
label: "Corporate Law",
href: "#",
},
{
label: "Real Estate",
href: "#",
},
],
},
{
title: "Firm",
items: [
{
label: "Our Partners",
href: "#team",
},
{
label: "Careers",
href: "#",
},
{
label: "Ethics",
href: "#",
},
],
},
{
title: "Connect",
items: [
{
label: "LinkedIn",
href: "#",
},
{
label: "Twitter",
href: "#",
},
{
label: "Contact",
href: "#contact",
},
],
},
]}
leftText="© 2024 Fashandi & Associates. All rights reserved."
rightText="Professional Legal Services"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}