Refactor CardAnnuncio component to improve title and address display with better styling and layout
This commit is contained in:
parent
9b44cad8eb
commit
e6515ea19d
1 changed files with 12 additions and 13 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue