From ae35e34f86a5cbf66fd406074c15a223331c7f47 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 12 Sep 2023 08:05:23 +0100 Subject: [PATCH] chore(pricing): add Drupal module template --- src/pages/pricing.mdx | 15 +++++++++------ src/products.json | 8 ++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/pages/pricing.mdx b/src/pages/pricing.mdx index 1b7b1721..1795fad2 100644 --- a/src/pages/pricing.mdx +++ b/src/pages/pricing.mdx @@ -17,12 +17,15 @@ export const priceFormatter = new Intl.NumberFormat('en-GB', { {products && products.map(product => (

- {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!' + }

{product.description}
diff --git a/src/products.json b/src/products.json index 57fc2749..0b616632 100644 --- a/src/products.json +++ b/src/products.json @@ -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" + } } ]