Merge version_1 into main #2
@@ -42,7 +42,7 @@ export default function LandingPage() {
|
||||
<HeroCentered
|
||||
title="Welcome to Fashion Hub"
|
||||
description="Discover the latest trends and timeless styles. Shop premium fashion with easy product management and seamless checkout."
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
avatars={[
|
||||
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=iz26kh", alt: "Satisfied customer 1" },
|
||||
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9am5kc", alt: "Satisfied customer 2" },
|
||||
@@ -95,11 +95,11 @@ export default function LandingPage() {
|
||||
products={[
|
||||
{
|
||||
id: "p1", brand: "Fashion Hub", name: "Casual White Shirt", price: "$49.99", rating: 4,
|
||||
reviewCount: "89", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1trczb&_wi=1", imageAlt: "Casual white shirt"
|
||||
reviewCount: "89", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1trczb", imageAlt: "Casual white shirt"
|
||||
},
|
||||
{
|
||||
id: "p2", brand: "Fashion Hub", name: "Black Formal Pants", price: "$69.99", rating: 5,
|
||||
reviewCount: "124", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=i8c9h9&_wi=1", imageAlt: "Black formal pants"
|
||||
reviewCount: "124", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=i8c9h9", imageAlt: "Black formal pants"
|
||||
},
|
||||
{
|
||||
id: "p3", brand: "Fashion Hub", name: "Colorful Sneakers", price: "$99.99", rating: 5,
|
||||
@@ -124,11 +124,11 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: "1", title: "Easy Product Management", author: "Smart Admin System", description: "Add, remove, and update products effortlessly with our intuitive dashboard. Full control over inventory and pricing with just a few clicks.", tags: ["Admin", "Easy"],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1trczb&_wi=2", imageAlt: "Easy management interface"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1trczb", imageAlt: "Easy management interface"
|
||||
},
|
||||
{
|
||||
id: "2", title: "User-Friendly Experience", author: "Customer First", description: "Seamless shopping experience with intuitive navigation, quick checkout, and secure payment options for peace of mind.", tags: ["UX", "Secure"],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=i8c9h9&_wi=2", imageAlt: "User friendly shopping interface"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=i8c9h9", imageAlt: "User friendly shopping interface"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -163,7 +163,7 @@ export default function LandingPage() {
|
||||
tag="Newsletter"
|
||||
title="Stay Updated with Latest Trends"
|
||||
description="Subscribe to our newsletter and get exclusive offers, styling tips, and early access to new collections. Join our fashion community today!"
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=4c4rok"
|
||||
imageAlt="Fashion newsletter signup"
|
||||
|
||||
@@ -1,51 +1,50 @@
|
||||
"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?: 'normal' | 'bold' | 'bolder' | 'lighter' | number;
|
||||
letterSpacing?: number;
|
||||
fill?: string;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'hanging' | 'middle' | 'central' | 'mathematical' | 'ideographic';
|
||||
x?: number;
|
||||
y?: number;
|
||||
}
|
||||
|
||||
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 = 32,
|
||||
fontWeight = 'bold',
|
||||
letterSpacing = 0,
|
||||
fill = 'currentColor',
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
x = 0,
|
||||
y = 0,
|
||||
}) => {
|
||||
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 200 80"
|
||||
className={`w-full h-auto ${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={x}
|
||||
y={y}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill={fill}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user