Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="compact"
|
||||
sizing="largeSmallSizeLargeTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -46,7 +46,7 @@ export default function LandingPage() {
|
||||
tag="Soluciones Legales de Confianza"
|
||||
tagIcon={Shield}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "📲 Quiero recibir asesoría gratuita", href: "#contact" },
|
||||
{ text: "Conoce cómo funciona", href: "#process" }
|
||||
@@ -82,19 +82,19 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Seguridad jurídica", description: "Tu patrimonio queda protegido bajo un marco legal sólido y reconocido en México.", imageSrc: "http://img.b2bpic.net/free-vector/man-offering-woman-apple-landing-page-template_74855-20845.jpg?_wi=1", imageAlt: "Seguridad legal y protección"
|
||||
title: "Seguridad jurídica", description: "Tu patrimonio queda protegido bajo un marco legal sólido y reconocido en México.", imageSrc: "http://img.b2bpic.net/free-vector/man-offering-woman-apple-landing-page-template_74855-20845.jpg", imageAlt: "Seguridad legal y protección"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Asesoría personalizada", description: "Analizamos tu situación particular y recomendamos la estructura de fideicomiso más conveniente.", imageSrc: "http://img.b2bpic.net/free-vector/man-offering-woman-apple-landing-page-template_74855-20845.jpg?_wi=2", imageAlt: "Asesoría personalizada"
|
||||
title: "Asesoría personalizada", description: "Analizamos tu situación particular y recomendamos la estructura de fideicomiso más conveniente.", imageSrc: "http://img.b2bpic.net/free-vector/man-offering-woman-apple-landing-page-template_74855-20845.jpg", imageAlt: "Asesoría personalizada"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Acompañamiento integral", description: "Te guiamos desde la primera consulta hasta la firma del contrato y más allá.", imageSrc: "http://img.b2bpic.net/free-vector/man-offering-woman-apple-landing-page-template_74855-20845.jpg?_wi=3", imageAlt: "Acompañamiento profesional"
|
||||
title: "Acompañamiento integral", description: "Te guiamos desde la primera consulta hasta la firma del contrato y más allá.", imageSrc: "http://img.b2bpic.net/free-vector/man-offering-woman-apple-landing-page-template_74855-20845.jpg", imageAlt: "Acompañamiento profesional"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Atención cercana", description: "Hablamos en términos claros, sin tecnicismos, para que entiendas cada decisión.", imageSrc: "http://img.b2bpic.net/free-vector/man-offering-woman-apple-landing-page-template_74855-20845.jpg?_wi=4", imageAlt: "Comunicación clara"
|
||||
title: "Atención cercana", description: "Hablamos en términos claros, sin tecnicismos, para que entiendas cada decisión.", imageSrc: "http://img.b2bpic.net/free-vector/man-offering-woman-apple-landing-page-template_74855-20845.jpg", imageAlt: "Comunicación clara"
|
||||
}
|
||||
]}
|
||||
textboxLayout="default"
|
||||
|
||||
@@ -1,51 +1,32 @@
|
||||
"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);
|
||||
|
||||
export 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`}
|
||||
width="100"
|
||||
height="32"
|
||||
viewBox="0 0 100 32"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
>
|
||||
<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="24"
|
||||
fontSize="20"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user