Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 17:33:43 +00:00
2 changed files with 41 additions and 39 deletions

View File

@@ -56,11 +56,11 @@ export default function LandingPage() {
testimonials={[
{
name: "Emma L.", handle: "Beauty Influencer", testimonial: "These nails are absolutely stunning. The quality is unmatched and they last for weeks!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-pretty-woman-smiling_23-2148729676.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/portrait-pretty-woman-smiling_23-2148729676.jpg"
},
{
name: "Sarah M.", handle: "Nail Art Enthusiast", testimonial: "Finally found a brand that creates truly custom, high-quality press-on nails. Obsessed!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/people-ethnicity-spare-time-positive-emotions-concept-pleased-young-african-american-female-with-bushy-hairdo_273609-3182.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/people-ethnicity-spare-time-positive-emotions-concept-pleased-young-african-american-female-with-bushy-hairdo_273609-3182.jpg"
}
]}
buttons={[
@@ -184,11 +184,11 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Jessica T.", role: "Beauty Blogger", company: "Style & Nails", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-pretty-woman-smiling_23-2148729676.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/portrait-pretty-woman-smiling_23-2148729676.jpg"
},
{
id: "2", name: "Maya P.", role: "Makeup Artist", company: "Glamour Studio", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/people-ethnicity-spare-time-positive-emotions-concept-pleased-young-african-american-female-with-bushy-hairdo_273609-3182.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/people-ethnicity-spare-time-positive-emotions-concept-pleased-young-african-american-female-with-bushy-hairdo_273609-3182.jpg"
},
{
id: "3", name: "Amanda R.", role: "Fashion Designer", company: "Creative Co.", rating: 5,

View File

@@ -1,51 +1,53 @@
"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;
fontSize?: number;
fontFamily?: string;
fontWeight?: number | string;
letterSpacing?: number;
className?: string;
textColor?: string;
}
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,
fontSize = 24,
fontFamily = 'Arial, sans-serif',
fontWeight = 700,
letterSpacing = 0,
className = '',
textColor = '#000000',
}) => {
const padding = 20;
const lineHeight = fontSize * 1.2;
const textWidth = text.length * (fontSize * 0.6);
const width = textWidth + padding * 2;
const height = lineHeight + padding * 2;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
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={padding}
y={padding + fontSize}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={textColor}
letterSpacing={letterSpacing}
dominantBaseline="hanging"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;