Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 11:34:49 +00:00
2 changed files with 23 additions and 37 deletions

View File

@@ -100,9 +100,10 @@ export default function LandingPage() {
title: "Personal Service", description: "Expert styling advice and personalized shopping experiences"
}
]}
imageSrc="http://img.b2bpic.net/free-photo/empty-fashion-boutique-shopaholic-modern-people-commercial-activity-with-merchandise-clothing-store-trendy-collections-formal-casual-wear-retail-market-shopping-center_482257-61768.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/empty-fashion-boutique-shopaholic-modern-people-commercial-activity-with-merchandise-clothing-store-trendy-collections-formal-casual-wear-retail-market-shopping-center_482257-61768.jpg"
imageAlt="Dream Aura boutique founder"
imagePosition="right"
mediaAnimation="none"
buttons={[{ text: "Learn More", href: "#" }]}
/>
</div>
@@ -114,7 +115,7 @@ export default function LandingPage() {
tag="Collections"
textboxLayout="default"
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/empty-fashion-boutique-shopaholic-modern-people-commercial-activity-with-merchandise-clothing-store-trendy-collections-formal-casual-wear-retail-market-shopping-center_482257-61768.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/empty-fashion-boutique-shopaholic-modern-people-commercial-activity-with-merchandise-clothing-store-trendy-collections-formal-casual-wear-retail-market-shopping-center_482257-61768.jpg"
imageAlt="Collection showcase"
mediaPosition="right"
accordionItems={[

View File

@@ -1,51 +1,36 @@
"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;
}
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 = '' }) => {
const charWidth = 60;
const width = text.length * charWidth;
const height = 100;
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={`inline-block ${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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className={`text-4xl font-bold ${textClassName}`}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;