hubfeenix.fi/app/views/members/_profile_card.haml

16 lines
593 B
Plaintext
Raw Normal View History

2023-01-22 10:36:35 +01:00
.flex.flex-col.justify-center
=link_to profile_path(profile) do
.px-4.py-4.text-center.bg-gray-200
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
#{profile.Kind} Profile
.flex.mt-6.py-4.flex-col.max-w-screen-lg.overflow-hidden.bg-white.border.rounded.shadow-sm
.relative
-if profile.picture_url
= image_tag profile.picture_url, class: "object-cover w-full h-60"
-else
No picture
%h5.m-4.text-3xl.font-bold.text-center
= profile.name
.mb-8.text-gray-800.text-center
.prose= markdown(profile.bio)