Commit f5d612c7 authored by Eugen Rochko's avatar Eugen Rochko

Improve home page

parent 6e537e26
......@@ -588,3 +588,20 @@ h4 {
font-weight: 500;
}
}
.hero-link {
display: block;
text-decoration: none;
color: $white;
img {
width: 100%;
height: auto;
display: block;
margin: 0;
}
margin-bottom: 30px;
border-radius: 10px;
overflow: hidden;
}
.page-heading
%h3
Find your friends
Find your friends on Mastodon
%small Login via Twitter to get started
= link_to 'https://joinmastodon.org', class: 'hero-link' do
= image_tag 'preview.jpg', alt: 'Elephant friend, paperplanes and a trombone with the Mastodon logo in the center'
.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
%strong= number_with_delimiter @twitter_count
accounts
connected
- if twitter?
.login-name
%strong= current_user.twitter.display_name.presence || current_user.twitter.uid
......@@ -22,7 +25,7 @@
.login-content
.login-numbers
%strong= number_with_delimiter @mastodon_count
accounts
connected
- if mastodon?
.login-name
%strong= current_user.mastodon.display_name.presence || current_user.mastodon.uid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment