Merge version_1 into main #2
@@ -45,18 +45,18 @@ export default function LandingPage() {
|
||||
<HeroBillboardGallery
|
||||
title="Premium Cotton Essentials in Al Barsha"
|
||||
description="Discover high-quality breathable cotton clothing and textiles designed for comfort and durability. 100% natural cotton products perfect for your family."
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "radial-gradient" }}
|
||||
tag="Featured Collection"
|
||||
buttons={[
|
||||
{ text: "Call Now", href: "tel:+971506950678" },
|
||||
{ text: "WhatsApp Us", href: "https://wa.me/971506950678" }
|
||||
]}
|
||||
mediaItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/arm-hand-resting-rust-colored-linen_23-2152029616.jpg?_wi=1", imageAlt: "Premium cotton collection showcase" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/shopping-mall-with-people-motion_1203-521.jpg?_wi=1", imageAlt: "Cottonil store interior" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-cozy-texture-detail_23-2149385262.jpg?_wi=1", imageAlt: "Cotton clothing collection" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-flannel-shirt-detail_23-2149575336.jpg?_wi=1", imageAlt: "Premium cotton fabrics" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/bed-arrangement-with-fresh-sheets_23-2150551110.jpg?_wi=1", imageAlt: "Cotton household products" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/arm-hand-resting-rust-colored-linen_23-2152029616.jpg", imageAlt: "Premium cotton collection showcase" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/shopping-mall-with-people-motion_1203-521.jpg", imageAlt: "Cottonil store interior" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-cozy-texture-detail_23-2149385262.jpg", imageAlt: "Cotton clothing collection" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-flannel-shirt-detail_23-2149575336.jpg", imageAlt: "Premium cotton fabrics" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/bed-arrangement-with-fresh-sheets_23-2150551110.jpg", imageAlt: "Cotton household products" }
|
||||
]}
|
||||
mediaAnimation="slide-up"
|
||||
/>
|
||||
@@ -89,9 +89,9 @@ export default function LandingPage() {
|
||||
carouselMode="buttons"
|
||||
products={[
|
||||
{ id: "underwear", name: "Cotton Underwear", price: "Premium Quality", variant: "Multiple Sizes & Colors", imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-shapewear-front-view_23-2149956335.jpg", imageAlt: "Premium cotton underwear collection" },
|
||||
{ id: "clothing", name: "Cotton Clothing", price: "Comfortable Basics", variant: "T-Shirts, Basics, Apparel", imageSrc: "http://img.b2bpic.net/free-photo/close-up-cozy-texture-detail_23-2149385262.jpg?_wi=2", imageAlt: "Natural cotton clothing collection" },
|
||||
{ id: "fabrics", name: "Premium Cotton Fabrics", price: "100% Natural", variant: "High-Quality Textiles", imageSrc: "http://img.b2bpic.net/free-photo/close-up-flannel-shirt-detail_23-2149575336.jpg?_wi=2", imageAlt: "Premium cotton fabrics and textiles" },
|
||||
{ id: "household", name: "Household Cotton Products", price: "Home Essentials", variant: "Linens, Towels & More", imageSrc: "http://img.b2bpic.net/free-photo/bed-arrangement-with-fresh-sheets_23-2150551110.jpg?_wi=2", imageAlt: "Cotton household textiles collection" }
|
||||
{ id: "clothing", name: "Cotton Clothing", price: "Comfortable Basics", variant: "T-Shirts, Basics, Apparel", imageSrc: "http://img.b2bpic.net/free-photo/close-up-cozy-texture-detail_23-2149385262.jpg", imageAlt: "Natural cotton clothing collection" },
|
||||
{ id: "fabrics", name: "Premium Cotton Fabrics", price: "100% Natural", variant: "High-Quality Textiles", imageSrc: "http://img.b2bpic.net/free-photo/close-up-flannel-shirt-detail_23-2149575336.jpg", imageAlt: "Premium cotton fabrics and textiles" },
|
||||
{ id: "household", name: "Household Cotton Products", price: "Home Essentials", variant: "Linens, Towels & More", imageSrc: "http://img.b2bpic.net/free-photo/bed-arrangement-with-fresh-sheets_23-2150551110.jpg", imageAlt: "Cotton household textiles collection" }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -140,7 +140,7 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="right"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/shopping-mall-with-people-motion_1203-521.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/shopping-mall-with-people-motion_1203-521.jpg"
|
||||
imageAlt="Cottonil Al Barsha store location"
|
||||
inputs={[
|
||||
{ name: "name", type: "text", placeholder: "Your Name", required: true },
|
||||
@@ -159,7 +159,7 @@ export default function LandingPage() {
|
||||
description="Experience premium cotton quality and exceptional customer service"
|
||||
subdescription="Al Barsha 1, Dubai | Open Daily"
|
||||
icon={MapPin}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/arm-hand-resting-rust-colored-linen_23-2152029616.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/arm-hand-resting-rust-colored-linen_23-2152029616.jpg"
|
||||
imageAlt="Cottonil premium collection"
|
||||
useInvertedBackground={false}
|
||||
mediaAnimation="slide-up"
|
||||
|
||||
@@ -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;
|
||||
textClassName?: string;
|
||||
fontSize?: number;
|
||||
letterSpacing?: number;
|
||||
dominantBaseline?: 'hanging' | 'middle' | 'auto' | 'baseline' | 'central' | 'mathematical';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
textClassName = '',
|
||||
fontSize = 32,
|
||||
letterSpacing = 0,
|
||||
dominantBaseline = 'central',
|
||||
}) => {
|
||||
// Estimate SVG width based on text length and font size
|
||||
const estimatedWidth = Math.max(200, text.length * fontSize * 0.6);
|
||||
const svgHeight = fontSize + 20;
|
||||
|
||||
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 ${estimatedWidth} ${svgHeight}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
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={dominantBaseline}
|
||||
fontSize={fontSize}
|
||||
letterSpacing={letterSpacing}
|
||||
className={textClassName}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user