style(events): Improve event display layout and styling
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -26,14 +26,14 @@
|
|||||||
<div class="flex justify-between items-start mb-3">
|
<div class="flex justify-between items-start mb-3">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-xl font-bold text-gray-900 line-clamp-1"><%= event.name %></h2>
|
<h2 class="text-xl font-bold text-gray-900 line-clamp-1"><%= event.name %></h2>
|
||||||
<p class="text-sm text-gray-500 mt-1 flex items-center">
|
<p class="text-xs text-gray-500 flex items-center mt-1">
|
||||||
<svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
<svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
|
||||||
</svg>
|
</svg>
|
||||||
<%= event.user.email.split('@').first %>
|
<%= event.venue_name.truncate(20) %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">
|
<span class="inline-flex items-center my-2 px-2.5 py-2 rounded-full text-xs font-medium bg-purple-100 text-purple-800">
|
||||||
<%= event.start_time.strftime("%d/%m") %>
|
<%= event.start_time.strftime("%d/%m") %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -48,12 +48,6 @@
|
|||||||
<p class="text-sm font-medium text-gray-900">
|
<p class="text-sm font-medium text-gray-900">
|
||||||
À partir de <%= format_price(event.ticket_types.minimum(:price_cents)) %>€
|
À partir de <%= format_price(event.ticket_types.minimum(:price_cents)) %>€
|
||||||
</p>
|
</p>
|
||||||
<p class="text-xs text-gray-500 flex items-center mt-1">
|
|
||||||
<svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
|
|
||||||
</svg>
|
|
||||||
<%= event.venue_name.truncate(20) %>
|
|
||||||
</p>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="text-sm text-gray-500">Pas de billets disponibles</p>
|
<p class="text-sm text-gray-500">Pas de billets disponibles</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user