Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #1.
This commit is contained in:
2026-03-11 21:56:01 +00:00
2 changed files with 22 additions and 36 deletions

View File

@@ -79,6 +79,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-psd/isolated-nail-care-routine_23-2150755774.jpg"
imageAlt="PAINT Nails luxury salon interior"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>
@@ -143,6 +144,9 @@ export default function LandingPage() {
description="Recognized by London's leading lifestyle and fashion publications"
textboxLayout="default"
useInvertedBackground={false}
names={[
"Vogue", "Tatler", "Time Out", "Harper's Bazaar", "Elle", "British Vogue", "Grazia", "InStyle"
]}
logos={[
"http://img.b2bpic.net/free-vector/elegant-black-f-logo_23-2149480962.jpg", "http://img.b2bpic.net/free-vector/pack-black-green-business-cover-template-with-golden-lines_1017-54656.jpg", "http://img.b2bpic.net/free-vector/2021-music-event-poster-template-concept_23-2148589376.jpg", "http://img.b2bpic.net/free-vector/latest-news-banner-collection_23-2148136799.jpg", "http://img.b2bpic.net/free-photo/medium-shot-young-woman-single-s-day-banner_23-2149520230.jpg", "http://img.b2bpic.net/free-photo/pretty-woman-wears-golden-pendant-reading-newspaper-while-waiting-friend-street_197531-3275.jpg", "http://img.b2bpic.net/free-vector/photography-logo-abstract-style_1057-1789.jpg", "http://img.b2bpic.net/free-vector/set-logo-badge-design-vectors_53876-91556.jpg"
]}

View File

@@ -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;
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
dominantBaseline = 'middle',
}) => {
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 200"
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="100"
y="100"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className="text-lg font-bold fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;