Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -51,18 +51,19 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/beautiful-woman-taking-break-after-shopping_23-2148660680.jpg"
|
||||
imageAlt="Happy shoppers browsing beautiful gifts"
|
||||
mediaAnimation="slide-up"
|
||||
background={{ variant: "glowing-orb" }}
|
||||
testimonials={[
|
||||
{
|
||||
name: "Emma Wilson", handle: "Gift Enthusiast", testimonial: "The quality and aesthetic of every gift from Yarmstyle is absolutely stunning. My friends loved them!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-man-holding-glass-drink-restaurant_23-2147861969.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-man-holding-glass-drink-restaurant_23-2147861969.jpg"
|
||||
},
|
||||
{
|
||||
name: "Sarah Chen", handle: "Event Planner", testimonial: "Perfect gifts for every occasion. The packaging alone makes people smile before they even open it.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-woman-doing-number-three_1187-3800.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-woman-doing-number-three_1187-3800.jpg"
|
||||
},
|
||||
{
|
||||
name: "Jessica Moore", handle: "Fashion Designer", testimonial: "Yarmstyle has the most beautiful curated collections. Every item feels premium and thoughtful.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-young-woman-with-clear-skin_23-2148313322.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-young-woman-with-clear-skin_23-2148313322.jpg"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -172,9 +173,10 @@ export default function LandingPage() {
|
||||
{ value: "10K+", title: "Happy Customers" },
|
||||
{ value: "500+", title: "Gift Options" }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/young-man-surprising-girlfriend-with-present_23-2148741161.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/young-man-surprising-girlfriend-with-present_23-2148741161.jpg"
|
||||
imageAlt="Couple happily exchanging gifts"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
useInvertedBackground={true}
|
||||
/>
|
||||
</div>
|
||||
@@ -188,16 +190,13 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
features={[
|
||||
{
|
||||
id: "1", title: "For Your Partner", author: "Romantic & Luxurious", description: "Premium gifts that express love and appreciation. Luxury candles, jewelry, and curated gift sets perfect for showing you care.", tags: ["Romantic", "Premium Quality", "Luxury Packaging"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-man-surprising-girlfriend-with-present_23-2148741161.jpg?_wi=2", imageAlt: "Romantic gift for partners"
|
||||
id: "1", title: "For Your Partner", author: "Romantic & Luxurious", description: "Premium gifts that express love and appreciation. Luxury candles, jewelry, and curated gift sets perfect for showing you care.", tags: ["Romantic", "Premium Quality", "Luxury Packaging"], imageSrc: "http://img.b2bpic.net/free-photo/young-man-surprising-girlfriend-with-present_23-2148741161.jpg", imageAlt: "Romantic gift for partners"
|
||||
},
|
||||
{
|
||||
id: "2", title: "For Family Moments", author: "Thoughtful & Heartfelt", description: "Bring families closer with meaningful gifts. Beautiful collections for every family member, from children to grandparents.", tags: ["Family Bonding", "All Ages", "Shareable"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/wow-this-gift-is-really-amazing_329181-9508.jpg", imageAlt: "Family gift giving celebration"
|
||||
id: "2", title: "For Family Moments", author: "Thoughtful & Heartfelt", description: "Bring families closer with meaningful gifts. Beautiful collections for every family member, from children to grandparents.", tags: ["Family Bonding", "All Ages", "Shareable"], imageSrc: "http://img.b2bpic.net/free-photo/wow-this-gift-is-really-amazing_329181-9508.jpg", imageAlt: "Family gift giving celebration"
|
||||
},
|
||||
{
|
||||
id: "3", title: "For Best Friends", author: "Fun & Meaningful", description: "Celebrate friendship with gifts that remind them how special they are. Aesthetic accessories, candles, and fun collections.", tags: ["Friendship", "Aesthetic", "Memorable"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/couple-s-hand-exchanging-valentine-gift_23-2147887916.jpg", imageAlt: "Friends exchanging gifts"
|
||||
id: "3", title: "For Best Friends", author: "Fun & Meaningful", description: "Celebrate friendship with gifts that remind them how special they are. Aesthetic accessories, candles, and fun collections.", tags: ["Friendship", "Aesthetic", "Memorable"], imageSrc: "http://img.b2bpic.net/free-photo/couple-s-hand-exchanging-valentine-gift_23-2147887916.jpg", imageAlt: "Friends exchanging gifts"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
@@ -215,13 +214,13 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Emma Wilson", role: "Gift Buyer", testimonial: "Every time I shop at Yarmstyle, I'm amazed by the quality and presentation. My recipients always ask where I found such beautiful gifts!", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-man-holding-glass-drink-restaurant_23-2147861969.jpg?_wi=2", imageAlt: "Emma Wilson"
|
||||
id: "1", name: "Emma Wilson", role: "Gift Buyer", testimonial: "Every time I shop at Yarmstyle, I'm amazed by the quality and presentation. My recipients always ask where I found such beautiful gifts!", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-man-holding-glass-drink-restaurant_23-2147861969.jpg", imageAlt: "Emma Wilson"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Sarah Chen", role: "Event Organizer", testimonial: "I've ordered Yarmstyle gifts for corporate events, and clients rave about them. The aesthetic and premium feel is unmatched.", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-doing-number-three_1187-3800.jpg?_wi=2", imageAlt: "Sarah Chen"
|
||||
id: "2", name: "Sarah Chen", role: "Event Organizer", testimonial: "I've ordered Yarmstyle gifts for corporate events, and clients rave about them. The aesthetic and premium feel is unmatched.", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-doing-number-three_1187-3800.jpg", imageAlt: "Sarah Chen"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Jessica Moore", role: "Fashion Designer", testimonial: "As someone with a keen eye for design, I'm impressed by Yarmstyle's attention to detail. Every item feels like curated art.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-young-woman-with-clear-skin_23-2148313322.jpg?_wi=2", imageAlt: "Jessica Moore"
|
||||
id: "3", name: "Jessica Moore", role: "Fashion Designer", testimonial: "As someone with a keen eye for design, I'm impressed by Yarmstyle's attention to detail. Every item feels like curated art.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-young-woman-with-clear-skin_23-2148313322.jpg", imageAlt: "Jessica Moore"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Amanda Foster", role: "Frequent Gifter", testimonial: "I've never had a gift fail with Yarmstyle. The collections are diverse, beautiful, and make people genuinely happy.", imageSrc: "http://img.b2bpic.net/free-photo/female-grey-shirt-bright-blue-jeans-posing-with-delighted-happy-expression_140725-25505.jpg", imageAlt: "Amanda Foster"
|
||||
|
||||
@@ -1,51 +1,41 @@
|
||||
"use client";
|
||||
import React, { SVGProps } from 'react';
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
className?: string;
|
||||
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
|
||||
text: string;
|
||||
fontSize?: number;
|
||||
fontWeight?: string | number;
|
||||
fontFamily?: string;
|
||||
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 = 'Logo',
|
||||
fontSize = 48,
|
||||
fontWeight = 'bold',
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = 'currentColor',
|
||||
...svgProps
|
||||
}) => {
|
||||
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 ${text.length * (fontSize * 0.6)} ${fontSize * 1.2}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
{...svgProps}
|
||||
>
|
||||
<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%"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user