Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="compact"
|
||||
sizing="mediumSizeLargeTitles"
|
||||
background="noiseDiagonalGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -48,7 +48,7 @@ export default function LandingPage() {
|
||||
tag="Barbería Premium"
|
||||
tagIcon={Scissors}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "Reservar Cita", href: "#contact" },
|
||||
{ text: "Ver Servicios", href: "#services" }
|
||||
@@ -84,12 +84,12 @@ export default function LandingPage() {
|
||||
useInvertedBackground={true}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
products={[
|
||||
{ id: "1", name: "Corte de Cabello", price: "$12", imageSrc: "http://img.b2bpic.net/free-photo/portrait-bearded-urban-male-isolated-with-contrast-illumination-grey-vignette-background_613910-1277.jpg?_wi=1", imageAlt: "Corte de cabello profesional" },
|
||||
{ id: "2", name: "Afeitado con Navaja", price: "$15", imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-with-shaving-cream_23-2149141772.jpg?_wi=1", imageAlt: "Afeitado profesional" },
|
||||
{ id: "3", name: "Mantenimiento de Barba", price: "$10", imageSrc: "http://img.b2bpic.net/free-photo/man-closes-his-eyes-while-barber-shapes-his-black-beard_1304-2778.jpg?_wi=1", imageAlt: "Mantenimiento de barba" },
|
||||
{ id: "4", name: "Corte Desvanecido", price: "$14", imageSrc: "http://img.b2bpic.net/free-photo/portrait-bearded-urban-male-isolated-with-contrast-illumination-grey-vignette-background_613910-1277.jpg?_wi=2", imageAlt: "Corte desvanecido moderno" },
|
||||
{ id: "5", name: "Tintura de Pelo", price: "$18", imageSrc: "http://img.b2bpic.net/free-photo/man-closes-his-eyes-while-barber-shapes-his-black-beard_1304-2778.jpg?_wi=2", imageAlt: "Servicio de tintura" },
|
||||
{ id: "6", name: "Recorte de Cejas", price: "$8", imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-with-shaving-cream_23-2149141772.jpg?_wi=2", imageAlt: "Recorte de cejas profesional" }
|
||||
{ id: "1", name: "Corte de Cabello", price: "$12", imageSrc: "http://img.b2bpic.net/free-photo/portrait-bearded-urban-male-isolated-with-contrast-illumination-grey-vignette-background_613910-1277.jpg", imageAlt: "Corte de cabello profesional" },
|
||||
{ id: "2", name: "Afeitado con Navaja", price: "$15", imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-with-shaving-cream_23-2149141772.jpg", imageAlt: "Afeitado profesional" },
|
||||
{ id: "3", name: "Mantenimiento de Barba", price: "$10", imageSrc: "http://img.b2bpic.net/free-photo/man-closes-his-eyes-while-barber-shapes-his-black-beard_1304-2778.jpg", imageAlt: "Mantenimiento de barba" },
|
||||
{ id: "4", name: "Corte Desvanecido", price: "$14", imageSrc: "http://img.b2bpic.net/free-photo/portrait-bearded-urban-male-isolated-with-contrast-illumination-grey-vignette-background_613910-1277.jpg", imageAlt: "Corte desvanecido moderno" },
|
||||
{ id: "5", name: "Tintura de Pelo", price: "$18", imageSrc: "http://img.b2bpic.net/free-photo/man-closes-his-eyes-while-barber-shapes-his-black-beard_1304-2778.jpg", imageAlt: "Servicio de tintura" },
|
||||
{ id: "6", name: "Recorte de Cejas", price: "$8", imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-with-shaving-cream_23-2149141772.jpg", imageAlt: "Recorte de cejas profesional" }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -119,10 +119,10 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
useInvertedBackground={true}
|
||||
features={[
|
||||
{ id: "1", title: "Lunes a Viernes", tags: ["8:00 AM", "7:00 PM"], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-hairdresser-shop_23-2149220587.jpg?_wi=1", imageAlt: "Barbería lunes a viernes" },
|
||||
{ id: "2", title: "Sábado", tags: ["8:00 AM", "7:00 PM"], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-hairdresser-shop_23-2149220587.jpg?_wi=2", imageAlt: "Barbería sábado" },
|
||||
{ id: "3", title: "Domingo", tags: ["8:00 AM", "7:00 PM"], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-hairdresser-shop_23-2149220587.jpg?_wi=3", imageAlt: "Barbería domingo" },
|
||||
{ id: "4", title: "Ubicación Premium", tags: ["10 Av Norte", "Sonzacate"], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-hairdresser-shop_23-2149220587.jpg?_wi=4", imageAlt: "Ubicación de barbería" }
|
||||
{ id: "1", title: "Lunes a Viernes", tags: ["8:00 AM", "7:00 PM"], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-hairdresser-shop_23-2149220587.jpg", imageAlt: "Barbería lunes a viernes" },
|
||||
{ id: "2", title: "Sábado", tags: ["8:00 AM", "7:00 PM"], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-hairdresser-shop_23-2149220587.jpg", imageAlt: "Barbería sábado" },
|
||||
{ id: "3", title: "Domingo", tags: ["8:00 AM", "7:00 PM"], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-hairdresser-shop_23-2149220587.jpg", imageAlt: "Barbería domingo" },
|
||||
{ id: "4", title: "Ubicación Premium", tags: ["10 Av Norte", "Sonzacate"], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-hairdresser-shop_23-2149220587.jpg", imageAlt: "Ubicación de barbería" }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,41 @@
|
||||
"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;
|
||||
textClassName?: string;
|
||||
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging';
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
textClassName = '',
|
||||
dominantBaseline = 'middle',
|
||||
textAnchor = 'middle',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox="0 0 200 80"
|
||||
className={`w-full h-auto ${className}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
aria-label={text}
|
||||
>
|
||||
<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="100"
|
||||
y="40"
|
||||
fontSize="32"
|
||||
fontWeight="bold"
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
className={`fill-current ${textClassName}`}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user