79 lines
1.8 KiB
TypeScript
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>
|
|
);
|
|
}
|