Files
ec7d7fe8-2f6f-4550-9a99-ae8…/src/components/Layout.tsx
2026-06-16 10:17:32 +00:00

79 lines
1.7 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Github, Linkedin, 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": "Products",
"href": "#products"
},
{
"name": "Pricing",
"href": "#pricing"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Features",
"href": "#features"
}
];
return (
<StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="CHIDEX"
ctaButton={{
text: "Shop Now",
href: "#products",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="Chidex Electrical"
copyright="© 2024 Chidex Electrical. All rights reserved."
socialLinks={[
{
icon: Twitter,
href: "#",
},
{
icon: Github,
href: "#",
},
{
icon: Linkedin,
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}