Skip to content

Commit

Permalink
show lifetime deal on pricing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Son NK committed Nov 29, 2024
1 parent 90583ac commit 5a7e02e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
29 changes: 12 additions & 17 deletions templates/dashboard/pricing.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,31 +57,21 @@
{% endblock %}
{% block default_content %}

{% if NOW.timestamp < 1701475201 %}
{% if NOW.timestamp < 1733184000 %}

<div class="alert alert-info">
Black Friday Deal: 33% off on the yearly plan for the <b>first</b> year ($20 instead of $30).
<br>
Please use this coupon code
<em data-toggle="tooltip"
title="Click to copy"
class="clipboard"
data-clipboard-text="BF2023">BF2023</em> during the checkout.
<div class="alert alert-primary">
Lifetime deal for SimpleLogin Premium and Proton Pass Plus for $199
<a class="btn btn-primary"
href="https://proton.me/pass/black-friday"
target="_blank">Buy now</a>
<br>
<img src="/static/images/coupon.png" class="m-2" style="max-width: 300px">
<br>
Available until December 1, 2023.
Available until December 3, 2024.
</div>
{% endif %}
<div class="pb-8">
<div class="text-center mx-md-auto mb-8 mt-6">
<h1>Upgrade to unlock premium features</h1>
</div>
<div class="alert alert-info">
<span class="badge badge-success">new</span> SimpleLogin Premium now includes Proton Pass premium features.
<a href="https://simplelogin.io/blog/sl-premium-including-pass-plus/"
target="_blank">Learn more ↗</a>
</div>
{% if manual_sub %}

<div class="alert alert-info mt-0 mb-6">
Expand Down Expand Up @@ -131,6 +121,11 @@ <h1>Upgrade to unlock premium features</h1>
aria-selected="true">Yearly<span class="badge badge-success position-absolute tab-yearly__badge"
style="font-size: 12px">Save $18</span></a>
</div>
<div class="alert alert-info">
<span class="badge badge-success">new</span> SimpleLogin Premium now includes Proton Pass premium features.
<a href="https://simplelogin.io/blog/sl-premium-including-pass-plus/"
target="_blank">Learn more ↗</a>
</div>
<div class="tab-content mb-8">
<!-- monthly tab content -->
<div class="tab-pane"
Expand Down
11 changes: 6 additions & 5 deletions templates/dashboard/setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@
</div>
{% endif %}
{% if partner_sub %}
{% if partner_sub.lifetime %}
<div>Premium lifetime subscription managed by {{ partner_name }}.</div>
{% else %}
<div>Premium subscription managed by {{ partner_name }}.</div>
{% endif %}
{% if partner_sub.lifetime %}

<div>Premium lifetime subscription managed by {{ partner_name }}.</div>
{% else %}
<div>Premium subscription managed by {{ partner_name }}.</div>
{% endif %}
{% endif %}
{% elif current_user.in_trial() %}
Your Premium trial expires {{ current_user.trial_end | dt }}.
Expand Down

0 comments on commit 5a7e02e

Please sign in to comment.