Files
d2dfc56f-ba00-4baf-8a35-73b…/src/components/Layout.tsx
2026-06-15 12:10:12 +00:00

79 lines
1.8 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarCentered from '@/components/ui/NavbarCentered';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Facebook, Instagram, Twitter } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#"
},
{
"name": "Properties",
"href": "#properties"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Spotlight",
"href": "#spotlight"
},
{
"name": "Stats",
"href": "#stats"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="ASL Estate"
ctaButton={{
text: "WhatsApp Us",
href: "https://wa.me/20123456789",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="ASL Estate (أصل للعقارات)"
copyright="© 2024 ASL Estate. All rights reserved."
socialLinks={[
{
icon: Instagram,
href: "https://instagram.com",
},
{
icon: Facebook,
href: "https://facebook.com",
},
{
icon: Twitter,
href: "https://twitter.com",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}