Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="mediumLargeSizeLargeTitles"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="flat"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -46,17 +46,17 @@ export default function LandingPage() {
|
||||
tag="New Collection"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/studio-with-props-fashion-shoting_23-2148885690.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/studio-with-props-fashion-shoting_23-2148885690.jpg"
|
||||
imageAlt="Hero showcase of minimalist clothing collection"
|
||||
mediaAnimation="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
name: "Emma Rodriguez", handle: "Fashion Enthusiast", testimonial: "The quality is incredible for the price. Every piece fits perfectly and feels premium.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-caucasian-unshaved-man-eyeglasses-looking-camera-with-sincere-smile-isolated-gray_171337-630.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-caucasian-unshaved-man-eyeglasses-looking-camera-with-sincere-smile-isolated-gray_171337-630.jpg"
|
||||
},
|
||||
{
|
||||
name: "Alex Chen", handle: "Sustainable Fashion Advocate", testimonial: "Finally, a brand that cares about the environment AND style. I'm obsessed.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -65,7 +65,7 @@ export default function LandingPage() {
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "plain" }}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -139,10 +139,10 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sarah Mitchell, Creative Director", date: "Date: 15 January 2025", title: "The perfect wardrobe staple for my lifestyle", quote: "I've been wearing pieces from COLLECTIVE for over a year now. The quality has held up beautifully, and the minimalist aesthetic just works with everything in my closet. It's like investing in confidence.", tag: "Premium Member", avatarSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-caucasian-unshaved-man-eyeglasses-looking-camera-with-sincere-smile-isolated-gray_171337-630.jpg", imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-caucasian-unshaved-man-eyeglasses-looking-camera-with-sincere-smile-isolated-gray_171337-630.jpg?_wi=2"
|
||||
id: "1", name: "Sarah Mitchell, Creative Director", date: "Date: 15 January 2025", title: "The perfect wardrobe staple for my lifestyle", quote: "I've been wearing pieces from COLLECTIVE for over a year now. The quality has held up beautifully, and the minimalist aesthetic just works with everything in my closet. It's like investing in confidence.", tag: "Premium Member", avatarSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-caucasian-unshaved-man-eyeglasses-looking-camera-with-sincere-smile-isolated-gray_171337-630.jpg", imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-caucasian-unshaved-man-eyeglasses-looking-camera-with-sincere-smile-isolated-gray_171337-630.jpg"
|
||||
},
|
||||
{
|
||||
id: "2", name: "James Rodriguez, Environmental Consultant", date: "Date: 10 January 2025", title: "Sustainability meets style perfectly", quote: "As someone passionate about the environment, finding a clothing brand that aligns with my values was crucial. COLLECTIVE delivers on both fronts. The craftsmanship is exceptional.", tag: "Eco-Conscious", avatarSrc: "http://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg", imageSrc: "http://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg?_wi=2"
|
||||
id: "2", name: "James Rodriguez, Environmental Consultant", date: "Date: 10 January 2025", title: "Sustainability meets style perfectly", quote: "As someone passionate about the environment, finding a clothing brand that aligns with my values was crucial. COLLECTIVE delivers on both fronts. The craftsmanship is exceptional.", tag: "Eco-Conscious", avatarSrc: "http://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg", imageSrc: "http://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Maya Patel, Fashion Blogger", date: "Date: 8 January 2025", title: "Building a capsule wardrobe has never been easier", quote: "These pieces are versatile and timeless. I've built my entire capsule wardrobe around COLLECTIVE basics. My followers keep asking where I get my clothes!", tag: "Style Influencer", avatarSrc: "http://img.b2bpic.net/free-photo/male-freelancer-using-computer-plan-financial-analysis-with-business-charts-statistics-working-online-network-economy-growth-office-employee-planning-growth-strategy-close-up_482257-40931.jpg", imageSrc: "http://img.b2bpic.net/free-photo/male-freelancer-using-computer-plan-financial-analysis-with-business-charts-statistics-working-online-network-economy-growth-office-employee-planning-growth-strategy-close-up_482257-40931.jpg"
|
||||
@@ -169,7 +169,7 @@ export default function LandingPage() {
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="right"
|
||||
useInvertedBackground={true}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/studio-with-props-fashion-shoting_23-2148885690.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/studio-with-props-fashion-shoting_23-2148885690.jpg"
|
||||
imageAlt="Join the COLLECTIVE community"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,55 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fill?: string;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
letterSpacing?: number;
|
||||
className?: 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,
|
||||
width = 200,
|
||||
height = 100,
|
||||
fontSize = 32,
|
||||
fill = '#000000',
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
letterSpacing = 2,
|
||||
className = '',
|
||||
}) => {
|
||||
const textWidth = text.length * (fontSize * 0.6);
|
||||
const svgWidth = Math.max(width, textWidth + 40);
|
||||
const xPosition = (svgWidth - textWidth) / 2;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={svgWidth}
|
||||
height={height}
|
||||
viewBox={`0 0 ${svgWidth} ${height}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
>
|
||||
<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={xPosition}
|
||||
y={height / 2}
|
||||
fontSize={fontSize}
|
||||
fill={fill}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
textAnchor="start"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user