Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 22:01:44 +00:00
2 changed files with 36 additions and 42 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"
@@ -49,7 +49,7 @@ export default function LandingPage() {
{ text: "Learn More", href: "about" }
]}
buttonAnimation="slide-up"
background={{ variant: "aurora" }}
background={{ variant: "sparkles-gradient" }}
imageSrc="http://img.b2bpic.net/free-photo/natural-jojoba-oil-composition_23-2149047761.jpg"
imageAlt="Premium skincare products"
mediaAnimation="slide-up"
@@ -84,7 +84,7 @@ export default function LandingPage() {
tagAnimation="slide-up"
products={[
{
id: "1", name: "Radiant Hydration Moisturizer", price: "$58", imageSrc: "http://img.b2bpic.net/free-photo/close-up-skin-regeneration-products_23-2151242136.jpg?_wi=1", imageAlt: "Hydration moisturizer jar"
id: "1", name: "Radiant Hydration Moisturizer", price: "$58", imageSrc: "http://img.b2bpic.net/free-photo/close-up-skin-regeneration-products_23-2151242136.jpg", imageAlt: "Hydration moisturizer jar"
},
{
id: "2", name: "Luminous Repair Serum", price: "$72", imageSrc: "http://img.b2bpic.net/free-photo/natural-jojoba-oil-composition_23-2149047769.jpg", imageAlt: "Repair serum bottle"
@@ -178,7 +178,7 @@ export default function LandingPage() {
id: "4", title: "What is your return policy?", content: "We offer a 60-day money-back guarantee on all products. If you're not completely satisfied, simply return the product for a full refund."
}
]}
imageSrc="http://img.b2bpic.net/free-photo/close-up-skin-regeneration-products_23-2151242136.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/close-up-skin-regeneration-products_23-2151242136.jpg"
imageAlt="Premium skincare products"
mediaAnimation="slide-up"
mediaPosition="left"
@@ -197,7 +197,7 @@ export default function LandingPage() {
description="Subscribe to our newsletter for weekly skincare tips, ingredient spotlights, and exclusive discounts on new product launches."
tagIcon={Mail}
tagAnimation="slide-up"
background={{ variant: "aurora" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
inputPlaceholder="Enter your email address"
buttonText="Subscribe"

View File

@@ -1,51 +1,45 @@
"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;
fontWeight?: number | string;
fill?: string;
strokeWidth?: number;
stroke?: 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 = 24,
fontWeight = 700,
fill = 'currentColor',
strokeWidth = 0,
stroke = 'none',
}) => {
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} ${fontSize * 1.5}`}
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
stroke={stroke}
strokeWidth={strokeWidth}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;