Files
80bb20e6-aedf-43ec-a878-fe2…/src/components/Layout.tsx
2026-06-23 05:45:45 +00:00

95 lines
2.2 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
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": "Services",
"href": "#services"
},
{
"name": "Portfolio",
"href": "#portfolio"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Testimonial",
"href": "#testimonial"
}
];
return (
<StyleProvider buttonVariant="shift" siteBackground="aurora" heroBackground="horizonGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="Fasfar & Co"
ctaButton={{
text: "Start Project",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Fasfar & Co"
columns={[
{
title: "Company",
items: [
{
label: "About",
href: "#",
},
{
label: "Services",
href: "#services",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
],
},
]}
copyright="© 2024 Fasfar & Co. All Rights Reserved."
imageSrc="https://storage.googleapis.com/webild/users/user_3FRbhuBz42BHSUzd7acbGcPM8vc/uploaded-1782193528034-h09ty8lj.png"
links={[
{
label: "Privacy",
href: "#",
},
{
label: "Terms",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}