Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 16:09:54 +00:00
2 changed files with 28 additions and 39 deletions

View File

@@ -21,7 +21,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="smallMedium"
sizing="mediumLargeSizeMediumTitles"
background="grid"
background="circleGradient"
cardStyle="glass-depth"
primaryButtonStyle="double-inset"
secondaryButtonStyle="radial-glow"
@@ -52,7 +52,7 @@ export default function LandingPage() {
{ text: "Learn More", href: "#about" }
]}
buttonAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "plain" }}
carouselItems={[
{
id: "shoe-1", imageSrc: "http://img.b2bpic.net/free-photo/sport-shoes-running_1203-7548.jpg", imageAlt: "Premium running shoe white background"
@@ -128,7 +128,7 @@ export default function LandingPage() {
},
{
id: "2", brand: "R Sheen Classic", name: "Heritage Leather Oxford", price: "$149.99", rating: 5,
reviewCount: "1.8k", imageSrc: "http://img.b2bpic.net/free-photo/mans-shoe-used-formal-events_1194-638668.jpg?_wi=1", imageAlt: "heritage leather oxford shoe classic style"
reviewCount: "1.8k", imageSrc: "http://img.b2bpic.net/free-photo/mans-shoe-used-formal-events_1194-638668.jpg", imageAlt: "heritage leather oxford shoe classic style"
},
{
id: "3", brand: "R Sheen Sport", name: "Velocity Trainer", price: "$139.99", rating: 5,
@@ -140,7 +140,7 @@ export default function LandingPage() {
},
{
id: "5", brand: "R Sheen Premium", name: "Executive Loafer", price: "$159.99", rating: 5,
reviewCount: "1.5k", imageSrc: "http://img.b2bpic.net/free-photo/mans-shoe-used-formal-events_1194-638668.jpg?_wi=2", imageAlt: "executive loafer professional business shoe"
reviewCount: "1.5k", imageSrc: "http://img.b2bpic.net/free-photo/mans-shoe-used-formal-events_1194-638668.jpg", imageAlt: "executive loafer professional business shoe"
}
]}
/>

View File

@@ -1,51 +1,40 @@
"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;
fill?: string;
className?: 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',
fill = 'currentColor',
className = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width="auto"
height={fontSize}
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize}`}
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.75}
fontSize={fontSize}
fontFamily={fontFamily}
fill={fill}
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;