Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 17:45:26 +00:00
2 changed files with 33 additions and 40 deletions

View File

@@ -46,7 +46,7 @@ export default function LandingPage() {
<HeroSplitKpi
title="Discover Timeless Elegance"
description="Handcrafted luxury jewellery pieces designed for those who appreciate exceptional craftsmanship and timeless beauty. Each piece tells a story of elegance and sophistication."
background={{ variant: "circleGradient" }}
background={{ variant: "glowing-orb" }}
kpis={[
{ value: "20+", label: "Years of Excellence" },
{ value: "10K+", label: "Happy Customers" },
@@ -62,7 +62,7 @@ export default function LandingPage() {
]}
buttonAnimation="slide-up"
mediaAnimation="blur-reveal"
imageSrc="http://img.b2bpic.net/free-photo/high-fashion-look-glamor-closeup-portrait-beautiful-sexy-stylish-blond-young-woman-model-with-bright-yellow-makeup-with-perfect-clean-skin-with-gold-jewelery-black-cloth_158538-2008.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/high-fashion-look-glamor-closeup-portrait-beautiful-sexy-stylish-blond-young-woman-model-with-bright-yellow-makeup-with-perfect-clean-skin-with-gold-jewelery-black-cloth_158538-2008.jpg"
imageAlt="Luxury women's jewellery collection"
imagePosition="right"
/>
@@ -191,10 +191,10 @@ export default function LandingPage() {
tagAnimation="slide-up"
title="Stay Updated on New Collections"
description="Subscribe to our newsletter for exclusive previews, special offers, and jewellery styling tips curated just for you."
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
mediaAnimation="blur-reveal"
imageSrc="http://img.b2bpic.net/free-photo/high-fashion-look-glamor-closeup-portrait-beautiful-sexy-stylish-blond-young-woman-model-with-bright-yellow-makeup-with-perfect-clean-skin-with-gold-jewelery-black-cloth_158538-2008.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/high-fashion-look-glamor-closeup-portrait-beautiful-sexy-stylish-blond-young-woman-model-with-bright-yellow-makeup-with-perfect-clean-skin-with-gold-jewelery-black-cloth_158538-2008.jpg"
imageAlt="Luxury jewellery collection"
mediaPosition="right"
inputPlaceholder="Enter your email"

View File

@@ -1,51 +1,44 @@
"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;
fill?: string;
fontSize?: number;
fontFamily?: string;
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 = '',
fill = 'currentColor',
fontSize = 24,
fontFamily = 'system-ui, -apple-system, sans-serif',
fontWeight = 700,
letterSpacing = 0,
}) => {
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
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}
fill={fill}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;