hubfeenix.fi/app/views/events/_event_small.haml
2023-09-01 20:58:16 +03:00

12 lines
565 B
Plaintext

.flex.flex-col.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm.m-10
=link_to main_app.event_path(event) do
= picture_for( event , class: "h-60 w-full object-cover")
%div
%h3.pt-5.text-2xl.bg-gray-100.text-black.font-bold.text-center
= event.name
.py-1.text-xl.bg-gray-100.text-black.font-bold.text-center
= small_date(event.start_date) + " - " + small_date(event.end_date)
%div.h-full
.p-5.text-center
.m-2.text-sm.leading-relaxed.line-clamp-3{ prose_classes }
= shorten( markdown(event.text) )