From 38c1d8c17cc0a2c88cf1586f1e9f59f9e3d63bb8 Mon Sep 17 00:00:00 2001 From: aserrador Date: Thu, 28 May 2026 23:25:17 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20optimize=20product=20images=20to=20e-co?= =?UTF-8?q?mmerce=20standard=20(600x600=20=E2=86=92=20300px=20display)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit INDUSTRY STANDARD IMPLEMENTATION: - Change placeholder images from 300x200 (3:2) to 600x600 (1:1 square) - Set max-height to 300px with aspect-ratio 1:1 for consistent display - Follow e-commerce best practices (Amazon, Shopify, Mercado Libre) TEMPLATE CHANGES: - catalog.vue: Update placeholder URL to 600x600 square images - Card.vue: Add aspect-ratio="1" for perfect square display - Card.vue: Increase max-height from 140px to 300px - Restore padding: pa-2 → pa-3 (8px → 12px) - Restore title size: text-subtitle-2 → text-subtitle-1 - Restore margins: mb-1 → mb-2 - Restore chip size: x-small → small - Restore footer padding: pa-2 → pa-2 pb-3 CSS CHANGES: - Remove fixed height from .product-image-container (use 100% for flexibility) - Product name: 0.85rem → 0.95rem, min-height 2rem → 2.5rem - Price label: 0.6rem → 0.65rem - Price value: 0.9rem → 1.1rem - Price chip: height 22px → 26px, font 0.75rem → 0.9rem - Quantity input: 55px → 65px, font 0.85rem → 0.95rem - Section gaps: 2px → 4px, row gaps: 1px → 2px RESPONSIVE STRATEGY (optimized for 300px max): - Mobile XS (<375px): Natural scaling, compact layout - Mobile (375-559px): Natural scaling, readable text - Tablet (560-959px): Enhanced padding and fonts - Desktop (≥960px): Full 300px display with optimal spacing - Desktop L/XL: Maintain 300px with enhanced typography RESULT: - Square images (1:1) matching industry standard - 600x600 source allows retina displays and zoom - 300px display on desktop (sweet spot for catalogs) - Responsive scaling maintains aspect ratio - Professional e-commerce appearance --- src/components/catalog/Card.vue | 272 ++++++++++++++++++++++++-------- src/pages/catalog.vue | 2 +- 2 files changed, 206 insertions(+), 68 deletions(-) diff --git a/src/components/catalog/Card.vue b/src/components/catalog/Card.vue index d80f7f1..7efebe6 100644 --- a/src/components/catalog/Card.vue +++ b/src/components/catalog/Card.vue @@ -2,50 +2,58 @@
-
- + -
+
-
+
Precio unitario -
+
{{ currency(product.price) }}
- +
Precio total - {{ currency(product.price * product.quantity) }} @@ -54,11 +62,11 @@ - +
- mdi-minus - + - - {