residency/app/views/members/index.html.haml

17 lines
631 B
Plaintext
Raw Normal View History

2023-01-11 17:48:06 +01:00
= paginate @members
2022-12-22 15:27:05 +01:00
.flex.justify-center
2022-12-20 16:05:26 +01:00
2023-01-11 17:48:06 +01:00
.grid.grid-cols-4
- @members.each do |member|
.fex.flex-col.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm.m-10
2023-01-12 13:34:26 +01:00
=link_to member do
= image_for( member , class: "h-60 w-full object-cover")
2023-01-12 13:56:50 +01:00
%h3.pt-5.text-2xl.bg-gray-100.text-black.font-bold.text-center
2023-01-12 13:34:26 +01:00
= member.name
2023-01-12 13:56:50 +01:00
.p-2.text-xs.bg-gray-50.text-black.font-bold.text-center
= stayed member
2023-01-11 17:48:06 +01:00
%div.h-full
.p-5.text-center
.m-2.text-sm.leading-relaxed.line-clamp-3{ prose_classes }
2023-01-12 13:34:26 +01:00
= shorten markdown(member.bio)