diff --git a/app/views/trips/index.html.erb b/app/views/trips/index.html.erb index 46218299..eb0c2078 100644 --- a/app/views/trips/index.html.erb +++ b/app/views/trips/index.html.erb @@ -27,28 +27,30 @@
<% @trips.each do |trip| %> -
-
-

- <%= link_to trip.name, trip, class: 'hover:underline' %> -

-

- <%= "#{human_date(trip.started_at)} – #{human_date(trip.ended_at)}, #{trip.distance} #{DISTANCE_UNIT}" %> -

+ <%= link_to trip, class: "block hover:shadow-lg rounded-lg" do %> +
+
+

+ <%= trip.name %> +

+

+ <%= "#{human_date(trip.started_at)} – #{human_date(trip.ended_at)}, #{trip.distance} #{DISTANCE_UNIT}" %> +

-
+
+
-
+ <% end %> <% end %>
<% end %>