Skip to content

Commit

Permalink
G
Browse files Browse the repository at this point in the history
  • Loading branch information
adnjoo committed Nov 4, 2024
1 parent 4de2c92 commit af079d2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/assets/images/icons/google.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions app/views/devise/shared/_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%#= link_to "Sign up", new_registration_path(resource_name), class: "text-black hover:text-gray-700 font-bold" %><br />
<%# end %>

<%= link_to "Join the Waitlist", WAITLIST_LINK, class: "text-black hover:text-gray-700 font-bold" %><br />
<%= link_to "Join the Waitlist", WAITLIST_LINK, class: "hidden text-black hover:text-gray-700 font-bold" %><br />

<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
<%= link_to "Forgot your password?", new_password_path(resource_name), class: "text-black hover:text-gray-700 font-bold" %><br />
Expand All @@ -23,6 +23,15 @@

<%- if devise_mapping.omniauthable? %>
<%- resource_class.omniauth_providers.each do |provider| %>
<%= button_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), data: { turbo: false }, class: "text-black hover:text-gray-700 font-bold" %><br />
<%= button_to omniauth_authorize_path(resource_name, provider),
data: { turbo: false },
class: "flex items-center justify-center w-full p-4 mt-4 max-w-sm rounded-lg border b-2 shadow-xl" do %>
<!-- Add Google icon if provider is google_oauth2 -->
<% if provider == :google_oauth2 %>
<%= inline_svg_tag "icons/google.svg", class: "h-6 w-6" %>
Sign in with Google
<% end %>
<% end %>
<% end %>
<% end %>

0 comments on commit af079d2

Please sign in to comment.