feat(pricing): mark some products as limited

...availability
This commit is contained in:
Oliver Davies 2023-09-14 14:09:04 +01:00
parent b5605ebc7a
commit e5473613d1
2 changed files with 8 additions and 1 deletions

View file

@ -28,7 +28,12 @@ export const priceFormatter = new Intl.NumberFormat('en-GB', {
} }
</h2> </h2>
<div>{product.description}</div> <div>
<p>
{product.description}
{product.isLimited && (<> <strong>Limited places available!</strong></>)}
</p>
</div>
<footer> <footer>
<a href={product.link.href}>{product.link.text} &rarr;</a> <a href={product.link.href}>{product.link.text} &rarr;</a>

View file

@ -21,6 +21,7 @@
"title": "Development team coaching", "title": "Development team coaching",
"description": "Do you want to upskill your in-house team or have someone provide oversight and guidance as they deliver a project? Get unlimited 1-on-1 private Slack access to me and regular check-in calls to ensure things are on track.", "description": "Do you want to upskill your in-house team or have someone provide oversight and guidance as they deliver a project? Get unlimited 1-on-1 private Slack access to me and regular check-in calls to ensure things are on track.",
"perMonth": true, "perMonth": true,
"isLimited": true,
"price": 5000, "price": 5000,
"link": { "link": {
"text": "Apply now", "text": "Apply now",
@ -40,6 +41,7 @@
"title": "1-on-1 development coaching", "title": "1-on-1 development coaching",
"description": "The same as development team coaching, but for individual Developers and soloists.", "description": "The same as development team coaching, but for individual Developers and soloists.",
"perMonth": true, "perMonth": true,
"isLimited": true,
"price": 1000, "price": 1000,
"link": { "link": {
"text": "Apply now", "text": "Apply now",