volunteers/app/views/pictures/_picture.haml
2023-01-25 22:46:30 +02:00

11 lines
475 B
Plaintext

.group.relative.overflow-hidden
.flex.justify-between
.ml-2=picture.member.name
.mr-2
= distance_of_time_in_words_to_now picture.happened
ago
= image_for( picture , "inset-0 h-full w-full object-fit hover:scale-105 ease-in duration-500")
-unless picture.text.blank?
.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