simple-login/app/dashboard/templates/dashboard/pricing.html

129 lines
4.1 KiB
HTML
Raw Normal View History

2019-11-14 14:05:20 +00:00
{% extends 'default.html' %}
{% set active_page = "dashboard" %}
{% block title %}
Pricing
{% endblock %}
{% block head %}
<script src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script>
if (window.Paddle === undefined) {
console.log("cannot load Paddle from CDN");
document.write('<script src="/static/vendor/paddle.js"><\/script>')
}
</script>
2019-11-14 14:05:20 +00:00
{% endblock %}
{% block announcement %}
{# TODO: to remove#}
2020-11-26 09:39:44 +00:00
{# <div class="alert alert-danger text-center mb-0" role="alert">#}
{# Our payment provider Paddle is experiencing#}
{# <a href="https://paddle.status.io" target="_blank">server issue <i class="fe fe-external-link"></i></a>#}
{# that can make our checkout page unusable. <br>#}
{# Please retry later and sorry for this issue!#}
{# </div>#}
{% endblock %}
2019-11-14 14:05:20 +00:00
{% block default_content %}
<div class="row">
<div class="col-sm-6 col-lg-6">
<div class="card">
<div class="card-body text-center">
2019-12-30 10:08:11 +00:00
<div class="h3">Premium</div>
<ul class="list-unstyled leading-loose mb-3">
2020-05-27 20:52:45 +00:00
<li><i class="fe fe-check text-success mr-2" aria-hidden="true"></i>
Unlimited aliases</li>
2019-11-14 14:05:20 +00:00
<li><i class="fe fe-check text-success mr-2" aria-hidden="true"></i>
2020-04-12 18:15:02 +00:00
Unlimited custom domains
2019-11-21 20:25:27 +00:00
</li>
2020-01-03 10:51:44 +00:00
<li><i class="fe fe-check text-success mr-2" aria-hidden="true"></i>
2020-05-27 18:45:29 +00:00
Catch-all (or wildcard) aliases
2020-01-03 10:51:44 +00:00
</li>
2019-11-21 20:25:27 +00:00
<li><i class="fe fe-check text-success mr-2" aria-hidden="true"></i>
2020-04-12 18:15:02 +00:00
Up to 50 directories (or usernames)
</li>
<li><i class="fe fe-check text-success mr-2" aria-hidden="true"></i>
2020-04-12 18:15:02 +00:00
Unlimited mailboxes
2019-11-14 14:05:20 +00:00
</li>
2020-04-03 21:39:27 +00:00
<li><i class="fe fe-check text-success mr-2" aria-hidden="true"></i>
PGP Encryption
</li>
2019-11-14 14:05:20 +00:00
</ul>
2019-12-30 10:08:11 +00:00
2020-12-13 16:04:05 +00:00
<div class="small-text">More information on our <a href="https://simplelogin.io/pricing" target="_blank" rel="noopener">Pricing
2019-12-30 10:08:11 +00:00
Page <i class="fe fe-external-link"></i>
</a></div>
2019-11-14 14:05:20 +00:00
</div>
</div>
</div>
<div class="col-sm-6 col-lg-6">
2020-01-03 10:51:44 +00:00
<div class="display-6 my-3">
2019-12-07 09:41:51 +00:00
🔐 Secure payments by
<a href="https://paddle.com" target="_blank" rel="noopener">Paddle<i class="fe fe-external-link"></i></a></li>
2019-12-07 09:41:51 +00:00
</a>
2019-11-14 14:05:20 +00:00
</div>
{% set sub = current_user.get_subscription() %}
{% if sub and sub.cancelled %}
<div class="alert alert-primary" role="alert">
You have an active subscription until {{ sub.next_bill_date.strftime("%Y-%m-%d") }}. <br>
Please note that if you re-subscribe now, this will be a completely
new subscription and
your payment method will be charged <b>immediately</b>.
</div>
{% endif %}
2020-01-03 10:51:44 +00:00
<div class="mb-3">
2020-12-13 16:04:05 +00:00
Paddle supports bank cards
(Mastercard, Visa, American Express, etc) and PayPal.
2020-01-03 10:51:44 +00:00
</div>
2019-11-14 14:05:20 +00:00
2020-01-03 10:51:44 +00:00
<button class="btn btn-success" onclick="upgrade({{ PADDLE_MONTHLY_PRODUCT_ID }})">
2019-11-14 14:05:20 +00:00
Monthly <br>
2020-11-09 16:56:26 +00:00
$3/month
2019-11-14 14:05:20 +00:00
</button>
2020-01-03 10:51:44 +00:00
<button class="btn btn-primary" onclick="upgrade({{ PADDLE_YEARLY_PRODUCT_ID }})">
2019-11-14 14:05:20 +00:00
Yearly <br>
2020-11-09 16:56:26 +00:00
$30/year
2019-11-14 14:05:20 +00:00
</button>
2020-12-13 16:04:05 +00:00
2020-12-13 18:14:11 +00:00
<hr>
Payment via <a href="https://commerce.coinbase.com/?lang=en" target="_blank">Coinbase Commerce</a>.
Only the yearly plan is supported.
<div>
<a class="buy-with-crypto" data-custom="{{ current_user.id }}"
href="{{ coinbase_url }}">
Yearly - $30/year - Crypto
</a>
<script src="https://commerce.coinbase.com/v1/checkout.js?version=201807">
</script>
</div>
2020-12-13 16:04:05 +00:00
<hr>
For other payment options, please send us an email at <a href="mailto:hi@simplelogin.io">hi@simplelogin.io</a>
2019-11-14 14:05:20 +00:00
</div>
</div>
<script type="text/javascript">
Paddle.Setup({vendor: {{ PADDLE_VENDOR_ID }}});
function upgrade(productId) {
Paddle.Checkout.open({
product: productId,
2020-08-20 07:44:45 +00:00
success: "{{ success_url }}",
passthrough: "{\"user_id\": {{current_user.id}} }"
2019-11-14 14:05:20 +00:00
});
}
</script>
2020-05-27 18:45:29 +00:00
{% endblock %}