diff --git a/app/assets/stylesheets/posts.scss b/app/assets/stylesheets/posts.scss index eac7abe..49923e9 100644 --- a/app/assets/stylesheets/posts.scss +++ b/app/assets/stylesheets/posts.scss @@ -122,11 +122,23 @@ border-radius: 50%; } + .index-bio__right { + .name { + font-size: 24px; + + a { + color: black; + } + } + + } + .index-bio__left { display: flex; flex-direction: column; align-items: center; margin-right: 20px; + width: 100px; img { margin-bottom: 10px; diff --git a/app/views/i/posts/_bio.html.haml b/app/views/i/posts/_bio.html.haml index b8c2ee0..e428df6 100644 --- a/app/views/i/posts/_bio.html.haml +++ b/app/views/i/posts/_bio.html.haml @@ -1,16 +1,18 @@ .index-bio .index-bio__left - - if user.avatar.present? - = image_tag(user.avatar.url) - - else - = image_tag(Avatar.new(user.email).get&.gsub(/\/s\d+/, '/s128')) + = link_to "/#{user.username}" do + - if user.avatar.present? + = image_tag(user.avatar.url) + - else + = image_tag(Avatar.new(user.email).get&.gsub(/\/s\d+/, '/s128')) - if user.instagram.present? = link_to "https://instagram.com/#{user.instagram}" do = fa_icon "instagram" = link_to "https://twitter.com/#{user.twitter}" do = fa_icon "twitter" .index-bio__right - %h4= user.name + .name + = link_to user.name, "/#{current_user.username}" .bio= user.bio - if editable?(user) .edit= link_to("edit bio", profile_path) diff --git a/public/system/users/avatars/000/000/004/original/ajqrJ3nG_400x400_(1).jpg b/public/system/users/avatars/000/000/004/original/ajqrJ3nG_400x400_(1).jpg new file mode 100644 index 0000000..d0990d6 Binary files /dev/null and b/public/system/users/avatars/000/000/004/original/ajqrJ3nG_400x400_(1).jpg differ diff --git a/public/system/users/avatars/000/000/004/thumb/ajqrJ3nG_400x400_(1).jpg b/public/system/users/avatars/000/000/004/thumb/ajqrJ3nG_400x400_(1).jpg new file mode 100644 index 0000000..374eff2 Binary files /dev/null and b/public/system/users/avatars/000/000/004/thumb/ajqrJ3nG_400x400_(1).jpg differ