Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 05:31:14 +00:00
2 changed files with 28 additions and 40 deletions

View File

@@ -68,7 +68,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/man-studio-creates-leather-ware_1157-33217.jpg"
imageAlt="Michelle's jewelry studio workspace showcasing fine craftsmanship"
mediaAnimation="slide-up"
metricsAnimation="entrance-slide"
metricsAnimation="slide-up"
useInvertedBackground={false}
ariaLabel="About section - Michelle's permanent jewelry studio"
/>
@@ -119,7 +119,7 @@ export default function LandingPage() {
src: "http://img.b2bpic.net/free-photo/elegant-beautiful-blonde-woman-white-stylish-blouse-pearl-jewelry-smiles-widely-looks-away-sits-by-little-table-street-cafe_197531-23208.jpg", alt: "Woman jewelry appointment professional confident"
}
]}
ratingAnimation="entrance-slide"
ratingAnimation="slide-up"
avatarsAnimation="slide-up"
useInvertedBackground={true}
ariaLabel="Testimonials section - Client reviews"
@@ -130,7 +130,7 @@ export default function LandingPage() {
<MetricCardFourteen
title="Trusted by Women Seeking Meaningful, Lasting Jewellery"
tag="Our Impact"
tagAnimation="entrance-slide"
tagAnimation="slide-up"
metrics={[
{
id: "1", value: "500+", description: "Permanent pieces created with love and precision, each one a unique story"

View File

@@ -1,51 +1,39 @@
"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";
className?: string;
textColor?: string;
width?: number;
height?: number;
}
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> = ({
className = '',
textColor = '#000000',
width = 200,
height = 60,
}) => {
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}`}
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"
}}
x={width / 2}
y={height / 2}
textAnchor="middle"
dominantBaseline="middle"
fill={textColor}
fontSize="24"
fontWeight="bold"
>
{logoText}
Logo
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;