Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -64,7 +64,7 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
tag: "Reparatur", title: "KFZ Reparaturen", subtitle: "Professionelle Reparaturen aller Fahrzeugtypen", description: "Wir führen alle Arten von Fahzeugreparaturen durch – von kleineren Wartungsarbeiten bis zu komplexen Motorüberholungen. Unser erfahrenes Team nutzt modernste Diagnostiktechnik und Original-Ersatzteile.", imageSrc: "http://img.b2bpic.net/free-photo/young-happy-couple-signing-documents-while-being-with-car-mechanic-repair-shop_637285-4257.jpg?_wi=1", imageAlt: "professional car repair mechanic tools"
|
||||
tag: "Reparatur", title: "KFZ Reparaturen", subtitle: "Professionelle Reparaturen aller Fahrzeugtypen", description: "Wir führen alle Arten von Fahzeugreparaturen durch – von kleineren Wartungsarbeiten bis zu komplexen Motorüberholungen. Unser erfahrenes Team nutzt modernste Diagnostiktechnik und Original-Ersatzteile.", imageSrc: "http://img.b2bpic.net/free-photo/young-happy-couple-signing-documents-while-being-with-car-mechanic-repair-shop_637285-4257.jpg", imageAlt: "professional car repair mechanic tools"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
@@ -84,13 +84,13 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
tag: "Prüfung", title: "§57a / Pickerl", subtitle: "Behördliche Hauptuntersuchung", description: "Wir führen die offiziellen Hauptuntersuchungen durch und helfen Ihnen, alle behördlichen Anforderungen zu erfüllen. Schnell, zuverlässig und kompetent.", imageSrc: "http://img.b2bpic.net/free-photo/young-happy-couple-signing-documents-while-being-with-car-mechanic-repair-shop_637285-4257.jpg?_wi=2", imageAlt: "professional car repair mechanic tools"
|
||||
tag: "Prüfung", title: "§57a / Pickerl", subtitle: "Behördliche Hauptuntersuchung", description: "Wir führen die offiziellen Hauptuntersuchungen durch und helfen Ihnen, alle behördlichen Anforderungen zu erfüllen. Schnell, zuverlässig und kompetent.", imageSrc: "http://img.b2bpic.net/free-photo/young-happy-couple-signing-documents-while-being-with-car-mechanic-repair-shop_637285-4257.jpg", imageAlt: "professional car repair mechanic tools"
|
||||
}
|
||||
]}
|
||||
title="Unsere Leistungen"
|
||||
description="Umfassendes Spektrum an Fahrzeugdienstleistungen von Reparaturen bis zur Wartung"
|
||||
tag="Dienstleistungen"
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
buttonAnimation="slide-up"
|
||||
@@ -109,7 +109,7 @@ export default function LandingPage() {
|
||||
imageAlt="E&R Kfz Technik Team"
|
||||
mediaAnimation="blur-reveal"
|
||||
useInvertedBackground={false}
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -132,7 +132,7 @@ export default function LandingPage() {
|
||||
title="Was unsere Kunden sagen"
|
||||
description="Lesen Sie ehrliche Bewertungen von zufriedenen Fahrzeughaltern"
|
||||
tag="Kundenbewertungen"
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,42 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontWeight?: string | number;
|
||||
fill?: string;
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
const lineHeight = fontSize * 1.2;
|
||||
|
||||
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 ${text.length * (fontSize * 0.6)} ${lineHeight}`}
|
||||
className={className}
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
y={fontSize * 0.75}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
letterSpacing={letterSpacing}
|
||||
dominantBaseline="auto"
|
||||
fontFamily="inherit"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user