-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: add pricing and rate limits for the api, terms and faq.
- Loading branch information
Showing
7 changed files
with
183 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<!-- Pricing plans: A simple script to toggle the pricing plans between annualy and monthly --> | ||
<script> | ||
document.addEventListener('astro:page-load', () => { | ||
const pricingTypeCheckbox = document.getElementById('pricingType') | ||
const montlyLabel = document.getElementById('monthlyLabel') | ||
const annualyLabel = document.getElementById('annualLabel') | ||
const plans = ['plan-0', 'plan-1', 'plan-2'] | ||
const pricingTypeCheckbox = document.getElementById('pricingType'); | ||
const monthlyLabel = document.getElementById('monthlyLabel'); | ||
const annualLabel = document.getElementById('annualLabel'); | ||
// Actualiza el array de planes para incluir todos los planes | ||
const plans = ['plan-0', 'plan-1', 'plan-2', 'plan-3']; // Asegúrate de que estos IDs coincidan con los elementos en tu HTML | ||
|
||
if (pricingTypeCheckbox) { | ||
pricingTypeCheckbox.addEventListener('change', function () { | ||
plans.forEach((plan) => { | ||
const planElement = document.getElementById(plan) | ||
const planElement = document.getElementById(plan); | ||
|
||
if (planElement && montlyLabel && annualyLabel) { | ||
planElement.classList.toggle('pricing--annualy') | ||
planElement.classList.toggle('pricing--monthly') | ||
montlyLabel.classList.toggle('text-primary-500') | ||
annualyLabel.classList.toggle('text-primary-500') | ||
if (planElement && monthlyLabel && annualLabel) { | ||
planElement.classList.toggle('pricing--annualy'); | ||
planElement.classList.toggle('pricing--monthly'); | ||
monthlyLabel.classList.toggle('text-primary-500'); | ||
annualLabel.classList.toggle('text-primary-500'); | ||
} | ||
}) | ||
}) | ||
}); | ||
}); | ||
} | ||
}) | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,105 @@ | ||
[ | ||
{ | ||
"header": { | ||
"title": "", | ||
"subtitle": "", | ||
"currency": "", | ||
"price": "", | ||
"priceLabel": "", | ||
"priceMontly": "", | ||
"priceLabelMontly": "", | ||
"buttonName": "", | ||
"buttonLink": "" | ||
}, | ||
"body": { | ||
"listItems": [ | ||
{ "listItem": "" }, | ||
{ "listItem": "" }, | ||
{ "listItem": "" } | ||
] | ||
}, | ||
"footer": { | ||
"buttonName": "", | ||
"buttonLink": "" | ||
}, | ||
"type": "" | ||
}, | ||
{ | ||
"header": { | ||
"title": "", | ||
"subtitle": "", | ||
"currency": "", | ||
"price": "", | ||
"priceLabel": "", | ||
"priceMontly": "", | ||
"priceLabelMontly": "", | ||
"buttonName": "", | ||
"buttonLink": "" | ||
}, | ||
"body": { | ||
"listItems": [ | ||
{ "listItem": "" }, | ||
{ "listItem": "" }, | ||
{ "listItem": "" }, | ||
{ "listItem": "" } | ||
] | ||
}, | ||
"footer": { | ||
"buttonName": "", | ||
"buttonLink": "" | ||
}, | ||
"type": "" | ||
}, | ||
{ | ||
"header": { | ||
"title": "", | ||
"subtitle": "", | ||
"currency": "", | ||
"price": "", | ||
"priceLabel": "", | ||
"priceMontly": "", | ||
"priceLabelMontly": "", | ||
"buttonName": "", | ||
"buttonLink": "" | ||
}, | ||
"body": { | ||
"listItems": [ | ||
{ "listItem": "" }, | ||
{ "listItem": "" }, | ||
{ "listItem": "" } | ||
] | ||
}, | ||
"footer": { | ||
"buttonName": "", | ||
"buttonLink": "" | ||
}, | ||
"type": "" | ||
} | ||
"header": { | ||
"title": "Basic Plan", | ||
"subtitle": "Perfect for casual users", | ||
"currency": "$", | ||
"price": "0", | ||
"priceLabel": "year, billed annually", | ||
"priceMontly": "0", | ||
"priceLabelMontly": "month", | ||
"buttonName": "Sign Up", | ||
"buttonLink": "/sign-up/basic" | ||
}, | ||
"body": { | ||
"listItems": [ | ||
{ "listItem": "1000 requests per month" }, | ||
{ "listItem": "Basic support" }, | ||
{ "listItem": "No advanced features" } | ||
] | ||
}, | ||
"footer": { | ||
"buttonName": "Choose Basic", | ||
"buttonLink": "/choose/basic" | ||
}, | ||
"type": "basic" | ||
}, | ||
{ | ||
"header": { | ||
"title": "Pro Plan", | ||
"subtitle": "For professional users", | ||
"currency": "$", | ||
"price": "40.80", | ||
"priceLabel": "year, billed annually", | ||
"priceMontly": "4", | ||
"priceLabelMontly": "month", | ||
"buttonName": "Get Started", | ||
"buttonLink": "/sign-up/pro" | ||
}, | ||
"body": { | ||
"listItems": [ | ||
{ "listItem": "15000 requests per month" }, | ||
{ "listItem": "Priority support" }, | ||
{ "listItem": "Access to advanced features" }, | ||
{ "listItem": "Analytics dashboard" } | ||
] | ||
}, | ||
"footer": { | ||
"buttonName": "Choose Pro", | ||
"buttonLink": "/choose/pro" | ||
}, | ||
"type": "pro" | ||
}, | ||
{ | ||
"header": { | ||
"title": "Ultra Plan", | ||
"subtitle": "For high-demand users", | ||
"currency": "$", | ||
"price": "95.52", | ||
"priceLabel": "year, billed annually", | ||
"priceMontly": "9.95", | ||
"priceLabelMontly": "month", | ||
"buttonName": "Subscribe Now", | ||
"buttonLink": "/sign-up/ultra" | ||
}, | ||
"body": { | ||
"listItems": [ | ||
{ "listItem": "250000 requests per month" }, | ||
{ "listItem": "24/7 support" }, | ||
{ "listItem": "Premium features" }, | ||
{ "listItem": "Advanced analytics" } | ||
] | ||
}, | ||
"footer": { | ||
"buttonName": "Choose Ultra", | ||
"buttonLink": "/choose/ultra" | ||
}, | ||
"type": "ultra" | ||
}, | ||
{ | ||
"header": { | ||
"title": "Mega Plan", | ||
"subtitle": "For the most demanding users", | ||
"currency": "$", | ||
"price": "315", | ||
"priceLabel": "year, billed annually", | ||
"priceMontly": "35", | ||
"priceLabelMontly": "month", | ||
"buttonName": "Sign Up Now", | ||
"buttonLink": "/sign-up/mega" | ||
}, | ||
"body": { | ||
"listItems": [ | ||
{ "listItem": "1,000,000 requests per month" }, | ||
{ "listItem": "Dedicated support" }, | ||
{ "listItem": "All features included" }, | ||
{ "listItem": "Custom analytics" } | ||
] | ||
}, | ||
"footer": { | ||
"buttonName": "Choose Mega", | ||
"buttonLink": "/choose/mega" | ||
}, | ||
"type": "mega" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters