volunteers/app/views/stories/_half.haml

14 lines
596 B
Plaintext
Raw Normal View History

2023-01-11 19:52:58 +01:00
%section.overflow-hidden.grid.grid-cols-1.m-5.md:m-12.lg:m-20.md:grid-cols-2
2023-02-03 21:29:50 +01:00
=link_to someones_path( story ) , {class: :glightbox } do
= picture_for( story , "h-56 w-full object-cover sm:h-full")
2023-01-11 19:52:58 +01:00
.p-8.md:p-12.lg:px-16.lg:py-24
.mx-auto.max-w-xl.text-center
%h2.text-2xl.font-bold.md:text-4xl
= story.header
%h4.text-xl.mt-10.md:text-2xl
= distance_of_time_in_words_to_now story.happened
2023-02-02 17:13:53 +01:00
ago, by
= link_to story.member.name , main_app.member_path(story.member) , class: :underline
2023-01-11 19:52:58 +01:00
.mt-8{ prose_classes }
= markdown(story.text)