Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #1.
This commit is contained in:
2026-03-11 17:08:35 +00:00
2 changed files with 51 additions and 48 deletions

View File

@@ -45,7 +45,7 @@ export default function LandingPage() {
tag="Profesionales con experiencia"
tagIcon={Wrench}
tagAnimation="slide-up"
background={{ variant: "glowing-orb" }}
background={{ variant: "circleGradient" }}
kpis={[
{ value: "+15 años", label: "Experiencia en reparación" },
{ value: "98%", label: "Satisfacción de clientes" },
@@ -184,7 +184,7 @@ export default function LandingPage() {
tagAnimation="slide-up"
title="Pide tu presupuesto sin compromiso"
description="Contacta con Talleres VR para solicitar un presupuesto personalizado. Nuestro equipo atenderá tu consulta y te asesorará sobre el mejor servicio para tu vehículo."
background={{ variant: "glowing-orb" }}
background={{ variant: "circleGradient" }}
useInvertedBackground={false}
inputPlaceholder="Tu correo electrónico"
buttonText="Enviar"

View File

@@ -1,51 +1,54 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
className?: string;
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text?: string;
fontSize?: number;
fontWeight?: string | number;
fontFamily?: string;
fill?: string;
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'hanging' | 'text-top' | 'text-bottom' | 'central' | 'mathematical' | 'inherit';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<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"
}}
export const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
(
{
text = 'Logo',
fontSize = 48,
fontWeight = 'bold',
fontFamily = 'system-ui, -apple-system, sans-serif',
fill = 'currentColor',
dominantBaseline = 'central',
viewBox = '0 0 200 60',
width = 200,
height = 60,
...props
},
ref
) => {
return (
<svg
ref={ref}
viewBox={viewBox}
width={width}
height={height}
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{logoText}
</text>
</svg>
);
});
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fontWeight={fontWeight}
fontFamily={fontFamily}
fill={fill}
>
{text}
</text>
</svg>
);
}
);
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
SvgTextLogo.displayName = 'SvgTextLogo';