Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 09:23:43 +00:00
2 changed files with 40 additions and 43 deletions

View File

@@ -113,10 +113,10 @@ export default function LandingPage() {
title: "Authenticated Luxury", description: "Every item undergoes rigorous verification by our expert team to ensure 100% authenticity and premium quality standards.", icon: Shield,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/owner-getting-ready-reopening_23-2149142192.jpg?_wi=1", imageAlt: "Authentication process"
imageSrc: "http://img.b2bpic.net/free-photo/owner-getting-ready-reopening_23-2149142192.jpg", imageAlt: "Authentication process"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/owner-getting-ready-reopening_23-2149142192.jpg?_wi=2", imageAlt: "Quality verification"
imageSrc: "http://img.b2bpic.net/free-photo/owner-getting-ready-reopening_23-2149142192.jpg", imageAlt: "Quality verification"
}
]
},
@@ -124,10 +124,10 @@ export default function LandingPage() {
title: "Swift Delivery", description: "Experience premium packaging and expedited shipping to your doorstep with full tracking and insurance protection.", icon: Zap,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-unboxing-products-ordered-online_23-2148577117.jpg?_wi=1", imageAlt: "Fast shipping service"
imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-unboxing-products-ordered-online_23-2148577117.jpg", imageAlt: "Fast shipping service"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-unboxing-products-ordered-online_23-2148577117.jpg?_wi=2", imageAlt: "Premium packaging"
imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-unboxing-products-ordered-online_23-2148577117.jpg", imageAlt: "Premium packaging"
}
]
},
@@ -135,10 +135,10 @@ export default function LandingPage() {
title: "Dedicated Support", description: "Our luxury concierge team is available to assist you with personalized recommendations and expert guidance.", icon: Award,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/partners-sitting-table-working-cafe_1157-28459.jpg?_wi=1", imageAlt: "Customer support team"
imageSrc: "http://img.b2bpic.net/free-photo/partners-sitting-table-working-cafe_1157-28459.jpg", imageAlt: "Customer support team"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/partners-sitting-table-working-cafe_1157-28459.jpg?_wi=2", imageAlt: "Premium service"
imageSrc: "http://img.b2bpic.net/free-photo/partners-sitting-table-working-cafe_1157-28459.jpg", imageAlt: "Premium service"
}
]
},
@@ -146,10 +146,10 @@ export default function LandingPage() {
title: "Secure Transactions", description: "Protected payments with encrypted security protocols, buyer protection guarantee, and transparent pricing across all items.", icon: CheckCircle,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/paying-tea-with-contactless_1098-13405.jpg?_wi=1", imageAlt: "Secure payment"
imageSrc: "http://img.b2bpic.net/free-photo/paying-tea-with-contactless_1098-13405.jpg", imageAlt: "Secure payment"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/paying-tea-with-contactless_1098-13405.jpg?_wi=2", imageAlt: "Protected checkout"
imageSrc: "http://img.b2bpic.net/free-photo/paying-tea-with-contactless_1098-13405.jpg", imageAlt: "Protected checkout"
}
]
}

View File

@@ -1,51 +1,48 @@
"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;
}
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 = '',
fontSize = 120,
fontWeight = 700,
letterSpacing = 0,
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const totalWidth = textLength * charWidth + letterSpacing * (textLength - 1);
const padding = 20;
const viewBoxWidth = totalWidth + padding * 2;
const viewBoxHeight = fontSize + padding * 2;
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 ${viewBoxWidth} ${viewBoxHeight}`}
className={className}
preserveAspectRatio="xMidYMid meet"
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={padding}
y={fontSize + padding}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill="currentColor"
fontFamily="system-ui, -apple-system, sans-serif"
dominantBaseline="alphabetic"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;