feat(pricing): show remaining places
This commit is contained in:
parent
2e633d3a96
commit
8bc240aa6a
2 changed files with 6 additions and 1 deletions
|
|
@ -26,7 +26,11 @@ import products from "~/products.yaml";
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
{product.description}
|
{product.description}
|
||||||
{product.isLimited && (<> <strong>Limited places available!</strong></>)}
|
|
||||||
|
{product.remainingPlaces
|
||||||
|
? (<> <strong>{product.remainingPlaces} places remaining!</strong></>)
|
||||||
|
: product.isLimited && (<> <strong>Limited places available!</strong></>)
|
||||||
|
}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
perMonth: true
|
perMonth: true
|
||||||
isLimited: true
|
isLimited: true
|
||||||
price: 10000
|
price: 10000
|
||||||
|
remainingPlaces: 2
|
||||||
link:
|
link:
|
||||||
text: Apply now
|
text: Apply now
|
||||||
href: /team-coaching
|
href: /team-coaching
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue