diff --git a/src/app/product/[id]/page.tsx b/src/app/product/[id]/page.tsx index 83e98bb..6bb7a2a 100644 --- a/src/app/product/[id]/page.tsx +++ b/src/app/product/[id]/page.tsx @@ -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} /> @@ -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" diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..e1d6cb0 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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(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 ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +}