Merge version_1 into main #2
@@ -69,23 +69,23 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
title: "Oversized Collection", description: "Premium oversized pieces designed for modern comfort and style", bentoComponent: "media-stack", items: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/stylish-teenagers-posing-together_23-2149085198.jpg?_wi=1", imageAlt: "oversized clothing collection fashion model" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/cyber-monday-template-design_23-2151905281.jpg?_wi=1", imageAlt: "premium streetwear fashion collection" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-female-with-black-hat-sitting-cafe-glass-wall_181624-21926.jpg?_wi=1", imageAlt: "winter fashion collection luxury" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/stylish-teenagers-posing-together_23-2149085198.jpg", imageAlt: "oversized clothing collection fashion model" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/cyber-monday-template-design_23-2151905281.jpg", imageAlt: "premium streetwear fashion collection" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-female-with-black-hat-sitting-cafe-glass-wall_181624-21926.jpg", imageAlt: "winter fashion collection luxury" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Premium Streetwear", description: "High-end streetwear essentials for the discerning collector", bentoComponent: "media-stack", items: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/cyber-monday-template-design_23-2151905281.jpg?_wi=2", imageAlt: "premium streetwear fashion collection" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/stylish-teenagers-posing-together_23-2149085198.jpg?_wi=2", imageAlt: "oversized clothing collection fashion model" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-female-with-black-hat-sitting-cafe-glass-wall_181624-21926.jpg?_wi=2", imageAlt: "winter fashion collection luxury" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/cyber-monday-template-design_23-2151905281.jpg", imageAlt: "premium streetwear fashion collection" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/stylish-teenagers-posing-together_23-2149085198.jpg", imageAlt: "oversized clothing collection fashion model" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-female-with-black-hat-sitting-cafe-glass-wall_181624-21926.jpg", imageAlt: "winter fashion collection luxury" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Winter Collection", description: "Luxe layering pieces for the cooler seasons", bentoComponent: "media-stack", items: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-female-with-black-hat-sitting-cafe-glass-wall_181624-21926.jpg?_wi=3", imageAlt: "winter fashion collection luxury" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/stylish-teenagers-posing-together_23-2149085198.jpg?_wi=3", imageAlt: "oversized clothing collection fashion model" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/cyber-monday-template-design_23-2151905281.jpg?_wi=3", imageAlt: "premium streetwear fashion collection" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-female-with-black-hat-sitting-cafe-glass-wall_181624-21926.jpg", imageAlt: "winter fashion collection luxury" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/stylish-teenagers-posing-together_23-2149085198.jpg", imageAlt: "oversized clothing collection fashion model" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/cyber-monday-template-design_23-2151905281.jpg", imageAlt: "premium streetwear fashion collection" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
@@ -108,6 +108,7 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/portrait-beautiful-young-female-wearing-formal-suit_23-2148880273.jpg"
|
||||
imageAlt="Minimal fashion collection premium styling"
|
||||
mediaAnimation="blur-reveal"
|
||||
metricsAnimation="blur-reveal"
|
||||
tag="Collection Highlight"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,36 @@
|
||||
"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;
|
||||
width?: number;
|
||||
height?: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
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,
|
||||
width = 200,
|
||||
height = 60,
|
||||
className = ""}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
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={width / 2}
|
||||
y={height / 2}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
fontSize="24"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
};
|
||||
Reference in New Issue
Block a user