volunteers/app/views/pictures/_picture.haml

12 lines
622 B
Plaintext
Raw Normal View History

2023-01-25 21:46:30 +01:00
.group.relative.overflow-hidden
.flex.justify-between
.ml-2= link_to picture.member.name , main_app.member_path(picture.member) , class: :underline
2023-01-25 21:46:30 +01:00
.mr-2
= distance_of_time_in_words_to_now picture.happened
ago
2023-01-25 23:47:27 +01:00
.h-0.overflow-hidden.relative{class: "pt-[75%]"}
= picture_for( picture , "absolute top-0 left-0 w-full h-full inset-0 object-cover hover:scale-105 ease-in duration-500")
2023-01-25 21:15:54 +01:00
-unless picture.text.blank?
2023-01-25 21:46:30 +01:00
.absolute.bottom-0.left-0.right-0.px-4.pb-1.bg-gray-800.opacity-70.transition-colors.group-hover:bg-black.group-hover:opacity-100
.text-center.mt-2.text-white= picture.text