show profiles good
This commit is contained in:
15
app/views/members/_profile_card.haml
Normal file
15
app/views/members/_profile_card.haml
Normal file
@ -0,0 +1,15 @@
|
||||
.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)
|
Reference in New Issue
Block a user