From 2cc6cee5425a1ae90cdcfdb4f8f45a6f0f0cc6e3 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Thu, 11 Apr 2024 08:46:35 -0700 Subject: [PATCH] Style "Log in with NeoPass" button to better match Neopets Got the icon and background style from Neopets.com! I didn't quite copy the whole button style, both because getting it to play nice with our existing styles didn't *immediately* work, but also because I think this works out as a really good compromise between our two styles anyway! --- app/assets/images/neopass_icon.png | Bin 0 -> 3260 bytes .../stylesheets/devise/sessions/new.sass | 17 +++++++++++++++++ app/views/devise/sessions/new.html.erb | 17 +++++++++-------- 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 app/assets/images/neopass_icon.png create mode 100644 app/assets/stylesheets/devise/sessions/new.sass diff --git a/app/assets/images/neopass_icon.png b/app/assets/images/neopass_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..70a2590e239b51b1b123f6833c45edaadd2e1ce9 GIT binary patch literal 3260 zcmV;t3`6sYP)mB$gx^{QbWFcXRJK_bm6)MsVNf`JUW+&VT;%pYQ*^_j~{UB*_J1auHHGJIe4&7%LX`{!>M)Z85nSOTN3+*38@)bRrsJsIkI=zL80)$3@z9} zzl0BFsK*W}1|Q5&E;oFzgwH`X@Hxl^J_p&r=O7#S9AtyMcnnmjQUx_?)IdN$fc$>v z&K+F6dKE{G96?%I8lE@ohX-qu0tE_)DO0A1q@*NahRn=Nv3c`m(Y0&WXJM`7i6wjF zpsH1?ijyZ#3U9Dr!2&@M=JlZb{QTr(m#_eB#d zpJUOYMcBJ{FT8C+HWnBAZE;GW8 z9XrJM@#DqVv17%oS+hh+N{Z%uYHF%z-MY1=uaP51%7@nD+_`gtqTlphCr+FY{{H?? z=AfQEdkQn`+O(_}aH`FWXS6o3`QXuyatZM-HlIlzVH}t_9slbBtyY9Xoae&9+tSJGmR`@FKfhSHa;4@P8i=ece4f+jNsyeJECK@qWrR3z;lc$$ z1n*IGi-?Gj>F0oJbi# z=J>sP_r#DPLk!156;8yLEMYg4bOv`+|dhS^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D?| zZM)1J2jtTw>^~Nh?kM8ke#0)~ewx%*rQQ{l$~ZrBYP6(ij8XgXQW8v}NZb>vc*qE& zr>RoT1&4`$P82X>j59Lr;8luMuLyK(stAxdWiq|II7m*|K1&HWSH!L&J!ImDUx#SF zvyki86<9pMy>0nm?e{C+1Aiio_4Xr@WpMN^`;R^ACKFl1m)6C zoFb5A1V>!^_nlnE{jw^bw^pU_>KLWkE0+a!5$ClTs05=KEF;KOUsxfN_Py88j%LpY zn(_8d=P-62P)iY4_|pJK5qC@r2Zr@9cMhY*qhAT&YV_xKh}74sG-*&%RiST=Y1_9T z;%@V*(plq3dR*JAqKl({JB?+>ch0s<8L{JF2}>m%{{`Lf75C#jBRlCv2Z@CDA5-fe zD`)<;t$HZCyk{A~3b;Q-l;5M+X6F|tepxeBEloT@^Dw2 zUXdgnz9waV^o)ueM?cIx`3#u5WlM@TptAY3Js>m@gKylE46KV&5 zb&CU2s7jSAMv9&IZ2mgnda`n0LuwmI(b1%yGxZqBM85wc9+@&v^~GQ=Ell z%1#Gy1{@&SFrF0js%_Te_A14g6svaeE_!|r@PqPNt9+13%Y=){nO0y@u0$qC+nv6k zCfelJmRw<-V*0fVmt!`^3j1k+d5PC=Y@ULbCT!lqvWn@2Vc|l`UL<%W6q#tPHmjaT zSURYX!5@ML2H=H)B?qx0E*qp&DKkG4;>}dNQ1HF>u||sTPZ4b3bC3;u4zhvIK{oI? z$QqgKATI>_3x`B@&`J1Uh6HxdI{09QFC8CvBU1QGW3=UltUXZvS6rFTz@W3!-hvK) z$-#roZi|8m_$O|8_6~pHTn_eFju8g?e`M^0000Log in <% if can_use_neopass %> - 🌟✨🌟✨🌟✨🌟✨🌟 -
- <%= button_to "Log in with NeoPass", - auth_user_neopass_omniauth_authorize_path(intent: "login"), - data: {turbo: false} # Turbo can't handle this redirect! + <%= button_to auth_user_neopass_omniauth_authorize_path(intent: "login"), + data: {turbo: false}, class: "log-in-with-neopass-button" do %> - 🌟✨🌟✨🌟✨🌟✨🌟 -
-
+ Log in with + <%= image_tag "neopass_icon.png", alt: "NeoPass", class: "neopass-icon" %> + <% end %> <% end %> <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> @@ -36,3 +33,7 @@ <% end %> <%= render "devise/shared/links" %> + +<% content_for :stylesheets do %> + <%= stylesheet_link_tag "devise/sessions/new" %> +<% end %>