Merge version_1 into main #1
@@ -20,7 +20,7 @@ export default function TurisLeonPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="compact"
|
||||
sizing="mediumLarge"
|
||||
background="floatingGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-depth"
|
||||
primaryButtonStyle="diagonal-gradient"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -46,7 +46,7 @@ export default function TurisLeonPage() {
|
||||
<HeroBillboard
|
||||
title="Turis Leon: Tu Viaje, Nuestra Pasión"
|
||||
description="Porque viajar es vivir, vive hoy. Renta de autobús de lujo Dina Dorado con capacidad para 43 pasajeros. Servicio profesional en toda la República Mexicana."
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
imageSrc="http://img.b2bpic.net/free-vector/realistic-golden-luxury-background_23-2148962687.jpg"
|
||||
imageAlt="Autobús Dina Dorado exterior luxury"
|
||||
mediaAnimation="slide-up"
|
||||
@@ -59,8 +59,6 @@ export default function TurisLeonPage() {
|
||||
}
|
||||
]}
|
||||
className="min-h-screen"
|
||||
titleClassName="text-4xl md:text-5xl font-bold tracking-tight"
|
||||
descriptionClassName="text-lg md:text-xl opacity-90"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -79,8 +77,6 @@ export default function TurisLeonPage() {
|
||||
useInvertedBackground={false}
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
titleClassName="text-3xl md:text-4xl font-bold"
|
||||
descriptionClassName="text-base md:text-lg"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -115,8 +111,7 @@ export default function TurisLeonPage() {
|
||||
text: "Solicita tu cotización", href: "https://wa.me/3327656377?text=Hola%20Turis%20Leon,%20me%20interesa%20solicitar%20una%20cotización"
|
||||
}
|
||||
]}
|
||||
titleClassName="text-3xl md:text-4xl font-bold"
|
||||
descriptionClassName="text-base md:text-lg"
|
||||
cardTitleClassName="text-3xl md:text-4xl font-bold"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -136,8 +131,6 @@ export default function TurisLeonPage() {
|
||||
text: "Síguenos en Facebook", href: "https://www.facebook.com/exclusivo.leon.2025/"
|
||||
}
|
||||
]}
|
||||
titleClassName="text-3xl md:text-4xl font-bold"
|
||||
descriptionClassName="text-base md:text-lg"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -156,8 +149,6 @@ export default function TurisLeonPage() {
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
animationType="slide-up"
|
||||
titleClassName="text-3xl md:text-4xl font-bold"
|
||||
descriptionClassName="text-base md:text-lg"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -190,8 +181,6 @@ export default function TurisLeonPage() {
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
faqsAnimation="slide-up"
|
||||
titleClassName="text-3xl md:text-4xl font-bold"
|
||||
descriptionClassName="text-base md:text-lg"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,51 +1,52 @@
|
||||
"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;
|
||||
fontFamily?: string;
|
||||
fontWeight?: number | string;
|
||||
fill?: string;
|
||||
letterSpacing?: number;
|
||||
lineHeight?: number;
|
||||
textDecoration?: string;
|
||||
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging' | 'text-top';
|
||||
}
|
||||
|
||||
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 = 32,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
letterSpacing = 0,
|
||||
lineHeight = 1,
|
||||
textDecoration = 'none',
|
||||
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 ${text.length * (fontSize * 0.6)} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
preserveAspectRatio="xMinYMin 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 / 2}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
letterSpacing={letterSpacing}
|
||||
lineHeight={lineHeight}
|
||||
textDecoration={textDecoration}
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user