Skip to content

Commit

Permalink
pricing with emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Jan 18, 2024
1 parent e32079a commit 6ba719d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
24 changes: 16 additions & 8 deletions website/assets/pricing.json
Original file line number Diff line number Diff line change
@@ -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": "💎"
}
]
22 changes: 0 additions & 22 deletions website/assets/support_plans.js
Original file line number Diff line number Diff line change
@@ -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 },
})
1 change: 0 additions & 1 deletion website/blocks/support_plans.html
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
<div id="support-plans-slider"></div>

0 comments on commit 6ba719d

Please sign in to comment.