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 */} -
- -
-

+ ); }; - - - - -