feat: optimize product images to e-commerce standard (600x600 → 300px display)
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
This commit is contained in:
@@ -377,7 +377,7 @@ export default {
|
||||
quantity: 0,
|
||||
img:
|
||||
product.img ||
|
||||
`https://picsum.photos/300/200?random=${product.id}`,
|
||||
`https://picsum.photos/600/600?random=${product.id}`,
|
||||
}));
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
Reference in New Issue
Block a user