Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="smallMedium"
|
||||
sizing="largeSmallSizeMediumTitles"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-radial"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -53,14 +53,14 @@ export default function LandingPage() {
|
||||
]}
|
||||
buttonAnimation="blur-reveal"
|
||||
mediaItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-holding-cup-store-concept-choosing-dishes_169016-23224.jpg?_wi=1", imageAlt: "luxury scented candles collection aesthetic" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-drinks-arrangement_23-2149312336.jpg?_wi=1", imageAlt: "vanilla scented candle product photography" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/still-life-with-bouquet-blue-pink-wildflowers-vase_169016-59687.jpg?_wi=1", imageAlt: "lavender candle luxury product shot" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/burning-candle-red-roses-home-romance-cozy-romance_169016-71469.jpg?_wi=1", imageAlt: "rose scented candle luxury product" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-holding-cup-store-concept-choosing-dishes_169016-23224.jpg?_wi=2", imageAlt: "luxury scented candles collection aesthetic" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-holding-cup-store-concept-choosing-dishes_169016-23224.jpg", imageAlt: "luxury scented candles collection aesthetic" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-drinks-arrangement_23-2149312336.jpg", imageAlt: "vanilla scented candle product photography" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/still-life-with-bouquet-blue-pink-wildflowers-vase_169016-59687.jpg", imageAlt: "lavender candle luxury product shot" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/burning-candle-red-roses-home-romance-cozy-romance_169016-71469.jpg", imageAlt: "rose scented candle luxury product" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-holding-cup-store-concept-choosing-dishes_169016-23224.jpg", imageAlt: "luxury scented candles collection aesthetic" }
|
||||
]}
|
||||
mediaAnimation="slide-up"
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
ariaLabel="Hero section showcasing premium candle collection"
|
||||
/>
|
||||
</div>
|
||||
@@ -77,9 +77,9 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
products={[
|
||||
{ id: "1", name: "Vanilla Dream", price: "$34.99", imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-drinks-arrangement_23-2149312336.jpg?_wi=2", imageAlt: "Vanilla Dream premium candle", initialQuantity: 1 },
|
||||
{ id: "2", name: "Lavender Serenity", price: "$34.99", imageSrc: "http://img.b2bpic.net/free-photo/still-life-with-bouquet-blue-pink-wildflowers-vase_169016-59687.jpg?_wi=2", imageAlt: "Lavender Serenity scented candle", initialQuantity: 1 },
|
||||
{ id: "3", name: "Rose Bliss", price: "$39.99", imageSrc: "http://img.b2bpic.net/free-photo/burning-candle-red-roses-home-romance-cozy-romance_169016-71469.jpg?_wi=2", imageAlt: "Rose Bliss luxury candle", initialQuantity: 1 }
|
||||
{ id: "1", name: "Vanilla Dream", price: "$34.99", imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-drinks-arrangement_23-2149312336.jpg", imageAlt: "Vanilla Dream premium candle", initialQuantity: 1 },
|
||||
{ id: "2", name: "Lavender Serenity", price: "$34.99", imageSrc: "http://img.b2bpic.net/free-photo/still-life-with-bouquet-blue-pink-wildflowers-vase_169016-59687.jpg", imageAlt: "Lavender Serenity scented candle", initialQuantity: 1 },
|
||||
{ id: "3", name: "Rose Bliss", price: "$39.99", imageSrc: "http://img.b2bpic.net/free-photo/burning-candle-red-roses-home-romance-cozy-romance_169016-71469.jpg", imageAlt: "Rose Bliss luxury candle", initialQuantity: 1 }
|
||||
]}
|
||||
ariaLabel="Product collection section with add to cart"
|
||||
/>
|
||||
@@ -95,7 +95,7 @@ export default function LandingPage() {
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={true}
|
||||
imagePosition="right"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/woman-holding-cup-store-concept-choosing-dishes_169016-23224.jpg?_wi=3"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/woman-holding-cup-store-concept-choosing-dishes_169016-23224.jpg"
|
||||
imageAlt="Premium candle collection display"
|
||||
mediaAnimation="slide-up"
|
||||
bulletPoints={[
|
||||
|
||||
@@ -1,51 +1,38 @@
|
||||
"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;
|
||||
size?: number;
|
||||
color?: 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',
|
||||
size = 100,
|
||||
color = '#000000',
|
||||
...props
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={size}
|
||||
height={size}
|
||||
viewBox={`0 0 ${size} ${size}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
{...props}
|
||||
>
|
||||
<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="central"
|
||||
fontSize="24"
|
||||
fontWeight="bold"
|
||||
fill={color}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user