Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Revert "Remove trial notice on 1st site creation (#5269)" (#5270)

Adrian Gruntkowski6ee4f57cf7eb
diff --git a/lib/plausible_web/templates/site/new.html.heex b/lib/plausible_web/templates/site/new.html.heex
index 0ad01c0340..6b373c3779 100644
--- a/lib/plausible_web/templates/site/new.html.heex
+++ b/lib/plausible_web/templates/site/new.html.heex
@@ -14,6 +14,35 @@
resource="sites"
/>
+ <%= if is_nil(@current_team) or is_nil(@current_team.trial_expiry_date) do %>
+ <div class="rounded-md bg-blue-50 dark:bg-transparent dark:border border-blue-200 p-4">
+ <div class="flex">
+ <div class="flex-shrink-0">
+ <svg
+ class="h-5 w-5 text-blue-500 dark:text-blue-300"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20"
+ fill="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ fill-rule="evenodd"
+ d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"
+ clip-rule="evenodd"
+ />
+ </svg>
+ </div>
+ <div class="ml-3">
+ <div class="text-sm text-blue-700 dark:text-blue-300">
+ <p>
+ When you create your first site, your account will enter a 30 day free trial.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <% end %>
+
<div class="my-6">
<.input
help_text="Just the naked domain or subdomain without 'www', 'https' etc."