Backup eingespielt

This commit is contained in:
egnbkts committed 2026-08-12 11:06:10 +02:00
1 parent b87d2894bf
commit 574e07603d
17 files changed
+518 -25

No files matched your search

Whitespace-only changes.
+34
View File
@@ -0,0 +1,34 @@
import { notFound } from "next/navigation";
import Image from "next/image";
import { branchenloesungen } from "../data";
export function generateStaticParams() {
return branchenloesungen.map((item) => ({
slug: item.slug,
}));
}
export default async function LeistungDetail({
params,
}: {
params: Promise<{ slug: string }>;
}) {
const { slug } = await params;
const leistung = branchenloesungen.find((item) => item.slug === slug);
if (!leistung) notFound();
return (
<main>
<h1>{leistung.title}</h1>
<p>{leistung.text}</p>
<Image
src={leistung.image}
alt={leistung.title}
width={1200}
height={800}
/>
</main>
);
}
+26
View File
@@ -0,0 +1,26 @@
export const branchenloesungen = [
{
slug: "bueros",
title: "Büros",
text: "Glas- und Fensterreinigung",
image: "/images/leistungen/webdesign.jpg",
},
{
slug: "kanzlei",
title: "Kanzlei",
text: "Unterhaltsreinigung",
image: "/images/leistungen/seo.jpg",
},
{
slug: "hallen-und-lagerflaechen",
title: "Hallen und Lagerflächen",
text: "Treppenhausreinigung",
image: "/images/leistungen/branding.jpg",
},
{
slug: "wohn-und-geschaeftshaeuser",
title: "Wohn- und Geschäftshäuse",
text: "Performante E-Commerce-Lösungen.",
image: "/images/leistungen/shop.jpg",
},
];
+3
View File
@@ -0,0 +1,3 @@
export default function Branchenloesungen() {
return <h1>Branchenlösungen</h1>;
}