Merge version_1 into main #2
@@ -45,7 +45,7 @@ export default function LandingPage() {
|
||||
<HeroSplitKpi
|
||||
title="Luxury Permanent Jewellery, Designed Just for You"
|
||||
description="Delicate. Timeless. Meaningful. Discover bespoke permanent jewellery that becomes part of your everyday life—crafted with care by Michelle and loved by hundreds of happy clients."
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
kpis={[
|
||||
{ value: "500+", label: "Happy Clients" },
|
||||
{ value: "10+", label: "Years Expertise" },
|
||||
@@ -79,6 +79,7 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/front-view-woman-reading-tarot_23-2150396511.jpg"
|
||||
imageAlt="Michelle creating jewellery in her studio"
|
||||
mediaAnimation="blur-reveal"
|
||||
metricsAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
@@ -101,7 +102,7 @@ export default function LandingPage() {
|
||||
description="From delicate bracelets to elegant necklaces and meaningful anklets—every piece is a custom creation tailored to your style."
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Bracelets", price: "Starting at £150", imageSrc: "http://img.b2bpic.net/free-psd/jewelry-store-promotional-flyer-with-gold-chain-discount-offer-template_23-2152027599.jpg?_wi=1", imageAlt: "Custom permanent bracelets collection"
|
||||
id: "1", name: "Bracelets", price: "Starting at £150", imageSrc: "http://img.b2bpic.net/free-psd/jewelry-store-promotional-flyer-with-gold-chain-discount-offer-template_23-2152027599.jpg", imageAlt: "Custom permanent bracelets collection"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Necklaces", price: "Starting at £200", imageSrc: "http://img.b2bpic.net/free-photo/luxurious-shiny-golden-chain_23-2149635274.jpg", imageAlt: "Elegant permanent necklaces"
|
||||
@@ -110,7 +111,7 @@ export default function LandingPage() {
|
||||
id: "3", name: "Anklets", price: "Starting at £120", imageSrc: "http://img.b2bpic.net/free-photo/wedding-glass-precious-gold-luxury-golden_1400-35.jpg", imageAlt: "Delicate permanent anklets"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Custom Matching Sets", price: "Custom Quote", imageSrc: "http://img.b2bpic.net/free-psd/jewelry-store-promotional-flyer-with-gold-chain-discount-offer-template_23-2152027599.jpg?_wi=2", imageAlt: "Matching permanent jewellery sets"
|
||||
id: "4", name: "Custom Matching Sets", price: "Custom Quote", imageSrc: "http://img.b2bpic.net/free-psd/jewelry-store-promotional-flyer-with-gold-chain-discount-offer-template_23-2152027599.jpg", imageAlt: "Matching permanent jewellery sets"
|
||||
}
|
||||
]}
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
|
||||
@@ -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 200 50"
|
||||
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"
|
||||
}}
|
||||
x="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
className={`text-lg font-bold ${textClassName}`}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user