index.html.haml 1.3 KB
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2
.page-heading
  %h3
3 4
    = t('.heading.title')
    %small= t('.heading.description')
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
14
        = t('.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
20
        %span.login-btn= t('.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
27
        = t('.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
33
        %span.login-btn= t('.connect_mastodon')
34

35
%p= t('.description')