From 6ba719d61e4520f122785c9edf875d9fa0e00e96 Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Thu, 18 Jan 2024 02:20:09 +0100 Subject: [PATCH] pricing with emojis --- website/assets/pricing.json | 24 ++++++++++++++++-------- website/assets/support_plans.js | 22 ---------------------- website/blocks/support_plans.html | 1 - 3 files changed, 16 insertions(+), 31 deletions(-) diff --git a/website/assets/pricing.json b/website/assets/pricing.json index 74eff73..7232332 100644 --- a/website/assets/pricing.json +++ b/website/assets/pricing.json @@ -1,34 +1,42 @@ [ { "price": 10, - "name": "Iron" + "name": "Steel", + "icon": "🗡️" }, { "price": 20, - "name": "Steel" + "name": "Copper", + "icon": "🥘" }, { "price": 40, - "name": "Copper" + "name": "Bronze", + "icon": "🛎️" }, { "price": 75, - "name": "Bronze" + "name": "Silver", + "icon": "🍴" }, { "price": 150, - "name": "Silver" + "name": "Gold", + "icon": "🏆" }, { "price": 250, - "name": "Gold" + "name": "Platinum", + "icon": "💿" }, { "price": 500, - "name": "Platinum" + "name": "Sapphire", + "icon": "💍" }, { "price": 1000, - "name": "Diamond" + "name": "Diamond", + "icon": "💎" } ] diff --git a/website/assets/support_plans.js b/website/assets/support_plans.js index 682b7f4..e69de29 100644 --- a/website/assets/support_plans.js +++ b/website/assets/support_plans.js @@ -1,22 +0,0 @@ -const slider = document.getElementById('support-plans-slider') - -var arbitraryValuesForSlider = ['128MB', '256MB', '1GB', '8GB', '16GB', '32GB'] - -var format = { - to: function (value) { - return arbitraryValuesForSlider[Math.round(value)] - }, - from: function (value) { - return arbitraryValuesForSlider.indexOf(value) - }, -} - -noUiSlider.create(slider, { - // start values are parsed by 'format' - start: '1GB', - range: { min: 0, max: arbitraryValuesForSlider.length - 1 }, - step: 1, - tooltips: true, - format: format, - pips: { mode: 'steps', format: format, density: 50 }, -}) diff --git a/website/blocks/support_plans.html b/website/blocks/support_plans.html index 92bf340..e69de29 100644 --- a/website/blocks/support_plans.html +++ b/website/blocks/support_plans.html @@ -1 +0,0 @@ -