Merge version_1 into main #2
@@ -46,6 +46,7 @@ export default function LandingPage() {
|
||||
<HeroSplitTestimonial
|
||||
title="Timeless Elegance Redefined"
|
||||
description="Discover our exquisite collection of handcrafted jewelry, where luxury meets artistry. Each piece is a testament to our commitment to perfection and timeless beauty."
|
||||
background={{ variant: "plain" }}
|
||||
tag="Luxury Jewelry"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
@@ -84,7 +85,7 @@ export default function LandingPage() {
|
||||
tag="Our Heritage"
|
||||
tagIcon={Crown}
|
||||
tagAnimation="slide-up"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/front-view-jeweler-making-jewellery_23-2150931464.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/front-view-jeweler-making-jewellery_23-2150931464.jpg"
|
||||
imageAlt="Master jeweler crafting luxury pieces"
|
||||
buttons={[
|
||||
{ text: "Learn Our Story", href: "#feature" }
|
||||
@@ -136,7 +137,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Artistic Design", description: "Our master designers create bespoke designs that reflect your vision. Each sketch is refined until it achieves perfect harmony.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-jeweler-making-jewellery_23-2150931464.jpg?_wi=2"
|
||||
title: "Artistic Design", description: "Our master designers create bespoke designs that reflect your vision. Each sketch is refined until it achieves perfect harmony.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-jeweler-making-jewellery_23-2150931464.jpg"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
|
||||
@@ -1,51 +1,33 @@
|
||||
"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 = ''
|
||||
}) => {
|
||||
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 300 100"
|
||||
className={`w-full h-auto ${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"
|
||||
}}
|
||||
x="50%"
|
||||
y="50%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
className={`text-2xl font-bold fill-foreground ${textClassName}`}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user