From 2ff0a90123fd85012c03ff28a371a5d4993552cf Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 19 Mar 2020 09:51:13 +0200 Subject: [PATCH] Push conversions on the register screen --- .../templates/auth/register_form.html.eex | 64 ++++++++++++++----- 1 file changed, 47 insertions(+), 17 deletions(-) diff --git a/lib/plausible_web/templates/auth/register_form.html.eex b/lib/plausible_web/templates/auth/register_form.html.eex index 664b8f0bc..003335230 100644 --- a/lib/plausible_web/templates/auth/register_form.html.eex +++ b/lib/plausible_web/templates/auth/register_form.html.eex @@ -1,18 +1,48 @@ -<%= form_for @changeset, "/register", [class: "max-w-md w-full mx-auto bg-white shadow-md rounded px-8 py-6 mb-4 mt-8", id: "register-form"], fn f -> %> -

Enter your details to get started

-
- <%= label f, :name, "Full name", class: "block text-gray-700 text-sm font-bold mb-2" %> - <%= text_input f, :name, class: "transition bg-gray-200 appearance-none border border-transparent rounded w-full p-2 text-gray-700 leading-normal appearance-none focus:outline-none focus:bg-white focus:border-gray-300", placeholder: "Jane Doe" %> - <%= error_tag f, :name %> +
+

Register your 30-day unlimited-use free trial

+
Set up privacy-friendly analytics with just a few clicks
+
+ +
+ <%= form_for @changeset, "/register", [class: "w-full max-w-md mx-auto bg-white shadow-md rounded px-8 py-6 mb-4 mt-8", id: "register-form"], fn f -> %> +

Enter your details

+
+ <%= label f, :name, "Full name", class: "block text-gray-700 text-sm font-bold mb-2" %> + <%= text_input f, :name, class: "transition bg-gray-200 appearance-none border border-transparent rounded w-full p-2 text-gray-700 leading-normal appearance-none focus:outline-none focus:bg-white focus:border-gray-300", placeholder: "Jane Doe" %> + <%= error_tag f, :name %> +
+
+ <%= label f, :email, class: "block text-gray-700 text-sm font-bold mb-2" %> +

No spam, guaranteed.

+ <%= email_input f, :email, class: "transition bg-gray-200 appearance-none border border-transparent rounded w-full p-2 text-gray-700 leading-normal appearance-none focus:outline-none focus:bg-white focus:border-gray-300", placeholder: "example@email.com" %> + <%= error_tag f, :email %> +
+ + <%= submit "Start my free trial →", class: "button mt-4 w-full" %> + +

+ Already have an account? <%= link("Log in", to: "/login", class: "underline text-gray-800") %> instead. +

+ <% end %> + -
- <%= label f, :email, class: "block text-gray-700 text-sm font-bold mb-2" %> -

No spam, guaranteed.

- <%= email_input f, :email, class: "transition bg-gray-200 appearance-none border border-transparent rounded w-full p-2 text-gray-700 leading-normal appearance-none focus:outline-none focus:bg-white focus:border-gray-300", placeholder: "example@email.com" %> - <%= error_tag f, :email %> -
- <%= submit "Send activation link →", class: "button mt-4 w-full" %> -

- Already have an account? <%= link("Log in", to: "/login", class: "underline text-gray-800") %> instead. -

-<% end %> + +