Refactor CardAnnuncio component to improve title and address display with better styling and layout

This commit is contained in:
Marco Pedone 2025-08-08 17:56:43 +02:00
parent 9b44cad8eb
commit e6515ea19d

View file

@ -143,21 +143,20 @@ const CardAnnuncio = ({
</span>
</div>
</div>
<div className="mb-3 text-center">
<span className="sr-only">{t.card.titolo}</span>
<span className="line-clamp-2 min-h-[3rem] text-base font-medium text-neutral-500 md:text-lg">
{titolo}
</span>
</div>
<div className="text-center">
<div className="mb-3 text-center">
<span className="sr-only">{t.card.titolo}</span>
<span className="sr-only">{t.card.indirizzo}</span>
<span className="text-base font-medium text-neutral-500 md:text-lg">
{titolo}
</span>
</div>
<div className="text-center">
<span className="sr-only">{t.card.indirizzo}</span>
<span className="text-sm font-medium text-neutral-500">
{comune && provincia && `${comune} (${provincia})`}
</span>
</div>
<span className="text-sm font-medium text-neutral-500">
{comune && provincia && `${comune} (${provincia})`}
</span>
</div>
</div>