diff --git a/app/assets/stylesheets/main.scss b/app/assets/stylesheets/main.scss index 4d68414f..644eeeb6 100755 --- a/app/assets/stylesheets/main.scss +++ b/app/assets/stylesheets/main.scss @@ -57,3 +57,41 @@ .display-4 { font-weight: normal; } + + +.customBtn-google { + display: inline-block; + background: #4688F1; + color: #ffffff; + box-shadow: 0 2px 4px 0 rgba(0,0,0,.25); + -webkit-transition: background-color .218s,border-color .218s,box-shadow .218s; + transition: background-color .218s,border-color .218s,box-shadow .218s; + white-space: nowrap; + border-radius: 2px; + border: 1px solid transparent; + &:hover { + cursor: pointer; + color: #ffffff; + -webkit-box-shadow: 0 0 3px 3px rgba(66,133,244,.3); + box-shadow: 0 0 3px 3px rgba(66,133,244,.3); + } + + .customBtn-icon { + display: inline-block; + vertical-align: middle; + padding:13px 15px 13px 15px; + float:left; + background: #ffffff; + } + + .customBtn-text { + font-size: 16px; + line-height: 48px; + font-weight: 600; + letter-spacing: .21px; + padding:0 25px; + font-family: 'Roboto', sans-serif; + } + + +} diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 70e5699d..6ce99298 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -28,6 +28,8 @@ window.GreenLight.RELATIVE_ROOT = "<%= relative_root %>" + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> diff --git a/app/views/shared/modals/_login_modal.html.erb b/app/views/shared/modals/_login_modal.html.erb index d8b11808..eeedd249 100644 --- a/app/views/shared/modals/_login_modal.html.erb +++ b/app/views/shared/modals/_login_modal.html.erb @@ -23,7 +23,19 @@ <% unless iconset_providers.length.zero? %> - <% iconset_providers.each do |provider| %> + + <% if configured_providers.include? :google %> + <% provider = :google %> + <%= link_to omniauth_login_url(provider), class: "customBtn-#{provider}" do %> + + + + <%= t("modal.login.with", provider: provider.capitalize) %> + <% end %> + <% end %> + + <% if configured_providers.include? :twitter %> + <% provider = :twitter %> <%= link_to omniauth_login_url(provider), class: "btn btn-pill btn-#{provider} btn-block" do %>  <%= t("modal.login.with", provider: provider.capitalize) %> <% end %> diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index e0be4e13..d8f3eb51 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -22,7 +22,19 @@
<% unless configured_providers.length.zero? %> - <% configured_providers.each do |provider| %> + + <% if configured_providers.include? :google %> + <% provider = :google %> + <%= link_to omniauth_login_url(provider), class: "customBtn-#{provider}" do %> + + + + <%= t("signup.with", provider: provider.capitalize) %> + <% end %> + <% end %> + + <% if configured_providers.include? :twitter %> + <% provider = :twitter %> <%= link_to omniauth_login_url(provider), class: "btn btn-pill btn-#{provider} btn-block" do %>  <%= t("signup.with", provider: provider.capitalize) %> <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 67f2989c..b951d9f6 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -76,7 +76,7 @@ en: upgrade: Show me how to upgrade to 2.0! version: We've released a new version of Greenlight, but your database isn't compatible. ldap_error: Unable to connect to the LDAP server. Please check your LDAP configuration in the env file and ensure your server is running. - login: Login + login: Sign in modal: create_room: auto_join: Automatically join me into the room. @@ -96,7 +96,7 @@ en: warning: You will not be able to recover this room or any of its associated recordings. login: or: or - with: Login with %{provider} + with: Sign in with %{provider} omniauth_error: An error occured while authenticating with omniauth. Please try again or contact an administrator! password: Password recording: @@ -154,8 +154,8 @@ en: signup: password_confirm: Password Confirmation subtitle: Create an Account - title: Signup - with: Signup with %{provider} + title: Sign up + with: Sign up with %{provider} terms: accept: I accept the %{href} accept_existing: I accept the terms and conditions