Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions lib/plausible_web/templates/stats/stats.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,26 @@
<%= if !@conn.assigns[:current_user] && @conn.assigns[:demo] do %>
<div class="py-12 lg:py-16 lg:flex lg:items-center lg:justify-between">
<h2 class="text-3xl font-extrabold tracking-tight text-gray-900 leading-9 sm:text-4xl sm:leading-10 dark:text-gray-100">
Want these stats for your website? <br />
<span class="text-indigo-600">Start your free trial today.</span>
You just saw how Plausible tracks plausible.io <br />
<span class="text-indigo-600">No cookies, no personal data, no Google</span>
</h2>
<div class="flex mt-8 lg:shrink-0 lg:mt-0">
<div class="inline-flex shadow-sm rounded-md">
<a
href="/register"
onclick="plausible('CTA Click', {props: {location: 'Live demo', button: 'Start free trial'}})"
class="inline-flex items-center justify-center px-5 py-3 text-base font-medium text-white bg-indigo-600 border border-transparent leading-6 rounded-md hover:bg-indigo-500 focus:outline-hidden focus:ring transition duration-150 ease-in-out"
>
Get started
Start free trial
</a>
</div>
<div class="inline-flex ml-3 shadow-xs rounded-md">
<a
href="/"
href="/#pricing"
onclick="plausible('CTA Click', {props: {location: 'Live demo', button: 'See pricing'}})"
class="inline-flex items-center justify-center px-5 py-3 text-base font-medium text-indigo-600 bg-white border border-transparent leading-6 rounded-md dark:text-gray-100 dark:bg-gray-800 hover:text-indigo-500 dark:hover:text-indigo-500 focus:outline-hidden focus:ring transition duration-150 ease-in-out"
>
Learn more
See pricing
</a>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion test/plausible_web/controllers/stats_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ defmodule PlausibleWeb.StatsControllerTest do

assert text_of_element(resp, "title") == "Plausible Analytics: Live Demo"
assert resp =~ "Login"
assert resp =~ "Want these stats for your website?"
assert resp =~ "You just saw how Plausible tracks plausible.io"
assert resp =~ "Start free trial"
assert resp =~ "See pricing"
assert resp =~ "Getting started"
end

Expand Down
Loading