NeoPass launch message on homepage

Some cute logged-in-user differentiation uwu
This commit is contained in:
Emi Matchu 2024-04-12 07:22:25 -07:00
parent aa0b376a12
commit 40bfd42af6
2 changed files with 15 additions and 9 deletions

View file

@ -4,7 +4,7 @@ class User < ApplicationRecord
PreviewTopContributorsCount = 3 PreviewTopContributorsCount = 3
belongs_to :auth_user, foreign_key: :remote_id, inverse_of: :user belongs_to :auth_user, foreign_key: :remote_id, inverse_of: :user
delegate :disconnect_neopass, to: :auth_user delegate :disconnect_neopass, :uses_neopass?, to: :auth_user
has_many :closet_hangers has_many :closet_hangers
has_many :closet_lists has_many :closet_lists

View file

@ -11,20 +11,26 @@
.neopass-content .neopass-content
%p %p
%strong %strong
Big news: we're adding NeoPass and other integrations to DTI over the 🎉 Big news: Login with NeoPass is ready!
coming months! - if user_signed_in?
- if current_user.uses_neopass?
And hey, you're already on it, thank you for giving it a try!! 🥰
- else
You can connect your existing account via the
#{link_to "Settings page", edit_auth_user_path}.
- else
If you're new to Dress to Impress, try logging in right now!! 🎉
%p %p
We're hoping it will help new users, and can be part of a more sustainable future for the site. We're hoping NeoPass will help new users, and can be part of a more sustainable future for the site.
%br %br
= link_to "Here's what's coming and why.", about_neopass_path = link_to "Here's what's coming and why.", about_neopass_path
%p %p
%strong ➡️ Seeking beta testers, please! Big thanks to our beta testers! More to come soon! Thank you all for
We need help making sure NeoPass login actually works reliably! your constant love and support! 💖
%br %br
= link_to "Check out the secret testing info", %em —Matchu
"https://forms.gle/hEkw5bXY1W4YhUZb7"
and let us know how it goes! Thank you!! 💖
#outfit-forms #outfit-forms
- localized_cache :action_suffix => 'outfit_forms_intro' do - localized_cache :action_suffix => 'outfit_forms_intro' do