Merge version_1 into main #2
@@ -71,6 +71,7 @@ export default function LandingPage() {
|
||||
imageAlt="Professional hair stylists at work in the Mood Hair Beauty salon"
|
||||
useInvertedBackground={true}
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -139,13 +140,13 @@ export default function LandingPage() {
|
||||
id: "1", title: "A Transformation I'll Never Forget", quote: "The team at Mood Hair Beauty completely transformed my look. Marco understood exactly what I wanted and delivered beyond expectations. The salon atmosphere is so welcoming and luxurious.", name: "Sophia Romano", role: "Business Executive", imageSrc: "http://img.b2bpic.net/free-photo/closeup-portrait-successful-confident-young-woman-start-career-look-determined-get-job-waiting-interview-lean-glass-wall-business-center-smiling-looking-away-satisfied_197531-30572.jpg", imageAlt: "Sophia Romano"
|
||||
},
|
||||
{
|
||||
id: "2", title: "The Best Color Work I've Ever Had", quote: "Giulia's expertise with color is incredible. My new highlights look so natural and vibrant. I've been recommending Mood Hair Beauty to all my friends.", name: "Isabella Verdi", role: "Fashion Designer", imageSrc: "/placeholders/placeholder1.webp?_wi=1", imageAlt: "Isabella Verdi"
|
||||
id: "2", title: "The Best Color Work I've Ever Had", quote: "Giulia's expertise with color is incredible. My new highlights look so natural and vibrant. I've been recommending Mood Hair Beauty to all my friends.", name: "Isabella Verdi", role: "Fashion Designer", imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Isabella Verdi"
|
||||
},
|
||||
{
|
||||
id: "3", title: "My Hair Has Never Been Better", quote: "The keratin treatment changed everything for me. My hair is now smooth, shiny, and so easy to manage. The results have lasted beautifully.", name: "Marina Moretti", role: "Photographer", imageSrc: "/placeholders/placeholder1.webp?_wi=2", imageAlt: "Marina Moretti"
|
||||
id: "3", title: "My Hair Has Never Been Better", quote: "The keratin treatment changed everything for me. My hair is now smooth, shiny, and so easy to manage. The results have lasted beautifully.", name: "Marina Moretti", role: "Photographer", imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Marina Moretti"
|
||||
},
|
||||
{
|
||||
id: "4", title: "Perfect for My Wedding Day", quote: "Bella made my bridal hair absolutely stunning. I felt confident and beautiful on my special day. The entire team is professional and caring.", name: "Alessandra Blu", role: "Newlywed", imageSrc: "/placeholders/placeholder1.webp?_wi=3", imageAlt: "Alessandra Blu"
|
||||
id: "4", title: "Perfect for My Wedding Day", quote: "Bella made my bridal hair absolutely stunning. I felt confident and beautiful on my special day. The entire team is professional and caring.", name: "Alessandra Blu", role: "Newlywed", imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Alessandra Blu"
|
||||
}
|
||||
]}
|
||||
textboxLayout="default"
|
||||
|
||||
@@ -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;
|
||||
fontSize?: number;
|
||||
fontWeight?: number | string;
|
||||
letterSpacing?: number;
|
||||
fill?: 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 = '',
|
||||
fontSize = 32,
|
||||
fontWeight = 'bold',
|
||||
letterSpacing = 0,
|
||||
fill = 'currentColor',
|
||||
}) => {
|
||||
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.2}`}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<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 * 0.9}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill={fill}
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user