Skip to content

Commit

Permalink
Rename _dog parital to _dog_card
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinthinks committed Aug 25, 2022
1 parent f0c222a commit 2e3c321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class='shadow-2xl w-[300px] flex-grow mx-2 my-2 p-6 bg-white'>
<div class='h-62'>
<%= image_tag dog.image_src, class: 'object-cover w-full h-[325px]' %>
<div class='h-62 overflow-hidden'>
<%= image_tag dog.image_src, class: 'object-cover w-full h-[325px] transition hover:scale-150 ease-in-out duration-[2000ms]' %>
</div>

<div class='text-center text-4xl font-bold uppercase my-2'>
Expand Down
2 changes: 1 addition & 1 deletion app/views/dogs/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<div class='flex flex-wrap justify-center mt-6 content-between'>
<% @dogs.each do |dog| %>
<%= render 'dogs/dog', dog: dog %>
<%= render 'dogs/dog_card', dog: dog %>
<% end %>
</div>
</div>

0 comments on commit 2e3c321

Please sign in to comment.