Merge version_1 into main #2
@@ -21,7 +21,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="compact"
|
||||
sizing="largeSmallSizeMediumTitles"
|
||||
background="floatingGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="subtle-shadow"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -53,7 +53,7 @@ export default function LandingPage() {
|
||||
{ text: "Learn More", href: "about" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
carouselItems={[
|
||||
{ id: "1", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zrekr1", imageAlt: "Premium running shoes display" },
|
||||
{ id: "2", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9zw180", imageAlt: "Designer leather shoes collection" },
|
||||
@@ -78,16 +78,16 @@ export default function LandingPage() {
|
||||
buttonAnimation="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "TrailBlaze Pro Running Shoes", price: "$129.99", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=3yi1aa&_wi=1", imageAlt: "TrailBlaze Pro Running Shoes", initialQuantity: 1
|
||||
id: "1", name: "TrailBlaze Pro Running Shoes", price: "$129.99", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=3yi1aa", imageAlt: "TrailBlaze Pro Running Shoes", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "2", name: "Elegance Leather Formal Oxford", price: "$179.99", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xddmyw&_wi=1", imageAlt: "Elegance Leather Formal Oxford", initialQuantity: 1
|
||||
id: "2", name: "Elegance Leather Formal Oxford", price: "$179.99", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xddmyw", imageAlt: "Elegance Leather Formal Oxford", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "3", name: "Summit Hiking Boots", price: "$189.99", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=qxy4op&_wi=1", imageAlt: "Summit Hiking Boots", initialQuantity: 1
|
||||
id: "3", name: "Summit Hiking Boots", price: "$189.99", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=qxy4op", imageAlt: "Summit Hiking Boots", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "4", name: "Urban Casual Sneakers", price: "$99.99", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=vvrhys&_wi=1", imageAlt: "Urban Casual Sneakers", initialQuantity: 1
|
||||
id: "4", name: "Urban Casual Sneakers", price: "$99.99", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=vvrhys", imageAlt: "Urban Casual Sneakers", initialQuantity: 1
|
||||
}
|
||||
]}
|
||||
gridVariant="uniform-all-items-equal"
|
||||
@@ -125,13 +125,13 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Advanced Cushioning Technology", description: "Our proprietary foam technology absorbs impact and provides all-day comfort, keeping your feet energized from morning to night.", phoneOne: { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=3yi1aa&_wi=2" },
|
||||
phoneTwo: { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=qxy4op&_wi=2" }
|
||||
title: "Advanced Cushioning Technology", description: "Our proprietary foam technology absorbs impact and provides all-day comfort, keeping your feet energized from morning to night.", phoneOne: { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=3yi1aa" },
|
||||
phoneTwo: { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=qxy4op" }
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Sustainable Materials", description: "Crafted from eco-friendly materials including recycled plastics and organic cotton, reducing our environmental footprint with every step.", phoneOne: { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=vvrhys&_wi=2" },
|
||||
phoneTwo: { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xddmyw&_wi=2" }
|
||||
title: "Sustainable Materials", description: "Crafted from eco-friendly materials including recycled plastics and organic cotton, reducing our environmental footprint with every step.", phoneOne: { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=vvrhys" },
|
||||
phoneTwo: { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xddmyw" }
|
||||
}
|
||||
]}
|
||||
showStepNumbers={true}
|
||||
|
||||
@@ -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;
|
||||
fontSize?: string;
|
||||
fontWeight?: string | number;
|
||||
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 = 'Webild',
|
||||
className = '',
|
||||
fontSize = '32',
|
||||
fontWeight = 'bold',
|
||||
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 400 100"
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
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%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
strokeWidth={strokeWidth}
|
||||
stroke={stroke}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user