Files
abac3baa-3675-4e5c-9e86-7ae…/src/components/Layout.tsx
2026-06-20 22:24:52 +00:00

98 lines
2.1 KiB
TypeScript

import FooterSimple from '@/components/sections/footer/FooterSimple';
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": "Startseite",
"href": "#hero"
},
{
"name": "Über uns",
"href": "#about"
},
{
"name": "Produkte",
"href": "#products"
},
{
"name": "Kontakt",
"href": "#contact"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="arrow" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="hagebau Altzinger"
ctaButton={{
text: "Online Shop",
href: "#",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="hagebau Altzinger"
columns={[
{
title: "Standort",
items: [
{
label: "Hauptstraße 1, 12345 Bauort",
href: "#",
},
],
},
{
title: "Öffnungszeiten",
items: [
{
label: "Mo-Fr: 08:00 - 18:00 Uhr",
href: "#",
},
{
label: "Sa: 08:00 - 13:00 Uhr",
href: "#",
},
],
},
]}
copyright="© 2024 hagebau Altzinger. Alle Rechte vorbehalten."
links={[
{
label: "Impressum",
href: "#",
},
{
label: "Datenschutz",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}