Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -21,7 +21,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="large"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="soft-shadow"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -45,7 +45,7 @@ export default function LandingPage() {
|
||||
<HeroCentered
|
||||
title="Minimalist Clothing for Tech Enthusiasts"
|
||||
description="Discover DXLR - where simplicity meets style. Our collection of premium hoodies, apparel, and lifestyle pieces is designed for those who appreciate quality, comfort, and individuality in the digital age."
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
avatars={[
|
||||
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=fv5cmg", alt: "Customer 1" },
|
||||
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=o84btd", alt: "Customer 2" },
|
||||
@@ -74,13 +74,13 @@ export default function LandingPage() {
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Classic Minimalist Hoodie", price: "LE 1,299.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ukg29l&_wi=1", imageAlt: "Classic Minimalist Hoodie", initialQuantity: 1
|
||||
id: "1", name: "Classic Minimalist Hoodie", price: "LE 1,299.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ukg29l", imageAlt: "Classic Minimalist Hoodie", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "2", name: "Premium Sweatpants", price: "LE 899.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xs8waw&_wi=1", imageAlt: "Premium Sweatpants", initialQuantity: 1
|
||||
id: "2", name: "Premium Sweatpants", price: "LE 899.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xs8waw", imageAlt: "Premium Sweatpants", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "3", name: "Tech Brand Blanket", price: "LE 1,199.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=lawcge&_wi=1", imageAlt: "Minimalist Comfort Blanket", initialQuantity: 1
|
||||
id: "3", name: "Tech Brand Blanket", price: "LE 1,199.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=lawcge", imageAlt: "Minimalist Comfort Blanket", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "4", name: "Summer Collection Set", price: "LE 1,599.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1v8sey", imageAlt: "Summer Collection Set", initialQuantity: 1
|
||||
@@ -120,11 +120,11 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: "2", title: "Track Suits", tags: ["Athletic", "Comfortable Fit"],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=6bw91a&_wi=1", imageAlt: "Track Suits - Athletic Minimalist Design"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=6bw91a", imageAlt: "Track Suits - Athletic Minimalist Design"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Summer Collection", tags: ["Seasonal", "Lightweight"],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=136a7l&_wi=1", imageAlt: "Summer Collection - Swim Shorts and Light Apparel"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=136a7l", imageAlt: "Summer Collection - Swim Shorts and Light Apparel"
|
||||
}
|
||||
]}
|
||||
buttons={[{ text: "Shop All Collections", href: "products" }]}
|
||||
@@ -141,22 +141,22 @@ export default function LandingPage() {
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Classic Minimalist Hoodie - Black", price: "LE 1,299.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ukg29l&_wi=2", imageAlt: "Classic Minimalist Hoodie in Black", initialQuantity: 1
|
||||
id: "1", name: "Classic Minimalist Hoodie - Black", price: "LE 1,299.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ukg29l", imageAlt: "Classic Minimalist Hoodie in Black", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "2", name: "Premium Sweatpants - Charcoal", price: "LE 899.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xs8waw&_wi=2", imageAlt: "Premium Sweatpants in Charcoal", initialQuantity: 1
|
||||
id: "2", name: "Premium Sweatpants - Charcoal", price: "LE 899.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xs8waw", imageAlt: "Premium Sweatpants in Charcoal", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "3", name: "Woody Blanket", price: "LE 1,199.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=lawcge&_wi=2", imageAlt: "Woody Blanket - Comfortable and Minimalist", initialQuantity: 1
|
||||
id: "3", name: "Woody Blanket", price: "LE 1,199.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=lawcge", imageAlt: "Woody Blanket - Comfortable and Minimalist", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "4", name: "Navy Blanket", price: "LE 1,199.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=lawcge&_wi=3", imageAlt: "Navy Blanket - Premium Quality", initialQuantity: 1
|
||||
id: "4", name: "Navy Blanket", price: "LE 1,199.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=lawcge", imageAlt: "Navy Blanket - Premium Quality", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "5", name: "Track Suit Set", price: "LE 1,599.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=6bw91a&_wi=2", imageAlt: "Track Suit Set - Athletic Collection", initialQuantity: 1
|
||||
id: "5", name: "Track Suit Set", price: "LE 1,599.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=6bw91a", imageAlt: "Track Suit Set - Athletic Collection", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "6", name: "Summer Swim Shorts", price: "LE 699.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=136a7l&_wi=2", imageAlt: "Summer Swim Shorts - Lightweight Design", initialQuantity: 1
|
||||
id: "6", name: "Summer Swim Shorts", price: "LE 699.00", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=136a7l", imageAlt: "Summer Swim Shorts - Lightweight Design", initialQuantity: 1
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -245,7 +245,7 @@ export default function LandingPage() {
|
||||
{ text: "Shop Now", href: "products" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
ariaLabel="Contact CTA section for DXLR"
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,49 @@
|
||||
"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;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
fill?: string;
|
||||
width?: number | string;
|
||||
height?: number | 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,
|
||||
fontFamily = 'Arial',
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
width = 'auto',
|
||||
height = 'auto',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox="0 0 200 50"
|
||||
className={className}
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
aria-label={text}
|
||||
>
|
||||
<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%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user