Updated styles for auth pages

• Updated:
- styles for auth pages
This commit is contained in:
mgabdev
2020-08-20 16:30:46 -05:00
parent 190d09f3f3
commit 9f0fd83fc0
6 changed files with 268 additions and 6 deletions

View File

@@ -2,6 +2,8 @@
= t('auth.resend_confirmation')
= simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
%h2.form-title Resend confirmation instructions
= render 'shared/error_messages', object: resource
.fields-group

View File

@@ -2,6 +2,8 @@
= t('auth.reset_password')
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
%h2.form-title Reset Gab Password
= render 'shared/error_messages', object: resource
.fields-group

View File

@@ -5,6 +5,8 @@
= render partial: 'shared/og'
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
%h2.form-title Sign up for Gab
= render 'shared/error_messages', object: resource
- if @invite.present? && @invite.autofollow?
@@ -32,7 +34,7 @@
= f.input :invite_code, as: :hidden
.fields-group
.fields-group-agreement
= f.input :agreement, as: :boolean, wrapper: :with_label, label: t('auth.checkbox_agreement_html', about_tos_path: about_tos_path)
.actions

View File

@@ -5,13 +5,15 @@
= render partial: 'shared/og'
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
%h2.form-title Log into Gab
.fields-group
- if use_seamless_external_login?
= f.input :email, autofocus: true, wrapper: :with_label, label: t('simple_form.labels.defaults.username_or_email'), input_html: { 'aria-label' => t('simple_form.labels.defaults.username_or_email') }, hint: false
- else
= f.input :email, autofocus: true, wrapper: :with_label, label: t('simple_form.labels.defaults.email'), input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }, hint: false
.fields-group
= f.input :password, wrapper: :with_label, label: t('simple_form.labels.defaults.password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }, hint: false
= f.input :password, wrapper: :with_label, label: t('simple_form.labels.defaults.password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }, hint: false
.actions
= f.button :button, t('auth.login'), type: :submit

View File

@@ -1,14 +1,13 @@
- content_for :header_tags do
= javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
%link(rel='stylesheet' href='/legacy/common.css')
%link(rel='stylesheet' href='/legacy/default.css')
%link(rel='stylesheet' href='/legacy/auth.css')
- content_for :content do
.container
.logo-container
%h1
%h1{:title => 'Gab.com', :aria-level => '1', :role => 'heading'}
= link_to root_path do
= image_pack_tag 'logo_full.png', alt: 'Gab Social'
= image_pack_tag 'logo_full.png', alt: 'Gab Social', height: '48px'
.form-container
= render 'flashes'