Adds the Prijzen section to the homepage
Shows the three live packages as cards with their price and what is included. Each card links to the contact section with ?pakket=<id>, so the contact form can preselect it. Invalid packages from the CMS are skipped and the pakket value is only accepted when it names a package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const euros = new Intl.NumberFormat('nl-NL', {
|
||||
style: 'currency',
|
||||
currency: 'EUR',
|
||||
maximumFractionDigits: 0,
|
||||
});
|
||||
|
||||
// A price in whole euros as shown on the cards: "€ 175", "€ 1.250". Any space
|
||||
// the browser puts in (some use a narrow one) becomes a non-breaking space,
|
||||
// so the price never wraps (BR-PRICE-01).
|
||||
export function formatPrice(price: number): string {
|
||||
return euros.format(price).replace(/\s/g, '\u00a0');
|
||||
}
|
||||
Reference in New Issue
Block a user