Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-13 07:53:45 +00:00
2 changed files with 22 additions and 43 deletions

View File

@@ -9,7 +9,7 @@ import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { CheckCircle, Cpu, ShoppingCart, Snowflake, Star, Tool, Wrench, Phone } from "lucide-react";
import { CheckCircle, Cpu, ShoppingCart, Snowflake, Star, Wrench, Phone } from "lucide-react";
export default function LandingPage() {
return (
@@ -47,12 +47,12 @@ export default function LandingPage() {
background={{ variant: "plain" }}
tag="Alle Marken"
tagIcon={Wrench}
tagAnimation="entrance-slide"
tagAnimation="slide-up"
buttons={[
{ text: "☎ Jetzt anrufen", href: "tel:+41..." },
{ text: "📅 Termin anfragen", href: "#contact" }
]}
buttonAnimation="entrance-slide"
buttonAnimation="slide-up"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=g3n7e8"
imageAlt="Moderne Autowerkstatt in Burgdorf"
mediaAnimation="slide-up"
@@ -67,7 +67,7 @@ export default function LandingPage() {
description="Professionelle Servicearbeiten für alle Fahrzeugtypen und Marken. Von Routine-Wartung bis zu komplexen Reparaturen wir sind Ihre Experten."
features={[
{ icon: Wrench, title: "Service & Wartung", description: "Regelmäßiger Service und Wartung für alle Fahrzeugmarken nach Herstellervorgaben." },
{ icon: Tool, title: "Reparaturen", description: "Schnelle und professionelle Reparaturen aller Art viele Arbeiten noch am selben Tag." },
{ icon: Wrench, title: "Reparaturen", description: "Schnelle und professionelle Reparaturen aller Art viele Arbeiten noch am selben Tag." },
{ icon: Cpu, title: "Diagnose & Elektronik", description: "Moderne Diagnosegeräte für präzise Fehleranalyse und Fehlersuche im Fahrzeugsystem." },
{ icon: Snowflake, title: "Klimaservice", description: "Professionelle Kontrolle und Wartung Ihrer Klimaanlage für höchsten Komfort." },
{ icon: ShoppingCart, title: "Fahrzeugankauf", description: "Wir kaufen und verkaufen hochwertige Fahrzeuge zu fairen Preisen." },
@@ -89,7 +89,7 @@ export default function LandingPage() {
buttons={[
{ text: "Mehr erfahren", href: "#contact" }
]}
buttonAnimation="entrance-slide"
buttonAnimation="slide-up"
/>
</div>
@@ -142,7 +142,7 @@ export default function LandingPage() {
title="Termin anfragen & Kontakt"
description="Buchen Sie einen Termin online oder rufen Sie uns direkt an. Wir kümmern uns schnell um Ihr Fahrzeug!"
tagIcon={Phone}
tagAnimation="entrance-slide"
tagAnimation="slide-up"
background={{ variant: "plain" }}
useInvertedBackground={false}
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=55c48i"

View File

@@ -1,51 +1,30 @@
"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;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
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 100"
className={`w-full h-auto ${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="central"
fontSize="32"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;