2 Commits

Author SHA1 Message Date
901713ee01 Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx 2026-03-12 16:45:00 +00:00
0855841c6a Update src/app/page.tsx 2026-03-12 16:45:00 +00:00
2 changed files with 33 additions and 39 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded" borderRadius="rounded"
contentWidth="small" contentWidth="small"
sizing="largeSmallSizeLargeTitles" sizing="largeSmallSizeLargeTitles"
background="noise" background="circleGradient"
cardStyle="gradient-mesh" cardStyle="gradient-mesh"
primaryButtonStyle="primary-glow" primaryButtonStyle="primary-glow"
secondaryButtonStyle="radial-glow" secondaryButtonStyle="radial-glow"
@@ -45,7 +45,7 @@ export default function LandingPage() {
<HeroSplitKpi <HeroSplitKpi
title="Discover Premium Fashion for Every Occasion" title="Discover Premium Fashion for Every Occasion"
description="Elevate your wardrobe with our curated collection of high-quality clothing. From casual essentials to elegant statements, find pieces that express your unique style and confidence." description="Elevate your wardrobe with our curated collection of high-quality clothing. From casual essentials to elegant statements, find pieces that express your unique style and confidence."
background={{ variant: "noise" }} background={{ variant: "glowing-orb" }}
kpis={[ kpis={[
{ value: "10K+", label: "Happy Customers" }, { value: "10K+", label: "Happy Customers" },
{ value: "500+", label: "Premium Items" }, { value: "500+", label: "Premium Items" },
@@ -206,7 +206,7 @@ export default function LandingPage() {
tagAnimation="slide-up" tagAnimation="slide-up"
title="Stay Updated with Fashion Trends" title="Stay Updated with Fashion Trends"
description="Subscribe to our newsletter and receive exclusive offers, styling tips, and first access to new collections delivered straight to your inbox." description="Subscribe to our newsletter and receive exclusive offers, styling tips, and first access to new collections delivered straight to your inbox."
background={{ variant: "noise" }} background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false} useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/still-life-fashion-designer-s-office_23-2150543701.jpg" imageSrc="http://img.b2bpic.net/free-photo/still-life-fashion-designer-s-office_23-2150543701.jpg"
imageAlt="Fashion creative workspace" imageAlt="Fashion creative workspace"

View File

@@ -1,51 +1,45 @@
"use client"; import React from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps { interface SvgTextLogoProps {
logoText: string; text?: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
className?: string; className?: string;
fontSize?: number;
fontFamily?: string;
fill?: string;
stroke?: string;
strokeWidth?: number;
} }
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({ const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
logoText, text = 'Logo',
adjustHeightFactor, className = '',
verticalAlign = "top", fontSize = 32,
className = "", fontFamily = 'Arial, sans-serif',
}) { fill = '#000000',
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); stroke = 'none',
strokeWidth = 0,
}) => {
return ( return (
<svg <svg
ref={svgRef} viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
viewBox={viewBox} className={className}
className={cls("w-full", className)} preserveAspectRatio="xMidYMid meet"
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
> >
<text <text
ref={textRef} x="50%"
x="0" y="50%"
y={verticalAlign === "center" ? "50%" : "0"} fontSize={fontSize}
className="font-bold fill-current" fontFamily={fontFamily}
style={{ fill={fill}
fontSize: "20px", stroke={stroke}
letterSpacing: "-0.02em", strokeWidth={strokeWidth}
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge" textAnchor="middle"
}} dominantBaseline="central"
> >
{logoText} {text}
</text> </text>
</svg> </svg>
); );
}); };
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo; export default SvgTextLogo;