From f7132445a12377956ebb1e2154c6a3c538fc16ed Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Tue, 31 Oct 2023 01:14:20 +0200 Subject: [PATCH] add new signup page --- app/views/devise/registrations/show.html.erb | 85 ++++++++++++++----- app/views/devise/sessions/new.html.erb | 2 +- .../devise/shared/_select_server.html.erb | 18 ++-- app/views/icons/_circle_check_filled.html.erb | 3 + 4 files changed, 78 insertions(+), 30 deletions(-) create mode 100644 app/views/icons/_circle_check_filled.html.erb diff --git a/app/views/devise/registrations/show.html.erb b/app/views/devise/registrations/show.html.erb index a152729c..d3418a24 100644 --- a/app/views/devise/registrations/show.html.erb +++ b/app/views/devise/registrations/show.html.erb @@ -1,22 +1,67 @@ -
- <%= render 'devise/shared/select_server' if Docuseal.multitenant? %> -

Create Free Account

- <%= form_for(User.new, html: { class: 'space-y-6' }, url: new_registration_path, data: { turbo: params[:redir].blank? }, method: :get) do |f| %> - <% if params[:redir].present? %> - <%= hidden_field_tag :redir, params[:redir] %> - <% end %> -
-
- <%= f.label :email, class: 'label' %> - <%= f.email_field :email, autofocus: true, autocomplete: 'email', class: 'base-input' %> +<% redir_new_params = params[:redir].to_s.starts_with?('/new') ? Rack::Utils.parse_query(params[:redir].split('?', 2).last.to_s) : {} %> +
+ -
- <%= f.button button_title(title: 'Sign up', disabled_with: 'Sign up'), name: 'sign_up', value: true, class: 'base-button' %> -
- <% end %> - <% if devise_mapping.omniauthable? %> - <%= button_to button_title(title: 'Sign up with Google', icon: svg_icon('brand_google', class: 'w-6 h-6')), omniauth_authorize_path(resource_name, :google_oauth2), class: 'white-button w-full mt-4', data: { turbo: false }, method: :post %> - <% end %> - <%= render 'devise/shared/links' %> + <% else %> +

+ #1 Open Source
+ Document Signing +

+

+ DocuSeal allows you to create, fill and sign digital documents with ease. +

+ <% end %> +
    +
  • + <%= svg_icon('circle_check_filled', class: 'w-6 h-6 text-neutral shrink-0') %> + Start signing documents immediately +
  • +
  • + <%= svg_icon('circle_check_filled', class: 'w-6 h-6 text-neutral shrink-0') %> + Sign unlimited documents for free +
  • +
  • + <%= svg_icon('circle_check_filled', class: 'w-6 h-6 text-neutral shrink-0') %> + Try API, Webhooks and Embedding +
  • +
  • + <%= svg_icon('circle_check_filled', class: 'w-6 h-6 text-neutral shrink-0') %> + ESIGN, UETA, eIDAS compliant +
  • +
  • + <%= svg_icon('circle_check_filled', class: 'w-6 h-6 text-neutral shrink-0') %> + No CC required +
  • +
+
+
+

Create Free Account

+ <%= render 'devise/shared/select_server' if Docuseal.multitenant? %> + <%= form_for(User.new, html: { class: 'space-y-6' }, url: new_registration_path, data: { turbo: params[:redir].blank? }, method: :get) do |f| %> + <% if params[:redir].present? %> + <%= hidden_field_tag :redir, params[:redir] %> + <% end %> +
+
+ <%= f.label :email, class: 'label' %> + <%= f.email_field :email, autofocus: true, autocomplete: 'email', class: 'base-input' %> +
+
+
+ <%= f.button button_title(title: 'Sign up', disabled_with: 'Sign up'), name: 'sign_up', value: true, class: 'base-button' %> +
+ <% end %> + <% if devise_mapping.omniauthable? %> + <%= button_to button_title(title: 'Sign up with Google', icon: svg_icon('brand_google', class: 'w-6 h-6')), omniauth_authorize_path(resource_name, :google_oauth2), class: 'white-button w-full mt-4', data: { turbo: false }, method: :post %> + <% end %> + <%= render 'devise/shared/links' %> +
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 09c51d0c..b19b884c 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,6 +1,6 @@
- <%= render 'devise/shared/select_server' if Docuseal.multitenant? %>

Sign In

+ <%= render 'devise/shared/select_server' if Docuseal.multitenant? %> <%= form_for(resource, as: resource_name, html: { class: 'space-y-6' }, data: { turbo: params[:redir].blank? }, url: session_path(resource_name)) do |f| %> <% if params[:redir].present? %> <%= hidden_field_tag :redir, params[:redir] %> diff --git a/app/views/devise/shared/_select_server.html.erb b/app/views/devise/shared/_select_server.html.erb index 866f0b92..c433adbf 100644 --- a/app/views/devise/shared/_select_server.html.erb +++ b/app/views/devise/shared/_select_server.html.erb @@ -1,10 +1,10 @@ -
- + diff --git a/app/views/icons/_circle_check_filled.html.erb b/app/views/icons/_circle_check_filled.html.erb new file mode 100644 index 00000000..9fe0e7dd --- /dev/null +++ b/app/views/icons/_circle_check_filled.html.erb @@ -0,0 +1,3 @@ +