feat: add building year and garage information to CardInfos component

This commit is contained in:
Marco Pedone 2026-04-29 16:40:39 +02:00
parent e33ee7a8cd
commit 2669de4caf

View file

@ -4,6 +4,7 @@ import {
BadgeEuro,
Bath,
BedDouble,
Building,
Car,
Clock,
Copy,
@ -11,6 +12,7 @@ import {
Ruler,
Share2,
TrafficCone,
Warehouse,
} from "lucide-react";
import type { GetStaticPaths, GetStaticPropsContext, NextPage } from "next";
import Head from "next/head";
@ -408,6 +410,8 @@ const CardInfos = () => {
numero_bagni,
caratteristiche,
numero_postiauto,
numero_box,
anno,
mq,
piano,
stato,
@ -492,12 +496,22 @@ const CardInfos = () => {
{caratteristiche?.Scheda_Arredi || ""}
</span>
</div>
<div className="flex justify-center gap-2 rounded-md bg-primary-foreground p-2 text-primary">
<Building />
<span className="line-clamp-1 break-all">{anno || ""}</span>
</div>
<div className="flex justify-center gap-2 rounded-md bg-primary-foreground p-2 text-primary">
<Car />
<span className="line-clamp-1 break-all">
{numero_postiauto || 0} {t.annunci.posti_auto}
</span>
</div>
<div className="flex justify-center gap-2 rounded-md bg-primary-foreground p-2 text-primary">
<Warehouse />
<span className="line-clamp-1 break-all">
{numero_box || 0} Garage
</span>
</div>
</div>
</div>
<div className="flex flex-col gap-2">