Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-10 19:26:45 +00:00
2 changed files with 33 additions and 38 deletions

View File

@@ -76,7 +76,7 @@ export default function LandingPage() {
useInvertedBackground={false}
features={[
{
id: "1", title: "Collision Repair", description: "We repair structural damage, body panels, and frame alignment after accidents with modern equipment and certified techniques", media: { imageSrc: "http://img.b2bpic.net/free-photo/mechanic-fixing-car-car-service-station_1303-28162.jpg?_wi=1" },
id: "1", title: "Collision Repair", description: "We repair structural damage, body panels, and frame alignment after accidents with modern equipment and certified techniques", media: { imageSrc: "http://img.b2bpic.net/free-photo/mechanic-fixing-car-car-service-station_1303-28162.jpg" },
items: [
{ icon: CheckCircle, text: "Structural damage restoration" },
{ icon: CheckCircle, text: "Expert body panel work" },
@@ -139,6 +139,7 @@ export default function LandingPage() {
imageAlt="Professional collision repair center interior and team"
useInvertedBackground={true}
mediaAnimation="slide-up"
metricsAnimation="slide-up"
/>
</div>
@@ -203,7 +204,7 @@ export default function LandingPage() {
required: true
}}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/mechanic-fixing-car-car-service-station_1303-28162.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/mechanic-fixing-car-car-service-station_1303-28162.jpg"
imageAlt="Professional collision repair service in progress"
mediaAnimation="slide-up"
mediaPosition="right"

View File

@@ -1,51 +1,45 @@
"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?: number | string;
letterSpacing?: number;
dominantBaseline?: string;
textAnchor?: 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 = '',
fontSize = 48,
fontWeight = 'bold',
letterSpacing = 2,
dominantBaseline = 'middle',
textAnchor = '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 1000 200"
className={className}
xmlns="http://www.w3.org/2000/svg"
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"
}}
x="50%"
y="50%"
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
dominantBaseline={dominantBaseline}
textAnchor={textAnchor}
className="fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;