Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| db0fa4f07b | |||
| 89cf8df82b |
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
|||||||
borderRadius="rounded"
|
borderRadius="rounded"
|
||||||
contentWidth="small"
|
contentWidth="small"
|
||||||
sizing="largeSmallSizeLargeTitles"
|
sizing="largeSmallSizeLargeTitles"
|
||||||
background="aurora"
|
background="circleGradient"
|
||||||
cardStyle="gradient-bordered"
|
cardStyle="gradient-bordered"
|
||||||
primaryButtonStyle="double-inset"
|
primaryButtonStyle="double-inset"
|
||||||
secondaryButtonStyle="solid"
|
secondaryButtonStyle="solid"
|
||||||
@@ -48,7 +48,7 @@ export default function LandingPage() {
|
|||||||
{ text: "Reservar Cita", href: "contact" },
|
{ text: "Reservar Cita", href: "contact" },
|
||||||
{ text: "Conoce Nuestros Servicios", href: "services" }
|
{ text: "Conoce Nuestros Servicios", href: "services" }
|
||||||
]}
|
]}
|
||||||
background={{ variant: "aurora" }}
|
background={{ variant: "sparkles-gradient" }}
|
||||||
imageSrc="http://img.b2bpic.net/free-photo/young-woman-relaxing-spa-salon_176420-7544.jpg"
|
imageSrc="http://img.b2bpic.net/free-photo/young-woman-relaxing-spa-salon_176420-7544.jpg"
|
||||||
imageAlt="Studio de belleza y bienestar premium"
|
imageAlt="Studio de belleza y bienestar premium"
|
||||||
frameStyle="card"
|
frameStyle="card"
|
||||||
@@ -182,7 +182,7 @@ export default function LandingPage() {
|
|||||||
tag="Contáctanos"
|
tag="Contáctanos"
|
||||||
title="Reserva tu cita y comienza tu transformación"
|
title="Reserva tu cita y comienza tu transformación"
|
||||||
description="Suscríbete a nuestro newsletter para recibir consejos de belleza, promociones exclusivas y actualizaciones sobre nuevos servicios y productos premium."
|
description="Suscríbete a nuestro newsletter para recibir consejos de belleza, promociones exclusivas y actualizaciones sobre nuevos servicios y productos premium."
|
||||||
background={{ variant: "aurora" }}
|
background={{ variant: "sparkles-gradient" }}
|
||||||
useInvertedBackground={false}
|
useInvertedBackground={false}
|
||||||
inputPlaceholder="tu@email.com"
|
inputPlaceholder="tu@email.com"
|
||||||
buttonText="Suscribirse"
|
buttonText="Suscribirse"
|
||||||
|
|||||||
@@ -1,51 +1,26 @@
|
|||||||
"use client";
|
import React from 'react';
|
||||||
|
|
||||||
import { memo } from "react";
|
|
||||||
import useSvgTextLogo from "./useSvgTextLogo";
|
|
||||||
import { cls } from "@/lib/utils";
|
|
||||||
|
|
||||||
interface SvgTextLogoProps {
|
interface SvgTextLogoProps {
|
||||||
logoText: string;
|
text: string;
|
||||||
adjustHeightFactor?: number;
|
|
||||||
verticalAlign?: "top" | "center";
|
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
|
||||||
logoText,
|
|
||||||
adjustHeightFactor,
|
|
||||||
verticalAlign = "top",
|
|
||||||
className = "",
|
|
||||||
}) {
|
|
||||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg viewBox="0 0 500 100" className={`w-full h-auto ${className}`}>
|
||||||
ref={svgRef}
|
|
||||||
viewBox={viewBox}
|
|
||||||
className={cls("w-full", className)}
|
|
||||||
style={{ aspectRatio: aspectRatio }}
|
|
||||||
preserveAspectRatio="none"
|
|
||||||
role="img"
|
|
||||||
aria-label={`${logoText} logo`}
|
|
||||||
>
|
|
||||||
<text
|
<text
|
||||||
ref={textRef}
|
x="50%"
|
||||||
x="0"
|
y="50%"
|
||||||
y={verticalAlign === "center" ? "50%" : "0"}
|
dominantBaseline="middle"
|
||||||
className="font-bold fill-current"
|
textAnchor="middle"
|
||||||
style={{
|
fontSize="48"
|
||||||
fontSize: "20px",
|
fontWeight="bold"
|
||||||
letterSpacing: "-0.02em",
|
fill="currentColor"
|
||||||
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{logoText}
|
{text}
|
||||||
</text>
|
</text>
|
||||||
</svg>
|
</svg>
|
||||||
);
|
);
|
||||||
});
|
};
|
||||||
|
|
||||||
SvgTextLogo.displayName = "SvgTextLogo";
|
|
||||||
|
|
||||||
export default SvgTextLogo;
|
export default SvgTextLogo;
|
||||||
|
|||||||
Reference in New Issue
Block a user