residency/app/views/members/index.html.haml
2023-01-11 18:20:21 +02:00

15 lines
490 B
Plaintext

.flex.justify-center
%h1 Listing members
= paginate @members
.grid.grid-cols-4
- @members.each do |member|
.fex.flex-col.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm.m-10
= image_for( member , class: "h-60 w-full object-cover")
%h3.p-5.text-2xl.bg-gray-100.text-black.font-bold.text-center= member.name
%div.h-full
.p-5.text-center
.m-2.text-sm.leading-relaxed.line-clamp-3{ prose_classes }
= markdown(member.bio)