Files
003cf6b2-b6ed-477a-8c1b-c61…/src/components/Layout.tsx

81 lines
2.4 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
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": "Produkte", "href": "#products"
},
{
"name": "Service", "href": "#service"
},
{
"name": "Reparatur", "href": "#contact"
},
{
"name": "About", "href": "#about"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Heine & Boehm"
logoImageSrc="http://img.b2bpic.net/free-photo/enthusiastic-young-woman-celebrating-smiling-raising-hands-up-rejoicing-winning-triumphin_1258-88013.jpg"
ctaButton={{
text: "Ticket erstellen", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Heine & Boehm"
columns={[
{
title: "Unternehmen", items: [
{
label: "Über uns", href: "#about"},
{
label: "Jobs", href: "#"},
],
},
{
title: "Service", items: [
{
label: "Reparatur", href: "#contact"},
{
label: "Support", href: "#"},
],
},
]}
copyright="© 2024 Heine & Boehm. Alle Rechte vorbehalten."
links={[
{
label: "Impressum", href: "#"},
{
label: "Datenschutz", href: "#"},
]}
imageSrc="http://img.b2bpic.net/free-photo/enthusiastic-young-woman-celebrating-smiling-raising-hands-up-rejoicing-winning-triumphin_1258-88013.jpg"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}