Files
f90f2b20-caef-4a05-ab7a-28e…/src/components/Layout.tsx
2026-06-14 19:51:06 +00:00

110 lines
2.4 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "Services",
"href": "#services"
},
{
"name": "Products",
"href": "#products"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="Barnatore Qendresa"
ctaButton={{
text: "Get Support",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Barnatore Qendresa"
columns={[
{
title: "Navigation",
items: [
{
label: "About",
href: "#about",
},
{
label: "Services",
href: "#services",
},
{
label: "Products",
href: "#products",
},
],
},
{
title: "Support",
items: [
{
label: "Contact",
href: "#contact",
},
{
label: "FAQ",
href: "#faq",
},
{
label: "Privacy",
href: "#",
},
],
},
]}
copyright="© 2024 Barnatore Qendresa. All rights reserved."
links={[
{
label: "Terms of Service",
href: "#",
},
{
label: "Privacy Policy",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}