Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 08:48:50 +00:00
2 changed files with 33 additions and 51 deletions

View File

@@ -56,12 +56,12 @@ export default function LandingPage() {
]}
buttonAnimation="slide-up"
carouselItems={[
{ id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/woman-working-with-ladder_23-2148903446.jpg?_wi=1", imageAlt: "modern interior painting living room" },
{ id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/buildings-around_1127-2870.jpg?_wi=1", imageAlt: "house facade exterior painting renovation" },
{ id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/closeup-process-making-handmade-gingerbread_169016-19964.jpg?_wi=1", imageAlt: "home renovation before after transformation" },
{ id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/couple-painting-walls-their-new-home-together_23-2149086832.jpg?_wi=1", imageAlt: "modern apartment interior after painting" },
{ id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/outdoor-wall-blue-sky_23-2148742517.jpg?_wi=1", imageAlt: "house facade exterior professional painting" },
{ id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/closeup-worker-spraying-timber-with-spray-gun-woodworking-factory_637285-12067.jpg?_wi=1", imageAlt: "office space professional interior painting" }
{ id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/woman-working-with-ladder_23-2148903446.jpg", imageAlt: "modern interior painting living room" },
{ id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/buildings-around_1127-2870.jpg", imageAlt: "house facade exterior painting renovation" },
{ id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/closeup-process-making-handmade-gingerbread_169016-19964.jpg", imageAlt: "home renovation before after transformation" },
{ id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/couple-painting-walls-their-new-home-together_23-2149086832.jpg", imageAlt: "modern apartment interior after painting" },
{ id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/outdoor-wall-blue-sky_23-2148742517.jpg", imageAlt: "house facade exterior professional painting" },
{ id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/closeup-worker-spraying-timber-with-spray-gun-woodworking-factory_637285-12067.jpg", imageAlt: "office space professional interior painting" }
]}
autoPlay={true}
autoPlayInterval={4000}
@@ -79,13 +79,13 @@ export default function LandingPage() {
textboxLayout="default"
features={[
{
title: "Fassadenanstriche", description: "Hochwertige Fassadenanstriche mit langlebigen Farben und professioneller Vorbereitung.", imageSrc: "http://img.b2bpic.net/free-photo/buildings-around_1127-2870.jpg?_wi=2", imageAlt: "Fassadenanstrich eines modernen Hauses"
title: "Fassadenanstriche", description: "Hochwertige Fassadenanstriche mit langlebigen Farben und professioneller Vorbereitung.", imageSrc: "http://img.b2bpic.net/free-photo/buildings-around_1127-2870.jpg", imageAlt: "Fassadenanstrich eines modernen Hauses"
},
{
title: "Innenanstriche", description: "Saubere und präzise Innenanstriche für Wohnräume, Büros und Gewerbeflächen.", imageSrc: "http://img.b2bpic.net/free-photo/woman-working-with-ladder_23-2148903446.jpg?_wi=2", imageAlt: "Professioneller Innenanstrich mit modernen Farben"
title: "Innenanstriche", description: "Saubere und präzise Innenanstriche für Wohnräume, Büros und Gewerbeflächen.", imageSrc: "http://img.b2bpic.net/free-photo/woman-working-with-ladder_23-2148903446.jpg", imageAlt: "Professioneller Innenanstrich mit modernen Farben"
},
{
title: "Renovierungen", description: "Komplette Renovierungsarbeiten von der Planung bis zur Fertigstellung.", imageSrc: "http://img.b2bpic.net/free-photo/closeup-process-making-handmade-gingerbread_169016-19964.jpg?_wi=2", imageAlt: "Renovierungsprojekt mit professioneller Umsetzung"
title: "Renovierungen", description: "Komplette Renovierungsarbeiten von der Planung bis zur Fertigstellung.", imageSrc: "http://img.b2bpic.net/free-photo/closeup-process-making-handmade-gingerbread_169016-19964.jpg", imageAlt: "Renovierungsprojekt mit professioneller Umsetzung"
},
{
title: "Tapezierarbeiten", description: "Fachgerechte Tapezierarbeiten mit hoher Qualität und Sorgfalt.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-female-hand-applying-white-paint-wooden-stand_651396-2912.jpg", imageAlt: "Professionelle Tapezierarbeiten im modernen Design"
@@ -116,6 +116,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/young-couple-construction-worker-uniform-cap-holding-paint-roller-surprised-guy-standing-with-closed-posture-excited-girl-making-bunny-ears-guys-head_141793-78856.jpg"
imageAlt="Professionelles Malerteam von Maler Wulff"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={true}
/>
</div>
@@ -168,16 +169,13 @@ export default function LandingPage() {
useInvertedBackground={true}
products={[
{
id: "ref-1", brand: "Wohnbereich", name: "Moderne Innenanstriche", price: "€4.500", rating: 5,
reviewCount: "12 Bewertungen", imageSrc: "http://img.b2bpic.net/free-photo/couple-painting-walls-their-new-home-together_23-2149086832.jpg?_wi=2", imageAlt: "Modernes Apartment mit professionellem Innenanstrich"
id: "ref-1", brand: "Wohnbereich", name: "Moderne Innenanstriche", price: "€4.500", rating: 5, reviewCount: "12 Bewertungen", imageSrc: "http://img.b2bpic.net/free-photo/couple-painting-walls-their-new-home-together_23-2149086832.jpg", imageAlt: "Modernes Apartment mit professionellem Innenanstrich"
},
{
id: "ref-2", brand: "Außenbereich", name: "Fassadenrenovierung", price: "€8.200", rating: 5,
reviewCount: "15 Bewertungen", imageSrc: "http://img.b2bpic.net/free-photo/outdoor-wall-blue-sky_23-2148742517.jpg?_wi=2", imageAlt: "Professionelle Fassadenrenovierung mit modernen Farben"
id: "ref-2", brand: "Außenbereich", name: "Fassadenrenovierung", price: "€8.200", rating: 5, reviewCount: "15 Bewertungen", imageSrc: "http://img.b2bpic.net/free-photo/outdoor-wall-blue-sky_23-2148742517.jpg", imageAlt: "Professionelle Fassadenrenovierung mit modernen Farben"
},
{
id: "ref-3", brand: "Gewerbe", name: "Büroraumgestaltung", price: "€3.800", rating: 5,
reviewCount: "10 Bewertungen", imageSrc: "http://img.b2bpic.net/free-photo/closeup-worker-spraying-timber-with-spray-gun-woodworking-factory_637285-12067.jpg?_wi=2", imageAlt: "Modernes Bürogebäude mit professionellem Anstrich"
id: "ref-3", brand: "Gewerbe", name: "Büroraumgestaltung", price: "€3.800", rating: 5, reviewCount: "10 Bewertungen", imageSrc: "http://img.b2bpic.net/free-photo/closeup-worker-spraying-timber-with-spray-gun-woodworking-factory_637285-12067.jpg", imageAlt: "Modernes Bürogebäude mit professionellem Anstrich"
}
]}
ariaLabel="Referenzprojekte und Portfolio"

View File

@@ -1,51 +1,35 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
import React from 'react';
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
text: string;
className?: string;
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'middle' | 'central' | 'text-bottom' | 'ideographic' | 'mathematical' | 'inherit';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
dominantBaseline = 'middle',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox="0 0 200 200"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize="24"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;