chore(pricing): add Drupal module template

This commit is contained in:
Oliver Davies 2023-09-12 08:05:23 +01:00
parent 5cad596c2c
commit ae35e34f86
2 changed files with 17 additions and 6 deletions

View file

@ -17,12 +17,15 @@ export const priceFormatter = new Intl.NumberFormat('en-GB', {
{products && products.map(product => (
<article class="space-y-4">
<h2>
{product.title}
{product.price && (
<> - {priceFormatter.format(product.price)}
{product.perMonth && (<> per month</>)}
</>
)}
{product.title} - <> </>
{product.price
? (
<>{priceFormatter.format(product.price)}
{product.perMonth && (<> per month</>)}
</>
)
: 'Free!'
}
</h2>
<div>{product.description}</div>

View file

@ -52,5 +52,13 @@
"text": "Register now",
"href": "https://forms.gle/9fGwMgaWcWjNDjdAA"
}
},
{
"title": "Drupal module template",
"description": "If you're creating a new Drupal module, try starting with my free module template for Drupal 9 and 10.",
"link": {
"text": "Download",
"href": "https://github.com/opdavies/drupal-module-template"
}
}
]