6 Commits

Author SHA1 Message Date
0e6bf40ef3 Update src/app/page.tsx 2026-03-12 06:08:25 +00:00
f05eb11508 Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx 2026-03-12 06:06:39 +00:00
12405eb6be Merge version_2 into main
Merge version_2 into main
2026-03-12 06:04:19 +00:00
ad101d039d Merge version_1 into main
Merge version_1 into main
2026-03-12 06:04:05 +00:00
89c32f3b4a Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx 2026-03-12 06:04:01 +00:00
b1d145fe0b Update src/app/page.tsx 2026-03-12 06:04:00 +00:00
2 changed files with 36 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="small"
sizing="largeSmallSizeLargeTitles"
background="aurora"
background="circleGradient"
cardStyle="gradient-bordered"
primaryButtonStyle="double-inset"
secondaryButtonStyle="solid"
@@ -48,7 +48,7 @@ export default function LandingPage() {
{ text: "Explore Collection", href: "product" },
{ text: "Learn Our Story", href: "about" }
]}
background={{ variant: "aurora" }}
background={{ variant: "sparkles-gradient" }}
imageSrc="http://img.b2bpic.net/free-photo/top-view-gua-sha-face-products_23-2149401501.jpg"
imageAlt="Pure Glow luxury skincare products"
frameStyle="card"
@@ -77,13 +77,13 @@ export default function LandingPage() {
tag="Best Sellers"
products={[
{
id: "1", name: "Radiant Hydration Moisturizer", price: "$58", imageSrc: "http://img.b2bpic.net/free-vector/cosmetics-products-realistic-composition-poster_1284-18210.jpg", imageAlt: "Radiant Hydration Moisturizer"
id: "1", name: "Radiant Hydration Moisturizer — Hydrates for 24 hours", price: "$58 • Dermatologist-tested", imageSrc: "http://img.b2bpic.net/free-vector/cosmetics-products-realistic-composition-poster_1284-18210.jpg", imageAlt: "Radiant Hydration Moisturizer"
},
{
id: "2", name: "Luminous Glow Serum", price: "$72", imageSrc: "http://img.b2bpic.net/free-photo/front-view-argan-product-composition_23-2148955787.jpg", imageAlt: "Luminous Glow Serum"
id: "2", name: "Luminous Glow Serum — Clinically proven brightening", price: "$72 • Advanced anti-aging formula", imageSrc: "http://img.b2bpic.net/free-photo/front-view-argan-product-composition_23-2148955787.jpg", imageAlt: "Luminous Glow Serum"
},
{
id: "3", name: "Purifying Wellness Mask", price: "$48", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-body-butter-pink-cloth_23-2148305543.jpg", imageAlt: "Purifying Wellness Mask"
id: "3", name: "Purifying Wellness Mask — Deep cleansing detox", price: "$48 • 100% natural ingredients", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-body-butter-pink-cloth_23-2148305543.jpg", imageAlt: "Purifying Wellness Mask"
}
]}
gridVariant="three-columns-all-equal-width"

View File

@@ -1,51 +1,46 @@
"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;
}
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 = '' }) => {
const textLength = text.length;
const charWidth = 60;
const width = textLength * charWidth + 40;
const height = 120;
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}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stopColor="#ff6b6b" />
<stop offset="50%" stopColor="#4ecdc4" />
<stop offset="100%" stopColor="#45b7d1" />
</linearGradient>
</defs>
<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="48"
fontWeight="bold"
fill="url(#textGradient)"
fontFamily="Arial, sans-serif"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;