diff --git a/src/components/home/BeforeAfterGallery.tsx b/src/components/home/BeforeAfterGallery.tsx index e902b10..5fe82c0 100644 --- a/src/components/home/BeforeAfterGallery.tsx +++ b/src/components/home/BeforeAfterGallery.tsx @@ -104,7 +104,7 @@ function BeforeAfterSlider({ result }: { result: typeof results[0] }) {
{[1, 2, 3, 4, 5].map((star) => ( - + ))} diff --git a/src/components/home/HeroVideo.tsx b/src/components/home/HeroVideo.tsx index 2f3bea6..aec6938 100644 --- a/src/components/home/HeroVideo.tsx +++ b/src/components/home/HeroVideo.tsx @@ -59,7 +59,7 @@ export default function HeroVideo() { >
{[1, 2, 3, 4, 5].map((star) => ( - + ))} diff --git a/src/components/product/ProductCard.tsx b/src/components/product/ProductCard.tsx index 7b6bc10..ce3a9da 100644 --- a/src/components/product/ProductCard.tsx +++ b/src/components/product/ProductCard.tsx @@ -33,7 +33,7 @@ export default function ProductCard({ product, index = 0, locale = "SR" }: Produ src={image} alt={localized.name} fill - className="object-contain transition-transform duration-700 ease-out group-hover:scale-105" + className="object-cover transition-transform duration-700 ease-out group-hover:scale-105" sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw" /> ) : ( diff --git a/src/components/product/ProductDetail.tsx b/src/components/product/ProductDetail.tsx index c7db13b..27eb980 100644 --- a/src/components/product/ProductDetail.tsx +++ b/src/components/product/ProductDetail.tsx @@ -171,7 +171,7 @@ export default function ProductDetail({ product, relatedProducts, locale = "SR" src={image.url} alt={image.alt || localized.name} fill - className="object-contain" + className="object-cover" sizes="80px" /> @@ -179,25 +179,18 @@ export default function ProductDetail({ product, relatedProducts, locale = "SR"
)} - {/* Main Image */} -
+{/* Main Image */} +
{images[selectedImage] && ( {images[selectedImage].alt )} - - {/* Award Badge - Optional */} -
-
- {locale === "EN" ? "Bestseller" : "Najprodavanije"} -
-
diff --git a/src/components/product/ProductReviews.tsx b/src/components/product/ProductReviews.tsx index 944886c..1984f89 100644 --- a/src/components/product/ProductReviews.tsx +++ b/src/components/product/ProductReviews.tsx @@ -65,7 +65,7 @@ function ReviewCard({ review }: { review: typeof reviews[0] }) {
{[1, 2, 3, 4, 5].map((star) => ( - + ))} @@ -107,7 +107,7 @@ export default function ProductReviews({ locale = "SR", productName = "this prod
{[1, 2, 3, 4, 5].map((star) => ( - + ))}