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:
@@ -19,18 +19,24 @@ export function PackageCard({ pkg }: { pkg: PackageCardData }) {
|
|||||||
Meest gekozen
|
Meest gekozen
|
||||||
</span>
|
</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}
|
{pkg.title}
|
||||||
</h3>
|
</h3>
|
||||||
|
{pkg.description && (
|
||||||
<p className={`mb-9 text-base ${featured ? 'text-on-brand' : 'text-muted'}`}>
|
<p className={`mb-9 text-base ${featured ? 'text-on-brand' : 'text-muted'}`}>
|
||||||
{pkg.description}
|
{pkg.description}
|
||||||
</p>
|
</p>
|
||||||
|
)}
|
||||||
<div className="text-[clamp(40px,4vw,54px)] font-extrabold leading-none tracking-[-0.03em] [font-stretch:125%]">
|
<div className="text-[clamp(40px,4vw,54px)] font-extrabold leading-none tracking-[-0.03em] [font-stretch:125%]">
|
||||||
{pkg.price}
|
{pkg.price}
|
||||||
</div>
|
</div>
|
||||||
|
{pkg.priceNote && (
|
||||||
<div className={`mt-2 text-sm ${featured ? 'text-on-brand' : 'text-muted'}`}>
|
<div className={`mt-2 text-sm ${featured ? 'text-on-brand' : 'text-muted'}`}>
|
||||||
{pkg.priceNote}
|
{pkg.priceNote}
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
<ul className="my-8 flex-1 list-none p-0 text-[15px]">
|
<ul className="my-8 flex-1 list-none p-0 text-[15px]">
|
||||||
{pkg.features.map((feature) => (
|
{pkg.features.map((feature) => (
|
||||||
<li
|
<li
|
||||||
|
|||||||
@@ -28,11 +28,15 @@ function PackageCard2006({ pkg }: { pkg: PackageCardData }) {
|
|||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-1 flex-col p-[22px]">
|
<div className="flex flex-1 flex-col p-[22px]">
|
||||||
|
{pkg.description && (
|
||||||
<p className="mb-[18px] mt-0 text-[color:var(--e-w2-body)]">{pkg.description}</p>
|
<p className="mb-[18px] mt-0 text-[color:var(--e-w2-body)]">{pkg.description}</p>
|
||||||
|
)}
|
||||||
<div className="e-w2-display text-[38px] font-bold leading-[1.1] text-[color:var(--e-w2-price)]">
|
<div className="e-w2-display text-[38px] font-bold leading-[1.1] text-[color:var(--e-w2-price)]">
|
||||||
{pkg.price}
|
{pkg.price}
|
||||||
</div>
|
</div>
|
||||||
|
{pkg.priceNote && (
|
||||||
<div className="text-xs text-[color:var(--e-w2-note)]">{pkg.priceNote}</div>
|
<div className="text-xs text-[color:var(--e-w2-note)]">{pkg.priceNote}</div>
|
||||||
|
)}
|
||||||
<ul className="mx-0 mb-[26px] mt-5 flex-1 list-none p-0">
|
<ul className="mx-0 mb-[26px] mt-5 flex-1 list-none p-0">
|
||||||
{pkg.features.map((feature) => (
|
{pkg.features.map((feature) => (
|
||||||
<li
|
<li
|
||||||
|
|||||||
Reference in New Issue
Block a user