Merge version_1 into main #2
@@ -59,11 +59,10 @@ export default function ProductDetailsPage() {
|
||||
{ text: "استفسر الآن", href: "/contact" },
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
imageSrc="http://img.b2bpic.net/free-psd/levitating-headphones-still-life_23-2150806982.jpg?_wi=4"
|
||||
imageSrc="http://img.b2bpic.net/free-psd/levitating-headphones-still-life_23-2150806982.jpg"
|
||||
imageAlt="سماعات لاسلكية بريميوم"
|
||||
mediaAnimation="slide-up"
|
||||
imagePosition="right"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -76,40 +75,16 @@ export default function ProductDetailsPage() {
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "1",
|
||||
name: "حقيبة يد جلدية أصلية",
|
||||
price: "125,000 ع.د",
|
||||
variant: "بني، أسود - جلد طبيعي",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/mediterranean-aesthetic-tiles-with-women-s-bag_23-2150916679.jpg?_wi=3",
|
||||
imageAlt: "حقيبة يد جلدية",
|
||||
isFavorited: false,
|
||||
id: "1", name: "حقيبة يد جلدية أصلية", price: "125,000 ع.د", variant: "بني، أسود - جلد طبيعي", imageSrc: "http://img.b2bpic.net/free-photo/mediterranean-aesthetic-tiles-with-women-s-bag_23-2150916679.jpg", imageAlt: "حقيبة يد جلدية", isFavorited: false,
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
name: "ساعة ذكية رياضية",
|
||||
price: "95,000 ع.د",
|
||||
variant: "فضي، ذهبي - 5 ألوان",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-checks-workout-smartwatch-listens-music-stereo-headphones-dressed-sportswear-poses-against-modern-city-building-monitors-her-progress_273609-55436.jpg?_wi=3",
|
||||
imageAlt: "ساعة ذكية",
|
||||
isFavorited: false,
|
||||
id: "2", name: "ساعة ذكية رياضية", price: "95,000 ع.د", variant: "فضي، ذهبي - 5 ألوان", imageSrc: "http://img.b2bpic.net/free-photo/woman-checks-workout-smartwatch-listens-music-stereo-headphones-dressed-sportswear-poses-against-modern-city-building-monitors-her-progress_273609-55436.jpg", imageAlt: "ساعة ذكية", isFavorited: false,
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
name: "محفظة جلدية متميزة",
|
||||
price: "65,000 ع.د",
|
||||
variant: "أحمر، أسود - جودة عالية",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/arrangement-with-travel-items-copy-space_23-2148909622.jpg?_wi=4",
|
||||
imageAlt: "محفظة جلدية",
|
||||
isFavorited: false,
|
||||
id: "3", name: "محفظة جلدية متميزة", price: "65,000 ع.د", variant: "أحمر، أسود - جودة عالية", imageSrc: "http://img.b2bpic.net/free-photo/arrangement-with-travel-items-copy-space_23-2148909622.jpg", imageAlt: "محفظة جلدية", isFavorited: false,
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
name: "كابل شحن عالي الجودة",
|
||||
price: "35,000 ع.د",
|
||||
variant: "أسود - متين وآمن",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/arrangement-with-travel-items-copy-space_23-2148909622.jpg?_wi=5",
|
||||
imageAlt: "كابل شحن",
|
||||
isFavorited: false,
|
||||
id: "4", name: "كابل شحن عالي الجودة", price: "35,000 ع.د", variant: "أسود - متين وآمن", imageSrc: "http://img.b2bpic.net/free-photo/arrangement-with-travel-items-copy-space_23-2148909622.jpg", imageAlt: "كابل شحن", isFavorited: false,
|
||||
},
|
||||
]}
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
@@ -128,29 +103,14 @@ export default function ProductDetailsPage() {
|
||||
tag="آراء حقيقية"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1",
|
||||
name: "أحمد محمد",
|
||||
role: "مشتري منتظم",
|
||||
company: "بغداد",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-professional-businesswoman-indoors_23-2148824826.jpg?_wi=2",
|
||||
},
|
||||
id: "1", name: "أحمد محمد", role: "مشتري منتظم", company: "بغداد", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-professional-businesswoman-indoors_23-2148824826.jpg", imageAlt: "أحمد محمد"},
|
||||
{
|
||||
id: "2",
|
||||
name: "فاطمة علي",
|
||||
role: "مشتري منتظم",
|
||||
company: "البصرة",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/skeptical-senior-businesswoman-looking-camera_1262-5592.jpg?_wi=2",
|
||||
},
|
||||
id: "2", name: "فاطمة علي", role: "مشتري منتظم", company: "البصرة", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/skeptical-senior-businesswoman-looking-camera_1262-5592.jpg", imageAlt: "فاطمة علي"},
|
||||
{
|
||||
id: "3",
|
||||
name: "علي حسن",
|
||||
role: "مشتري منتظم",
|
||||
company: "الناصرية",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/headshot-attractive-curly-youngster-looks-seriously-camera_176532-8126.jpg?_wi=2",
|
||||
},
|
||||
id: "3", name: "علي حسن", role: "مشتري منتظم", company: "الناصرية", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/headshot-attractive-curly-youngster-looks-seriously-camera_176532-8126.jpg", imageAlt: "علي حسن"},
|
||||
]}
|
||||
gridVariant="uniform-all-items-equal"
|
||||
animationType="slide-up"
|
||||
|
||||
@@ -1,51 +1,37 @@
|
||||
"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?: number | string;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
export function SvgTextLogo({
|
||||
text,
|
||||
className = '',
|
||||
fontSize = 32,
|
||||
fontFamily = 'inherit',
|
||||
fontWeight = 'bold',
|
||||
}: SvgTextLogoProps) {
|
||||
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.6} ${fontSize * 1.5}`}
|
||||
className={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"
|
||||
}}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill="currentColor"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user