Pakketkaarten: lege beschrijving en prijsnotitie renderen niets (optioneel in CMS)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 14:15:38 +01:00
co-authored by Claude Sonnet 5.5
parent 518fbd4e1d
commit e8124bc3bd
2 changed files with 19 additions and 9 deletions
@@ -19,18 +19,24 @@ export function PackageCard({ pkg }: { pkg: PackageCardData }) {
Meest gekozen
</span>
)}
<h3 className="mb-2.5 hyphens-auto text-[clamp(24px,6.6vw,30px)] font-extrabold leading-[1.05] tracking-[-0.02em] [font-stretch:112%] [overflow-wrap:anywhere]">
<h3
className={`${pkg.description ? 'mb-2.5' : 'mb-9'} hyphens-auto text-[clamp(24px,6.6vw,30px)] font-extrabold leading-[1.05] tracking-[-0.02em] [font-stretch:112%] [overflow-wrap:anywhere]`}
>
{pkg.title}
</h3>
<p className={`mb-9 text-base ${featured ? 'text-on-brand' : 'text-muted'}`}>
{pkg.description}
</p>
{pkg.description && (
<p className={`mb-9 text-base ${featured ? 'text-on-brand' : 'text-muted'}`}>
{pkg.description}
</p>
)}
<div className="text-[clamp(40px,4vw,54px)] font-extrabold leading-none tracking-[-0.03em] [font-stretch:125%]">
{pkg.price}
</div>
<div className={`mt-2 text-sm ${featured ? 'text-on-brand' : 'text-muted'}`}>
{pkg.priceNote}
</div>
{pkg.priceNote && (
<div className={`mt-2 text-sm ${featured ? 'text-on-brand' : 'text-muted'}`}>
{pkg.priceNote}
</div>
)}
<ul className="my-8 flex-1 list-none p-0 text-[15px]">
{pkg.features.map((feature) => (
<li