-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8a94c3
commit 78c1370
Showing
8 changed files
with
1,137 additions
and
45 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,55 @@ | ||
.columns.is-centered | ||
.column.is-one-third | ||
h2.title.is-4.has-text-centered = t('.log_in') | ||
- if Devise.omniauth_providers.include?(:google_oauth2) | ||
.field.is-fullwidth | ||
= link_to user_google_oauth2_omniauth_authorize_path, method: :post, class: 'button is-primary is-fullwidth' do | ||
span.icon | ||
i.fa.fa-google | ||
| Log in with Google | ||
h2.title.is-4.has-text-centered = 'or' | ||
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| | ||
.field | ||
= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "email" | ||
.field | ||
= f.password_field :password, autocomplete: "current-password", placeholder: "password" | ||
- if devise_mapping.rememberable? | ||
.field | ||
= f.check_box :remember_me | ||
| | ||
= f.label :remember_me | ||
br | ||
.actions | ||
div.is-fullwidth | ||
= f.submit 'Log in', class: "button is-light is-fullwidth" | ||
br | ||
.columns | ||
.column.is-one-quarters | ||
= link_to t(".sign_up"), new_registration_path(resource_name) | ||
.column.is-flex.is-justify-content-flex-end | ||
= link_to "Forgot your password?", new_password_path(resource_name) | ||
.column | ||
.columns.is-centered | ||
.column.is-four-fifths | ||
h2.title.is-4.has-text-centered.text-has-budgeting-kid-color = t('.login') | ||
h2.title.is-3.has-text-centered.font-frank-ruhl-libre Login to your account | ||
- if Devise.omniauth_providers.include?(:google_oauth2) | ||
.field | ||
.buttons.is-centered | ||
= link_to user_google_oauth2_omniauth_authorize_path, method: :post, class: 'button is-outlined is-budgeting-kid-hoverable' do | ||
span | ||
figure.image.is-24x24 | ||
= image_tag('google.svg', class:'is-rounded', alt: 'G') | ||
| Google | ||
= link_to "#", method: :post, class: 'button is-outlined is-budgeting-kid-hoverable' do | ||
span | ||
figure.image.is-24x24 | ||
= image_tag('facebook.svg', class:'is-rounded', alt: 'G') | ||
| Facebook | ||
br | ||
p.text-divider | ||
| Or continue with | ||
br | ||
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| | ||
.field | ||
= f.label :email | ||
.field.pb-2 | ||
= f.email_field :email, autofocus: true, autocomplete: "email" | ||
.field | ||
= f.label :password | ||
.field | ||
= f.password_field :password, autocomplete: "current-password" | ||
- if devise_mapping.rememberable? | ||
.field | ||
= f.check_box :remember_me | ||
| | ||
= f.label :remember_me | ||
br | ||
.actions | ||
div.is-fullwidth | ||
= button_to session_path(resource_name), class: 'button is-primary is-fullwidth' do | ||
span | ||
| Login | ||
figure.image.is-16x16 | ||
= image_tag('arrow-right.svg', alt: '->') | ||
br | ||
.columns | ||
.column.is-three-fifths | ||
| Don't have an account? | ||
= link_to t(".sign_up"), new_registration_path(resource_name) | ||
.column.is-flex.is-justify-content-flex-end | ||
= link_to "Forgot your password?", new_password_path(resource_name) | ||
.column.has-background-image.is-flex.is-justify-content-center.is-align-items-center | ||
figure.image.is-coins | ||
= image_tag('coins.svg') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters