2020-04-21 14:11:38 +03:00
|
|
|
<script>
|
|
|
|
window.plans = <%= raw Jason.encode!(Plausible.Billing.Plans.plans()) %>
|
|
|
|
</script>
|
2019-09-02 14:29:19 +03:00
|
|
|
|
2020-04-21 14:11:38 +03:00
|
|
|
<div class="mx-auto mt-6 text-center">
|
2020-12-16 12:57:28 +03:00
|
|
|
<h1 class="text-3xl font-black dark:text-gray-100">Upgrade your free trial</h1>
|
2020-04-21 14:11:38 +03:00
|
|
|
</div>
|
|
|
|
|
2020-07-03 10:20:38 +03:00
|
|
|
<div>
|
2021-01-19 11:36:02 +03:00
|
|
|
<div class="flex flex-col w-full max-w-4xl px-4 mx-auto mt-4 md:flex-row">
|
|
|
|
<div x-data="{volume: '10k', billingCycle: 'monthly'}" class="flex-1 px-8 py-4 mt-8 mb-4 bg-white rounded shadow-md dark:bg-gray-800">
|
2020-12-16 12:57:28 +03:00
|
|
|
<div class="w-full py-4 dark:text-gray-100">
|
2021-01-15 17:28:57 +03:00
|
|
|
<span>You've used <b><%= PlausibleWeb.AuthView.delimit_integer(@usage) %></b> billable pageviews in the last 30 days</span>
|
2020-07-03 10:20:38 +03:00
|
|
|
</div>
|
2020-04-21 14:11:38 +03:00
|
|
|
|
2020-07-03 10:20:38 +03:00
|
|
|
<div class="pt-2"></div>
|
2019-09-02 14:29:19 +03:00
|
|
|
|
2021-01-19 11:36:02 +03:00
|
|
|
<span class="relative z-0 inline-flex w-full shadow-sm">
|
|
|
|
<button type="button" @click="billingCycle = 'monthly'" :class="{'bg-indigo-600 text-white border-indigo-600': billingCycle === 'monthly', 'bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:text-gray-500 dark:hover:text-gray-200 border-gray-300 dark:border-gray-500': billingCycle === 'yearly'}" class="relative w-full px-4 py-2 text-sm font-medium text-center border rounded-l-md leading-5 focus:outline-none focus:border-blue-300 focus:ring transition ease-in-out duration-150">
|
2020-07-03 10:20:38 +03:00
|
|
|
Monthly billing
|
|
|
|
</button>
|
2021-01-19 11:36:02 +03:00
|
|
|
<button type="button" @click="billingCycle = 'yearly'" :class="{'bg-indigo-600 text-white border-indigo-600': billingCycle === 'yearly', 'bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:text-gray-500 dark:hover:text-gray-200 border-gray-300 dark:border-gray-500': billingCycle === 'monthly'}" class="relative w-full px-4 py-2 -ml-px text-sm font-medium text-center border rounded-r-md leading-5 focus:outline-none focus:border-blue-300 focus:ring transition ease-in-out duration-150">
|
2020-07-03 10:20:38 +03:00
|
|
|
Yearly billing
|
2020-12-16 12:57:28 +03:00
|
|
|
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium leading-4 bg-yellow-200 text-yellow-800 dark:text-yellow-900">
|
2020-07-03 10:20:38 +03:00
|
|
|
-33%
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</span>
|
2020-04-21 14:11:38 +03:00
|
|
|
|
2020-07-03 10:20:38 +03:00
|
|
|
<div class="pt-6"></div>
|
2020-04-21 14:11:38 +03:00
|
|
|
|
2020-07-03 10:20:38 +03:00
|
|
|
<div class="flex flex-col">
|
2021-01-19 11:36:02 +03:00
|
|
|
<div class="py-2 -my-2 overflow-x-auto sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
|
|
|
|
<div class="inline-block min-w-full overflow-hidden align-middle border-b border-gray-200 shadow sm:rounded-lg dark:border-t dark:border-l dark:border-r dark:shadow-none">
|
2020-07-03 10:20:38 +03:00
|
|
|
<table class="min-w-full">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-01-19 11:36:02 +03:00
|
|
|
<th class="px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase bg-gray-100 border-b border-gray-200 dark:bg-gray-900 leading-4 dark:text-gray-200">
|
2020-07-03 10:20:38 +03:00
|
|
|
Monthly pageviews
|
|
|
|
</th>
|
2021-01-19 11:36:02 +03:00
|
|
|
<th class="px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase bg-gray-100 border-b border-gray-200 dark:bg-gray-900 leading-4 dark:text-gray-200">
|
2020-07-03 10:20:38 +03:00
|
|
|
Price per month
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-12-16 12:57:28 +03:00
|
|
|
<tbody class="bg-white dark:bg-gray-800">
|
2021-01-19 11:36:02 +03:00
|
|
|
<%= render("_plan_option.html", volume: "10k", monthly_price: "$6", yearly_price: "$4") %>
|
|
|
|
<%= render("_plan_option.html", volume: "100k", monthly_price: "$12", yearly_price: "$8") %>
|
|
|
|
<%= render("_plan_option.html", volume: "200k", monthly_price: "$18", yearly_price: "$12") %>
|
|
|
|
<%= render("_plan_option.html", volume: "500k", monthly_price: "$27", yearly_price: "$18") %>
|
|
|
|
<%= render("_plan_option.html", volume: "1m", monthly_price: "$48", yearly_price: "$32") %>
|
|
|
|
<%= render("_plan_option.html", volume: "2m", monthly_price: "$69", yearly_price: "$46") %>
|
|
|
|
<%= render("_plan_option.html", volume: "5m", monthly_price: "$99", yearly_price: "$69") %>
|
|
|
|
<%= render("_plan_option.html", volume: "10m", monthly_price: "$150", yearly_price: "$100") %>
|
|
|
|
<%= render("_plan_option.html", volume: "20m", monthly_price: "$225", yearly_price: "$150") %>
|
2020-07-03 10:20:38 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-04-21 14:11:38 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-01-19 11:36:02 +03:00
|
|
|
<div class="mt-6 text-right">
|
|
|
|
<div class="mb-4 text-sm font-medium dark:text-gray-100">Due today: <b x-text="window.plans[billingCycle][volume].due_now">$6</b></div>
|
2020-07-03 10:20:38 +03:00
|
|
|
<span class="inline-flex rounded-md shadow-sm">
|
2021-01-19 11:36:02 +03:00
|
|
|
<button type="button" data-theme="none" :data-product="window.plans[billingCycle][volume].product_id" data-email="<%= @conn.assigns[:current_user].email %>" data-disable-logout="true" data-passthrough="<%= @conn.assigns[:current_user].id %>" data-success="/billing/upgrade-success" class="inline-flex items-center px-4 py-2 text-sm font-medium text-white bg-indigo-600 border border-transparent paddle_button leading-5 rounded-md hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus:ring active:bg-indigo-700 transition ease-in-out duration-150">
|
|
|
|
<svg fill="currentColor" viewBox="0 0 20 20" class="inline w-4 h-4 mr-2"><path fill-rule="evenodd" d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z" clip-rule="evenodd"></path></svg>
|
2020-07-03 10:20:38 +03:00
|
|
|
Pay securely via Paddle
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-04-21 14:11:38 +03:00
|
|
|
</div>
|
2019-09-02 14:29:19 +03:00
|
|
|
|
2021-01-19 11:36:02 +03:00
|
|
|
<div class="flex-1 pl-8 pt-14">
|
|
|
|
<h3 class="text-lg font-medium text-gray-900 leading-6 dark:text-gray-100">
|
2020-07-03 10:20:38 +03:00
|
|
|
What happens if I go over my page views limit?
|
|
|
|
</h3>
|
2021-01-19 11:36:02 +03:00
|
|
|
<div class="mt-2 text-base text-gray-500 leading-6 dark:text-gray-200">
|
2020-07-03 10:20:38 +03:00
|
|
|
You will never be charged extra for an occasional traffic spike. There are no surprise fees and your card will never be charged unexpectedly.<br /><br />
|
|
|
|
If your page views exceed your plan for two consecutive months, we will contact you to upgrade to a higher plan for the following month. You will have two weeks to make a decision. You can decide to continue with a higher plan or to cancel your account at that point.
|
|
|
|
</div>
|
2019-09-02 14:29:19 +03:00
|
|
|
|
2020-07-03 10:20:38 +03:00
|
|
|
</div>
|
2020-04-21 14:11:38 +03:00
|
|
|
</div>
|
2019-09-02 14:29:19 +03:00
|
|
|
</div>
|
2020-04-21 14:11:38 +03:00
|
|
|
|
2021-01-19 11:36:02 +03:00
|
|
|
<div class="mt-8 text-center dark:text-gray-100">
|
2020-05-18 16:20:00 +03:00
|
|
|
Questions? Contact <%= link("support@plausible.io", to: "mailto: support@plausible.io", class: "text-indigo-500") %>
|
2020-04-21 14:11:38 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="https://cdn.paddle.com/paddle/paddle.js"></script>
|
|
|
|
<script>Paddle.Setup({vendor: 49430})</script>
|