@@ -23,41 +23,41 @@ defmodule ChukoWeb.Components do
2323 < . carousel item = { @ item } />
2424 <% end %>
2525 </ div >
26- < div class = " flex flex-col justify-between p-4 space-y-2 h-60 ">
27- < div class = "space-y-0.5 " >
28- < h3 class = "text-base font-medium text-gray-900 line-clamp-2 " >
29- < a href = { @ item . url } target = " _blank ">
26+ < a href = { @ item . url } target = " _blank ">
27+ < div class = "flex flex-col justify-between p-4 space-y-2 h-60 " >
28+ < div class = "space-y-0.5 " >
29+ < h3 class = " text-base font-medium text-gray-900 line-clamp-2 ">
3030 <%= @ item . name %>
31- </ a >
32- </ h3 >
33- < p class = " text-sm text-gray-500 line-clamp-3 " >
34- <%= @ item . description % >
35- </ p >
36- </ div >
37- < div class = "grid grid-cols-2 gap-1 " >
38- < p class = " text-gray-900 " >
39- <%= @ item . location % >
40- </ p >
41- < p class = " text-base font-medium text-right text-gray-900 " >
42- <%= case @ item . offer_type do %>
43- <% :buynow -> %>
44- Buy now
45- <% :auction - > %>
46- Auction
47- <% end % >
48- </ p >
49- < img class = "w-2/3 " src = { @ item . platform_logo } alt = { inspect ( @ item . platform ) } / >
50- < p class = " items-center text-base font-medium text-right text-gray-900 " >
51- <%= " #{ @ item . currency } " % >
52- < span class = " text-xl font-bold " >
53- <%= " #{ :erlang . float_to_binary ( @ item . price , decimals: 2 ) } " % >
54- </ span >
55- </ p >
56- < div class = " col-span-2 text-xs text-center text-gray-500 " >
57- <%= format_datetime ( @ item . created_at ) % >
31+ </ h3 >
32+ < p class = " text-sm text-gray-500 line-clamp-3 " >
33+ <%= @ item . description % >
34+ </ p >
35+ </ div >
36+ < div class = " grid grid-cols-2 gap-1 " >
37+ < p class = "text-gray-900 " >
38+ <%= @ item . location % >
39+ </ p >
40+ < p class = " text-base font-medium text-right text-gray-900 " >
41+ <%= case @ item . offer_type do % >
42+ <% :buynow -> %>
43+ Buy now
44+ <% :auction - > %>
45+ Auction
46+ <% end %>
47+ </ p >
48+ < img class = " w-2/3 " src = { @ item . platform_logo } alt = { inspect ( @ item . platform ) } / >
49+ < p class = "items-center text-base font-medium text-right text-gray-900 " >
50+ <%= " #{ @ item . currency } " % >
51+ < span class = " text-xl font-bold " >
52+ <%= " #{ :erlang . float_to_binary ( @ item . price , decimals: 2 ) } " % >
53+ </ span >
54+ </ p >
55+ < div class = " col-span-2 text-xs text-center text-gray-500 " >
56+ <%= format_datetime ( @ item . created_at ) % >
57+ </ div >
5858 </ div >
5959 </ div >
60- </ div >
60+ </ a >
6161 </ div >
6262 """
6363 end
0 commit comments