Hidden package quick info

This commit is contained in:
Stephanos A
2026-07-22 19:24:55 +03:00
parent af28abb0f0
commit e9a43fe454

View File

@@ -201,8 +201,6 @@ function JourneyCard({ schedule, label }: { schedule: Schedule; label: string })
<p className="text-xs text-gray-400">{fmt(schedule.arrivalAt, { weekday: "short", month: "short", day: "numeric" })}</p>
</div>
</div>
<p className="mt-2 text-xs text-gray-400">{schedule.train.name}</p>
</div>
</div>
);
@@ -770,36 +768,6 @@ export default function PackageDetailPage() {
{/* ── Main content ── */}
<div className="lg:col-span-2 space-y-5">
{/* Quick info strip */}
<div className="grid grid-cols-3 gap-3">
<div className="bg-white dark:bg-gray-900 rounded-xl p-4 border border-gray-100 dark:border-gray-800 text-center">
<Calendar className="w-5 h-5 text-primary mx-auto mb-1" />
<p className="text-[10px] text-gray-400 uppercase tracking-wide">Departure</p>
<p className="text-xs font-bold text-gray-800 dark:text-white mt-0.5">
{fmt(pkg.departureTime, { month: "short", day: "numeric" })}
</p>
</div>
<div className="bg-white dark:bg-gray-900 rounded-xl p-4 border border-gray-100 dark:border-gray-800 text-center">
<Users className="w-5 h-5 text-primary mx-auto mb-1" />
<p className="text-[10px] text-gray-400 uppercase tracking-wide">Available</p>
<p className={`text-xs font-bold mt-0.5 ${availableSeats <= 20 ? "text-orange-500" : "text-gray-800 dark:text-white"}`}>
{pkg.priceTiers.filter((t) => t.availableSeats > 0).length} classes
</p>
</div>
<div className="bg-white dark:bg-gray-900 rounded-xl p-4 border border-gray-100 dark:border-gray-800 text-center">
<Tag className="w-5 h-5 text-primary mx-auto mb-1" />
<p className="text-[10px] text-gray-400 uppercase tracking-wide">From</p>
<p className="text-xs font-bold text-gray-800 dark:text-white mt-0.5">
{pkg.priceTiers.length
? formatPrice(
Math.min(...pkg.priceTiers.map((t) => t.priceMinor)) * (isRoundTripPkg ? 2 : 1),
pkg.priceTiers[0].currency,
)
: "—"}
</p>
</div>
</div>
{/* Description */}
{pkg.description && (
<div className="bg-white dark:bg-gray-900 rounded-2xl p-6 border border-gray-100 dark:border-gray-800">