Skip to content

Commit

Permalink
Add like and nolike button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
orendon committed Oct 10, 2014
1 parent 54056c5 commit 9f457b9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Binary file added app/assets/images/like.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ header a {
display: block;
float: right;
}

header img {
height: 30px;
display: block;
Expand All @@ -51,6 +50,22 @@ figure {
figure img {
height: 300px;
}
figure button {
margin-left: 20px;
text-align: right;
height: 50px;
width: 120px;
background: url(like.png) no-repeat;
cursor: pointer;
}
figure button:hover {
text-decoration: underline;
}
.like {
background-position: 0 -50px;
}
.nolike {
}

footer {
position: absolute;
Expand Down
3 changes: 3 additions & 0 deletions app/views/friends/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<figure>
<%= image_tag Gravatar.new(@friend.email).image_url(s: 300) %>
<p><%= @friend.name %>, <strong><%= @friend.age %> años</strong></p>

<button class="like">Me gusta</button>
<button class="nolike">No Me gusta</button>
</figure>

0 comments on commit 9f457b9

Please sign in to comment.