From a91adaff28df85d8c23a66187a2753276f3b08eb Mon Sep 17 00:00:00 2001 From: parsa aghaei Date: Mon, 29 Jun 2026 11:14:43 +0330 Subject: [PATCH] fix: testimonials card width + text wrapping, modal scroll structure, local image paths --- .../components/projects/projects.tsx | 44 +++++++++++-------- .../components/testimonials/testimonials.tsx | 4 +- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/app/(routes)/(website)/components/projects/projects.tsx b/src/app/(routes)/(website)/components/projects/projects.tsx index d45d367..4ecaa46 100644 --- a/src/app/(routes)/(website)/components/projects/projects.tsx +++ b/src/app/(routes)/(website)/components/projects/projects.tsx @@ -283,21 +283,26 @@ export default function Projects({ dict }: MyProjectsProps) {
{/* Left: Image */}
- {selectedProject.images.map((image, idx) => ( - {`Image - ))} + {selectedProject.images.map((image, idx) => { + const imgSrc = image.src.startsWith("http") + ? image.src + : `/images/projects/${image.src}`; + return ( + {`Image + ); + })}
{/* Right: Details */} -
-
+
+
{selectedProject.category} @@ -316,16 +321,16 @@ export default function Projects({ dict }: MyProjectsProps) { {isRTL ? "توسعه" : "Development"}
- -

- {isRTL - ? "این پروژه با استفاده از آخرین تکنولوژی‌های وب توسعه یافته است. تیم ما با دقت و توجه به جزئیات، راهکاری scalable و maintainable ارائه داده است که نیازهای کسب و کار را به بهترین شکل برآورده می‌کند. از طراحی رابط کاربری گرفته تا بهینه‌سازی performance، تمامی جنبه‌های این پروژه با بالاترین استانداردها پیاده‌سازی شده است." - : "This project was built using the latest web technologies. Our team delivered a scalable and maintainable solution with meticulous attention to detail, meeting business requirements effectively. From UI/UX design to performance optimization, every aspect was implemented to the highest standards."} -

- {/* Navigation */} -
+

+ {isRTL + ? "این پروژه با استفاده از آخرین تکنولوژی‌های وب توسعه یافته است. تیم ما با دقت و توجه به جزئیات، راهکاری scalable و maintainable ارائه داده است که نیازهای کسب و کار را به بهترین شکل برآورده می‌کند. از طراحی رابط کاربری گرفته تا بهینه‌سازی performance، تمامی جنبه‌های این پروژه با بالاترین استانداردها پیاده‌سازی شده است." + : "This project was built using the latest web technologies. Our team delivered a scalable and maintainable solution with meticulous attention to detail, meeting business requirements effectively. From UI/UX design to performance optimization, every aspect was implemented to the highest standards."} +

+ +
+
+
diff --git a/src/app/(routes)/(website)/components/testimonials/testimonials.tsx b/src/app/(routes)/(website)/components/testimonials/testimonials.tsx index ed9c4db..b5f87a5 100644 --- a/src/app/(routes)/(website)/components/testimonials/testimonials.tsx +++ b/src/app/(routes)/(website)/components/testimonials/testimonials.tsx @@ -88,7 +88,7 @@ export default function Testimonials({ dict }: TestimonialsProps) { {tData.map((testimonial, index) => (
-

+

"{testimonial.quote}"