From 39248241a621e45010b9bab5a5f242ee5bdbf5b6 Mon Sep 17 00:00:00 2001 From: 230417 <230417@epvc.pt> Date: Tue, 3 Mar 2026 15:36:56 +0000 Subject: [PATCH] =?UTF-8?q?mudan=C3=A7as=20no=20shopcard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ShopCard.tsx | 54 +++++++++++++++------------------ 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/web/src/components/ShopCard.tsx b/web/src/components/ShopCard.tsx index fe6027c..fd399e6 100644 --- a/web/src/components/ShopCard.tsx +++ b/web/src/components/ShopCard.tsx @@ -5,64 +5,58 @@ import { Card } from './ui/card'; import { Button } from './ui/button'; export const ShopCard = ({ shop }: { shop: BarberShop }) => { - // Distância simulada para o layout - const mockDistance = (Math.abs(shop.id.charCodeAt(0) * 11) % 900) + 100; - return ( -
+
{/* Avatar Circular com Badge de Rating */}
-
+
{shop.imageUrl ? ( {shop.name} ) : ( -
- +
+
)}
- {/* Rating Badge - Posicionado em cima à direita como na imagem */} -
- - + {/* Rating Badge - Posicionado em cima à direita como na imagem base */} +
+ + {shop.rating ? shop.rating.toFixed(1) : '0.0'}
{/* Informações da Barbearia */} -
-

+
+

{shop.name}

-

- {shop.address || 'Endereço Indisponível'} -

+
+ +

+ {shop.address || 'Endereço Indisponível'} +

+
-
- - - {mockDistance} m - +
+ {(shop.services || []).length} serviços + + {(shop.barbers || []).length} barbeiros
{/* Botões de Ação na base */} -
- -
-

+ ); }; - - - - -