index.html.haml 1.43 KB
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2
.page-heading
  %h3
Eugen Rochko's avatar
Eugen Rochko committed
3
    Find your friends on Mastodon
Eugen Rochko's avatar
Eugen Rochko committed
4
    %small Login via Twitter to get started
5

6
%iframe.hero-link{ width: 600, height: 337, src: "https://www.youtube-nocookie.com/embed/IPSbNdBmWKE?rel=0&showinfo=0", frameborder: 0, allow: "autoplay; encrypted-media", allowfullscreen: true }
Eugen Rochko's avatar
Eugen Rochko committed
7

Eugen Rochko's avatar
Eugen Rochko committed
8 9 10 11 12
.login-buttons
  = content_tag twitter? ? :div : :a, href: user_twitter_omniauth_authorize_path, class: 'twitter' do
    .login-brand= image_tag 'twitter-square.png', alt: 'Twitter'
    .login-content
      .login-numbers
Eugen Rochko's avatar
Eugen Rochko committed
13
        %strong= number_with_delimiter @twitter_count
Eugen Rochko's avatar
Eugen Rochko committed
14
        connected
Eugen Rochko's avatar
Eugen Rochko committed
15 16
      - if twitter?
        .login-name
17
          %strong= current_user.twitter.display_name.presence || current_user.twitter.uid
Eugen Rochko's avatar
Eugen Rochko committed
18
          = fa_icon 'check'
19
      - else
Eugen Rochko's avatar
Eugen Rochko committed
20
        %span.login-btn Connect Twitter
21

Eugen Rochko's avatar
Eugen Rochko committed
22 23 24 25
  = content_tag mastodon? ? :div : :a, href: user_mastodon_omniauth_authorize_path, class: 'mastodon' do
    .login-brand= image_tag 'logo.svg', alt: 'Mastodon'
    .login-content
      .login-numbers
Eugen Rochko's avatar
Eugen Rochko committed
26
        %strong= number_with_delimiter @mastodon_count
Eugen Rochko's avatar
Eugen Rochko committed
27
        connected
Eugen Rochko's avatar
Eugen Rochko committed
28 29 30 31
      - if mastodon?
        .login-name
          %strong= current_user.mastodon.display_name.presence || current_user.mastodon.uid
          = fa_icon 'check'
32
      - else
Eugen Rochko's avatar
Eugen Rochko committed
33
        %span.login-btn Connect Mastodon
34 35

%p
Eugen Rochko's avatar
Eugen Rochko committed
36
  This website uses a database of Twitter users and Mastodon users who signed in here to match them together across multiple Mastodon instances. Are your friends among them?