From 25312737d782c527a5bf65d9329079c258f66b8f Mon Sep 17 00:00:00 2001 From: SuBroXz11 Date: Tue, 19 May 2026 14:44:20 +0545 Subject: [PATCH] feat: update sign in page to arcab brand - bg, floating logo, hide navbar --- app/javascript/application.scss | 4 ++ app/views/devise/sessions/new.html.erb | 61 +++++++++++++++++--------- app/views/layouts/application.html.erb | 4 +- public/images/login-floating-logo.svg | 8 ++++ public/images/login-top-bg.svg | 20 +++++++++ 5 files changed, 74 insertions(+), 23 deletions(-) create mode 100644 public/images/login-floating-logo.svg create mode 100644 public/images/login-top-bg.svg diff --git a/app/javascript/application.scss b/app/javascript/application.scss index 3dd4651e..da9bbd91 100644 --- a/app/javascript/application.scss +++ b/app/javascript/application.scss @@ -163,3 +163,7 @@ button.btn-disabled .enabled { markdown-editor [contenteditable] p { margin-bottom: 18px; } + +body { + overflow-x: hidden; +} diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 350e5169..c93aa943 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,24 +1,43 @@ <%= content_for(:canonical_url, new_user_session_url) %> -
- <%= render 'devise/shared/select_server' if Docuseal.multitenant? %> -

<%= t('sign_in') %>

- <%= form_for(resource, as: resource_name, html: { class: 'space-y-6' }, data: { turbo: params[:redir].blank? }, url: session_path(resource_name)) do |f| %> - <%= render 'hidden_fields' %> -
-
- <%= f.label :email, t(:email), class: 'label' %> - <%= f.email_field :email, autofocus: true, autocomplete: 'email', class: 'base-input' %> +<% content_for(:hide_navbar, true) %> +<% content_for(:full_width, true) %> +
+
+
+
+
+
+

Welcome home, arcaber.

+

+ By continuing, you accept + arcab Data, Privacy and Safety policies for all + arcab Products and Services. +

-
- <%= f.label :password, t(:password), class: 'label' %> - <%= f.password_field :password, autocomplete: 'current-password', class: 'base-input' %> -
-
-
- <%= f.button button_title(title: t(:sign_in), disabled_with: t(:signing_in)), class: 'base-button' %> + <%= render 'devise/shared/select_server' if Docuseal.multitenant? %> + <%= form_for(resource, as: resource_name, html: { class: 'space-y-4' }, data: { turbo: params[:redir].blank? }, url: session_path(resource_name)) do |f| %> + <%= render 'hidden_fields' %> +
+
+ <%= f.label :email, t(:email), class: 'label' %> + <%= f.email_field :email, autofocus: true, autocomplete: 'email', class: 'base-input' %> +
+
+ <%= f.label :password, t(:password), class: 'label' %> + <%= f.password_field :password, autocomplete: 'current-password', class: 'base-input' %> +
+
+
+ <%= f.button button_title(title: t(:sign_in), disabled_with: t(:signing_in)), class: 'base-button' %> +
+ <% end %> + <%= render 'omniauthable' %> + <%= render 'extra_links' %> + <%= render 'devise/shared/links' %>
- <% end %> - <%= render 'omniauthable' %> - <%= render 'extra_links' %> - <%= render 'devise/shared/links' %> -
+
+
+ arcab logo +
+ diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index c39ba6ae..f9f97bcf 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -28,9 +28,9 @@ <% end %> - <%= render 'shared/navbar' %> + <% unless content_for?(:hide_navbar) %><%= render 'shared/navbar' %><% end %> <% if flash.present? %><%= render 'shared/flash' %><% end %> -
+
<%= yield %>
<%= render 'shared/body_scripts' %> diff --git a/public/images/login-floating-logo.svg b/public/images/login-floating-logo.svg new file mode 100644 index 00000000..0232c2ca --- /dev/null +++ b/public/images/login-floating-logo.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/public/images/login-top-bg.svg b/public/images/login-top-bg.svg new file mode 100644 index 00000000..af212435 --- /dev/null +++ b/public/images/login-top-bg.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + +