2022-12-31 15:46:48 +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
|
|
|
|
.flex.flex-col.max-w-screen-lg.overflow-hidden.bg-white.border.rounded.shadow-sm.lg:flex-row.sm:mx-auto
|
|
|
|
.relative{:class => "lg:w-1/2"}
|
2023-01-03 18:38:04 +01:00
|
|
|
-if @member.picture_url
|
|
|
|
= image_tag @member.picture_url, class: "object-cover w-full lg:absolute h-80 lg:h-full"
|
2022-12-31 15:46:48 +01:00
|
|
|
.flex.flex-col.justify-center.p-8.lg:p-16.lg:pl-10{:class => "lg:w-1/2"}
|
|
|
|
%div
|
|
|
|
%p.inline-block.px-3.py-px.mb-4.text-xs.font-semibold.tracking-wider.text-teal-900.uppercase.rounded-full.bg-teal-accent-400
|
2023-01-12 13:56:50 +01:00
|
|
|
= stayed(@member)
|
2022-12-31 15:46:48 +01:00
|
|
|
%h5.mb-3.text-3xl.font-extrabold.leading-none.sm:text-4xl
|
|
|
|
= @member.name
|
|
|
|
.mb-8.text-gray-800
|
|
|
|
.prose= markdown(@member.bio)
|
|
|
|
|
2023-01-11 19:52:58 +01:00
|
|
|
- if current_member == @member
|
|
|
|
.flex.justify-around
|
|
|
|
= link_to edit_member_path(@member) do
|
|
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
|
|
Edit
|
2022-12-20 16:05:26 +01:00
|
|
|
|
2023-01-11 19:52:58 +01:00
|
|
|
= link_to new_story_path() do
|
|
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
|
|
New Story
|
|
|
|
|
|
|
|
= form_tag( destroy_member_session_path , {method: :delete } ) do
|
|
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
|
|
|
|
Sign out
|
|
|
|
|
|
|
|
- @member.stories.each do |story|
|
2023-01-11 20:14:36 +01:00
|
|
|
=render_story( story )
|
|
|
|
.flex.justify-around
|
|
|
|
= link_to edit_story_path(story) do
|
|
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
|
|
Edit Story
|