Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function AppMobilePage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="medium"
|
||||
sizing="largeSizeMediumTitles"
|
||||
background="blurBottom"
|
||||
background="circleGradient"
|
||||
cardStyle="solid"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -49,25 +49,25 @@ export default function AppMobilePage() {
|
||||
{ text: "Call Us Now", href: "tel:+383452243999" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "blurBottom" }}
|
||||
background={{ variant: "plain" }}
|
||||
carouselItems={[
|
||||
{
|
||||
id: "1", imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-presenting-smartphone_23-2148002553.jpg?_wi=1", imageAlt: "Latest iPhone 15 models"
|
||||
id: "1", imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-presenting-smartphone_23-2148002553.jpg", imageAlt: "Latest iPhone 15 models"
|
||||
},
|
||||
{
|
||||
id: "2", imageSrc: "http://img.b2bpic.net/free-photo/man-holding-coffee-smartphone-his-hands_23-2148316598.jpg?_wi=1", imageAlt: "Samsung Galaxy smartphones"
|
||||
id: "2", imageSrc: "http://img.b2bpic.net/free-photo/man-holding-coffee-smartphone-his-hands_23-2148316598.jpg", imageAlt: "Samsung Galaxy smartphones"
|
||||
},
|
||||
{
|
||||
id: "3", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-guys-listening-music-outdoors_23-2148450800.jpg?_wi=1", imageAlt: "Mobile phone accessories"
|
||||
id: "3", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-guys-listening-music-outdoors_23-2148450800.jpg", imageAlt: "Mobile phone accessories"
|
||||
},
|
||||
{
|
||||
id: "4", imageSrc: "http://img.b2bpic.net/free-photo/business-man-pointing-tablet_23-2148479533.jpg", imageAlt: "Store interior showcase"
|
||||
},
|
||||
{
|
||||
id: "5", imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-presenting-smartphone_23-2148002553.jpg?_wi=2", imageAlt: "iPhone collection"
|
||||
id: "5", imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-presenting-smartphone_23-2148002553.jpg", imageAlt: "iPhone collection"
|
||||
},
|
||||
{
|
||||
id: "6", imageSrc: "http://img.b2bpic.net/free-photo/man-holding-coffee-smartphone-his-hands_23-2148316598.jpg?_wi=2", imageAlt: "Android phones available"
|
||||
id: "6", imageSrc: "http://img.b2bpic.net/free-photo/man-holding-coffee-smartphone-his-hands_23-2148316598.jpg", imageAlt: "Android phones available"
|
||||
}
|
||||
]}
|
||||
autoPlay={true}
|
||||
@@ -89,13 +89,13 @@ export default function AppMobilePage() {
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "iPhone 15 Pro Max", price: "€1,199", imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-presenting-smartphone_23-2148002553.jpg?_wi=3", imageAlt: "iPhone 15 Pro Max", initialQuantity: 1
|
||||
id: "1", name: "iPhone 15 Pro Max", price: "€1,199", imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-presenting-smartphone_23-2148002553.jpg", imageAlt: "iPhone 15 Pro Max", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "2", name: "Samsung Galaxy S24 Ultra", price: "€1,299", imageSrc: "http://img.b2bpic.net/free-photo/man-holding-coffee-smartphone-his-hands_23-2148316598.jpg?_wi=3", imageAlt: "Samsung Galaxy S24 Ultra", initialQuantity: 1
|
||||
id: "2", name: "Samsung Galaxy S24 Ultra", price: "€1,299", imageSrc: "http://img.b2bpic.net/free-photo/man-holding-coffee-smartphone-his-hands_23-2148316598.jpg", imageAlt: "Samsung Galaxy S24 Ultra", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "3", name: "Premium Accessories Bundle", price: "€89", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-guys-listening-music-outdoors_23-2148450800.jpg?_wi=2", imageAlt: "Phone Accessories Bundle", initialQuantity: 1
|
||||
id: "3", name: "Premium Accessories Bundle", price: "€89", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-guys-listening-music-outdoors_23-2148450800.jpg", imageAlt: "Phone Accessories Bundle", initialQuantity: 1
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -135,7 +135,7 @@ export default function AppMobilePage() {
|
||||
title: "Expert Service", description: "Our knowledgeable staff provides personalized consultation to help you find the perfect device.", imageSrc: "http://img.b2bpic.net/free-photo/woman-talking-mobile-phone-while-shopping_107420-12133.jpg", imageAlt: "Expert customer service"
|
||||
},
|
||||
{
|
||||
title: "Competitive Pricing", description: "Best prices in Pristina on the latest models with flexible payment options available.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-guys-listening-music-outdoors_23-2148450800.jpg?_wi=3", imageAlt: "Competitive pricing options"
|
||||
title: "Competitive Pricing", description: "Best prices in Pristina on the latest models with flexible payment options available.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-guys-listening-music-outdoors_23-2148450800.jpg", imageAlt: "Competitive pricing options"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,47 @@
|
||||
"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?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold';
|
||||
}
|
||||
|
||||
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',
|
||||
}) => {
|
||||
const fontWeightMap = {
|
||||
light: 300,
|
||||
normal: 400,
|
||||
medium: 500,
|
||||
semibold: 600,
|
||||
bold: 700,
|
||||
extrabold: 800,
|
||||
};
|
||||
|
||||
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 ${text.length * fontSize * 0.5} ${fontSize * 1.5}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
>
|
||||
<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={fontSize}
|
||||
fontWeight={fontWeightMap[fontWeight]}
|
||||
fill="currentColor"
|
||||
fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user