hubfeenix.fi/app/views/profiles/show.html.haml

16 lines
742 B
Plaintext
Raw Normal View History

2023-01-15 13:52:40 +01:00
.px-4.py-16.mx-auto.sm:max-w-xl.md:max-w-full.lg:max-w-screen-xl.md:px-24.lg:px-8.lg:py-20
2023-01-16 00:11:05 +01:00
.flex.justify-center
.px-4.py-4.text-center
%h1text-2xl.font-bold.tracking-tight.sm:text-4xl
= @profile.Kind
profile
.flex.py-4.flex-col.max-w-screen-lg.overflow-hidden.bg-white.border.rounded.shadow-sm.lg:flex-row.sm:mx-auto
2023-01-15 13:52:40 +01:00
.relative{:class => "lg:w-1/2"}
2023-01-15 23:17:22 +01:00
-if @profile.picture_url
= image_tag @profile.picture_url, class: "object-cover w-full lg:absolute h-80 lg:h-full"
2023-01-15 13:52:40 +01:00
.flex.flex-col.justify-center.p-8.lg:p-16.lg:pl-10{:class => "lg:w-1/2"}
%h5.mb-3.text-3xl.font-extrabold.leading-none.sm:text-4xl
2023-01-15 23:17:22 +01:00
= @profile.name
2023-01-15 13:52:40 +01:00
.mb-8.text-gray-800
2023-01-15 23:17:22 +01:00
.prose= markdown(@profile.bio)