Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 18:03:41 +00:00
2 changed files with 39 additions and 41 deletions

View File

@@ -48,10 +48,10 @@ export default function LandingPage() {
background={{ variant: "plain" }}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-underground-hip-hop-musicians_23-2150932942.jpg?_wi=1", imageAlt: "PlayBoOK hero collection"
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-underground-hip-hop-musicians_23-2150932942.jpg", imageAlt: "PlayBoOK hero collection"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/stylish-arabian-muslim-boy-with-originally-hair-sunglasses-posed-streets-ladder_627829-14386.jpg?_wi=1", imageAlt: "Streetwear graphic tee"
imageSrc: "http://img.b2bpic.net/free-photo/stylish-arabian-muslim-boy-with-originally-hair-sunglasses-posed-streets-ladder_627829-14386.jpg", imageAlt: "Streetwear graphic tee"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/man-city-fashion-shoot_53876-14418.jpg", imageAlt: "Urban accessories"
@@ -81,7 +81,7 @@ export default function LandingPage() {
id: "1", name: "Represent X Puma Graphic T-Shirt", price: "₹1,999", variant: "Black, White, Grey • 3 Colors", imageSrc: "http://img.b2bpic.net/free-psd/cyber-monday-template-design_23-2151905241.jpg", imageAlt: "Represent Puma graphic tee", isFavorited: false
},
{
id: "2", name: "Urban Oversized Hoodie", price: "₹3,499", variant: "Black • XS to XXL", imageSrc: "http://img.b2bpic.net/free-photo/people-grandstands_52683-100553.jpg?_wi=1", imageAlt: "Urban oversized hoodie", isFavorited: false
id: "2", name: "Urban Oversized Hoodie", price: "₹3,499", variant: "Black • XS to XXL", imageSrc: "http://img.b2bpic.net/free-photo/people-grandstands_52683-100553.jpg", imageAlt: "Urban oversized hoodie", isFavorited: false
},
{
id: "3", name: "Streetwear Bomber Jacket", price: "₹5,999", variant: "Black • S to XL", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-girl-standing-near-wall-pose_1328-4310.jpg", imageAlt: "Streetwear bomber jacket", isFavorited: false
@@ -100,11 +100,12 @@ export default function LandingPage() {
{ value: "5000+", title: "Community Members Worldwide" },
{ value: "12", title: "Drops Per Year" }
]}
imageSrc="http://img.b2bpic.net/free-photo/medium-shot-underground-hip-hop-musicians_23-2150932942.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/medium-shot-underground-hip-hop-musicians_23-2150932942.jpg"
imageAlt="PlayBoOK studio creative space"
useInvertedBackground={false}
mediaAnimation="slide-up"
tagAnimation="slide-up"
metricsAnimation="slide-up"
/>
</div>
@@ -128,7 +129,7 @@ export default function LandingPage() {
id: "4", title: "Fast Global Shipping", content: "Ship within 48 hours to over 50 countries. Track your order in real-time through our admin portal."
}
]}
imageSrc="http://img.b2bpic.net/free-photo/people-grandstands_52683-100553.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/people-grandstands_52683-100553.jpg"
imageAlt="PlayBoOK quality hoodies"
useInvertedBackground={false}
mediaPosition="right"
@@ -178,7 +179,7 @@ export default function LandingPage() {
description="Get early access to new drops, exclusive discounts, and behind-the-scenes content. No spam, just culture."
background={{ variant: "plain" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/stylish-arabian-muslim-boy-with-originally-hair-sunglasses-posed-streets-ladder_627829-14386.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/stylish-arabian-muslim-boy-with-originally-hair-sunglasses-posed-streets-ladder_627829-14386.jpg"
imageAlt="PlayBoOK community"
mediaPosition="right"
inputPlaceholder="Your email"

View File

@@ -1,51 +1,48 @@
"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;
fontSize?: number;
fontFamily?: string;
fontWeight?: string | number;
fill?: 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 = '',
fontSize = 48,
fontFamily = 'system-ui, -apple-system, sans-serif',
fontWeight = 'bold',
fill = 'currentColor',
}) => {
const padding = 20;
const estimatedWidth = text.length * (fontSize * 0.6) + padding * 2;
const estimatedHeight = fontSize + padding * 2;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox={`0 0 ${estimatedWidth} ${estimatedHeight}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
role="img"
aria-label={`${logoText} logo`}
aria-label={text}
>
<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={padding}
y={estimatedHeight / 2}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="middle"
textAnchor="start"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;