Skip to content

Commit 09b5e96

Browse files
authored
Update event cards with calendar links and UI polish (#813)
1 parent b3fc586 commit 09b5e96

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

app/views/events/_card.html.erb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,15 @@
6969
</div>
7070
<!-- 4️⃣ FULL-WIDTH CALENDAR LINKS ROW -->
7171
<% if event.event_registrations.exists?(registrant_id: current_user.id) %>
72-
<div class="flex gap-2 items-center justify-center w-full text-sm text-gray-700 mt-2">
73-
<!-- <span class="font-semibold">Calendar:</span> -->
74-
<%= event.calendar_links %>
75-
</div>
76-
<% end %>
72+
<div class="flex flex-col items-center mt-4 pt-3 border-t border-gray-100">
73+
<p class="text-xs font-bold text-gray-400 uppercase tracking-wide mb-2">
74+
Add to Your Calendar
75+
</p>
76+
77+
<div class="flex flex-wrap gap-3 items-center justify-center w-full text-sm text-blue-600 font-medium">
78+
<%= event.calendar_links %>
79+
</div>
80+
</div>
81+
<% end %>
7782
<% end %>
7883
<% end %>

0 commit comments

Comments
 (0)