update
This commit is contained in:
1 parent
cc2b84dcad
commit
3bda7d6eb6
28 files changed
+2330
-49
No files matched your search
@@ -0,0 +1,343 @@
|
||||
.hero {
|
||||
background: var(--color-background-linear);
|
||||
padding-block: var(--space-16);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.inner {
|
||||
max-width: var(--container-width);
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
align-items: left;
|
||||
}
|
||||
|
||||
.decoration {
|
||||
position: absolute;
|
||||
top: var(--space-8);
|
||||
right: var(--space-8);
|
||||
display: none;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
grid-template-rows: repeat(3, 1fr);
|
||||
gap: var(--space-3);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: var(--radius-full);
|
||||
background-color: var(--color-accent);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.heading {
|
||||
color: var(--color-heading);
|
||||
max-width: 20ch;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-1);
|
||||
text-align: left;
|
||||
align-self: left;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.headingSub {
|
||||
font-size: var(--font-size-subhead);
|
||||
font-weight: var(--font-weight-medium);
|
||||
letter-spacing: var(--letter-spacing-tight);
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.imageWrapper {
|
||||
display: none;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin-inline: auto;
|
||||
aspect-ratio: 21 / 9;
|
||||
flex-shrink: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.imageWrapper::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 8%;
|
||||
right: 8%;
|
||||
bottom: -4px;
|
||||
height: 28%;
|
||||
background: color-mix(in srgb, var(--color-accent) 55%, transparent);
|
||||
filter: blur(22px);
|
||||
opacity: 0.45;
|
||||
border-radius: 999px;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.imageFrame {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
box-shadow:
|
||||
0 10px 30px rgba(0, 0, 0, 0.08),
|
||||
0 24px 60px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.image {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-6);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.lead {
|
||||
font-size: var(--font-size-base);
|
||||
text-align: left;
|
||||
width: min(100%, 48ch);
|
||||
}
|
||||
|
||||
/* --- Challenges Section: 1:1 Optik von MaintenanceCleaningSection --- */
|
||||
.challengesSection {
|
||||
background: var(--color-background-linear);
|
||||
padding-block: var(--space-16);
|
||||
}
|
||||
|
||||
.challengesInner {
|
||||
max-width: var(--container-width);
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
}
|
||||
|
||||
.challengesHeading {
|
||||
max-width: 24ch;
|
||||
padding: 0 0 8px 0;
|
||||
color: var(--color-heading);
|
||||
}
|
||||
|
||||
.challengesLead {
|
||||
margin-top: var(--space-3);
|
||||
font-size: var(--font-size-base);
|
||||
max-width: 48ch;
|
||||
}
|
||||
|
||||
.challengesList {
|
||||
margin-top: var(--space-6);
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: var(--space-5);
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.challengesItem {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-4);
|
||||
background: var(--color-surface-muted, #e6ede9);
|
||||
border-radius: 12px;
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.challengesIcon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.challengesText {
|
||||
color: var(--font-heading-color);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
/* --- Related Services Section --- */
|
||||
.servicesSection {
|
||||
padding-block: var(--space-16);
|
||||
}
|
||||
|
||||
.servicesInner {
|
||||
max-width: var(--container-width);
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
}
|
||||
|
||||
.servicesHeading {
|
||||
max-width: 32ch;
|
||||
color: var(--color-heading);
|
||||
}
|
||||
|
||||
.servicesLead {
|
||||
margin-top: var(--space-3);
|
||||
max-width: 60ch;
|
||||
font-size: var(--font-size-base);
|
||||
}
|
||||
|
||||
.servicesGrid {
|
||||
margin-top: var(--space-8);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.serviceCard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
box-shadow:
|
||||
0 10px 30px rgba(0, 0, 0, 0.06),
|
||||
0 2px 8px rgba(0, 0, 0, 0.04);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition:
|
||||
transform 0.2s ease,
|
||||
box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.serviceCard:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow:
|
||||
0 16px 40px rgba(0, 0, 0, 0.1),
|
||||
0 4px 12px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.serviceCardImageWrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
aspect-ratio: 4 / 3;
|
||||
}
|
||||
|
||||
.serviceCardImage {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.serviceCardBody {
|
||||
padding: var(--space-4);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.serviceCardTitle {
|
||||
font-size: var(--font-size-base);
|
||||
font-weight: var(--font-weight-medium);
|
||||
color: var(--color-heading);
|
||||
}
|
||||
|
||||
.serviceCardLink {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
font-size: var(--font-size-small, 0.875rem);
|
||||
font-weight: var(--font-weight-medium);
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* Tablet: 768px */
|
||||
@media (min-width: 768px) {
|
||||
.content {
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-8);
|
||||
}
|
||||
|
||||
.inner {
|
||||
align-items: flex-start;
|
||||
gap: var(--space-8);
|
||||
}
|
||||
|
||||
.heading {
|
||||
text-align: left;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.body {
|
||||
align-items: flex-start;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.lead {
|
||||
text-align: left;
|
||||
margin-inline: 0;
|
||||
}
|
||||
|
||||
.decoration {
|
||||
display: grid;
|
||||
top: -24px;
|
||||
}
|
||||
|
||||
.imageWrapper {
|
||||
display: block;
|
||||
width: 260px;
|
||||
aspect-ratio: 4 / 3;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.challengesSection {
|
||||
padding-block: var(--space-24);
|
||||
}
|
||||
|
||||
.challengesHeading,
|
||||
.challengesLead {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.challengesList {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.servicesSection {
|
||||
padding-block: var(--space-24);
|
||||
}
|
||||
|
||||
.servicesGrid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* Desktop: 1024px */
|
||||
@media (min-width: 1024px) {
|
||||
.hero {
|
||||
padding-block: var(--space-36);
|
||||
}
|
||||
|
||||
.decoration {
|
||||
top: -42px;
|
||||
}
|
||||
|
||||
.challengesInner {
|
||||
padding-inline: var(--space-6);
|
||||
}
|
||||
|
||||
.challengesList {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,234 @@
|
||||
import { notFound } from "next/navigation";
|
||||
import { branchen } from "../data";
|
||||
import { leistungen } from "../../leistungen/data";
|
||||
import Image from "next/image";
|
||||
import { branchenloesungen } from "../data";
|
||||
import Link from "next/link";
|
||||
import {
|
||||
ArrowRightIcon,
|
||||
CheckCircleIcon,
|
||||
} from "@phosphor-icons/react/dist/ssr";
|
||||
import styles from "./page.module.css";
|
||||
import StaggeredGallery from "@/components/StaggeredGallery";
|
||||
import FaqSection from "@/components/faq/FaqSection";
|
||||
import { branchenFaq } from "@/components/faq/faqData";
|
||||
import ContactCtaSection from "@/components/contact/ContactCtaSection";
|
||||
import BentoGallery from "@/components/BentoGallery";
|
||||
|
||||
import type { Metadata } from "next";
|
||||
|
||||
const siteUrl = "https://basiclean.de";
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ slug: string }>;
|
||||
}): Promise<Metadata> {
|
||||
const { slug } = await params;
|
||||
const branche = branchen.find((item) => item.slug === slug);
|
||||
|
||||
if (!branche) {
|
||||
return {
|
||||
title: "Nicht gefunden",
|
||||
robots: { index: false, follow: false },
|
||||
};
|
||||
}
|
||||
|
||||
const hasCustomSeo = Boolean(branche.metaTitle);
|
||||
|
||||
const title = hasCustomSeo
|
||||
? { absolute: branche.metaTitle as string }
|
||||
: branche.titleMain;
|
||||
|
||||
const flatTitle = hasCustomSeo
|
||||
? (branche.metaTitle as string)
|
||||
: branche.titleMain;
|
||||
const description = branche.metaDescription ?? branche.text;
|
||||
const url = `${siteUrl}/branchenloesungen/${branche.slug}`;
|
||||
const ogImageUrl = branche.ogImage ?? branche.image;
|
||||
|
||||
return {
|
||||
title,
|
||||
description,
|
||||
alternates: {
|
||||
canonical: url,
|
||||
},
|
||||
openGraph: {
|
||||
type: "website",
|
||||
siteName: "Basiclean",
|
||||
locale: "de_DE",
|
||||
title: flatTitle,
|
||||
description,
|
||||
url,
|
||||
images: [
|
||||
{
|
||||
url: ogImageUrl,
|
||||
alt: branche.imageAlt,
|
||||
width: 1200,
|
||||
height: 628,
|
||||
},
|
||||
],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
site: "@basiclean",
|
||||
title: flatTitle,
|
||||
description,
|
||||
images: [{ url: ogImageUrl, alt: branche.imageAlt }],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export function generateStaticParams() {
|
||||
return branchenloesungen.map((item) => ({
|
||||
return branchen.map((item) => ({
|
||||
slug: item.slug,
|
||||
}));
|
||||
}
|
||||
|
||||
export default async function LeistungDetail({
|
||||
export default async function BrancheDetail({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ slug: string }>;
|
||||
}) {
|
||||
const { slug } = await params;
|
||||
const leistung = branchenloesungen.find((item) => item.slug === slug);
|
||||
|
||||
if (!leistung) notFound();
|
||||
const branche = branchen.find((item) => item.slug === slug);
|
||||
const faqEntry = branchenFaq.find((item) => item.slug === branche?.faqSlug);
|
||||
|
||||
if (!branche) {
|
||||
notFound();
|
||||
}
|
||||
|
||||
const empfohleneLeistungen = branche.relatedServices.slugs
|
||||
.map((leistungSlug) =>
|
||||
leistungen.find((item) => item.slug === leistungSlug),
|
||||
)
|
||||
.filter((item): item is (typeof leistungen)[number] => Boolean(item));
|
||||
|
||||
return (
|
||||
<main>
|
||||
<h1>{leistung.title}</h1>
|
||||
<p>{leistung.text}</p>
|
||||
<section className={styles.hero} aria-labelledby="hero-heading">
|
||||
<div className={styles.inner}>
|
||||
<div className={styles.decoration} aria-hidden="true">
|
||||
{Array.from({ length: 18 }).map((_, i) => (
|
||||
<span key={i} className={styles.dot} />
|
||||
))}
|
||||
</div>
|
||||
|
||||
<Image
|
||||
src={leistung.image}
|
||||
alt={leistung.title}
|
||||
width={1200}
|
||||
height={800}
|
||||
/>
|
||||
<h1 id="hero-heading" className={styles.heading}>
|
||||
{branche.titleMain}
|
||||
<span className={styles.headingSub}>{branche.titleSub}</span>
|
||||
</h1>
|
||||
|
||||
<div className={styles.content}>
|
||||
<div className={styles.imageWrapper}>
|
||||
<div className={styles.imageFrame}>
|
||||
<Image
|
||||
src={branche.image}
|
||||
alt={branche.imageAlt}
|
||||
fill
|
||||
className={styles.image}
|
||||
sizes="(max-width: 640px) 100vw, 260px"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.body}>
|
||||
<p className={`lead ${styles.lead}`}>{branche.text}</p>
|
||||
|
||||
<Link href="/kontakt" className="btn btn--filled">
|
||||
<span className="btn-icon animate" aria-hidden="true">
|
||||
<ArrowRightIcon size={18} weight="bold" />
|
||||
</span>
|
||||
Jetzt Angebot anfragen
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<BentoGallery images={branche.gallery} />
|
||||
|
||||
<section
|
||||
className={styles.challengesSection}
|
||||
aria-labelledby="challenges-heading"
|
||||
>
|
||||
<div className={styles.challengesInner}>
|
||||
<h2 id="challenges-heading" className={styles.challengesHeading}>
|
||||
{branche.challengesSection.heading}
|
||||
</h2>
|
||||
<p className={`lead ${styles.challengesLead}`}>
|
||||
{branche.challengesSection.lead}
|
||||
</p>
|
||||
|
||||
<div className={styles.challengesList}>
|
||||
{branche.challengesSection.points.map((point) => (
|
||||
<article key={point} className={styles.challengesItem}>
|
||||
<span className={styles.challengesIcon} aria-hidden="true">
|
||||
<CheckCircleIcon size={24} weight="duotone" />
|
||||
</span>
|
||||
<p className={styles.challengesText}>{point}</p>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{empfohleneLeistungen.length > 0 && (
|
||||
<section className={styles.servicesSection}>
|
||||
<div className={styles.servicesInner}>
|
||||
<h2 className={styles.servicesHeading}>
|
||||
{branche.relatedServices.heading}
|
||||
</h2>
|
||||
<p className={styles.servicesLead}>
|
||||
{branche.relatedServices.lead}
|
||||
</p>
|
||||
|
||||
<div className={styles.servicesGrid}>
|
||||
{empfohleneLeistungen.map((leistung) => (
|
||||
<Link
|
||||
key={leistung.slug}
|
||||
href={`/leistungen/${leistung.slug}`}
|
||||
className={styles.serviceCard}
|
||||
>
|
||||
<div className={styles.serviceCardImageWrapper}>
|
||||
<Image
|
||||
src={leistung.image}
|
||||
alt={leistung.imageAlt}
|
||||
fill
|
||||
className={styles.serviceCardImage}
|
||||
sizes="(max-width: 640px) 100vw, 320px"
|
||||
/>
|
||||
</div>
|
||||
<div className={styles.serviceCardBody}>
|
||||
<h3 className={styles.serviceCardTitle}>
|
||||
{leistung.titleMain}
|
||||
</h3>
|
||||
<span className={styles.serviceCardLink}>
|
||||
Mehr erfahren
|
||||
<ArrowRightIcon
|
||||
size={16}
|
||||
weight="bold"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)}
|
||||
|
||||
<section>
|
||||
<FaqSection
|
||||
title={faqEntry?.title ?? "Häufige Fragen"}
|
||||
items={faqEntry?.faq ?? []}
|
||||
/>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<ContactCtaSection {...branche.contactCtaSection} />
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user