clean up profile a bit
This commit is contained in:
parent
f25be5605d
commit
292a51ad3c
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
.grid.grid-cols-3.gap-10.mx-20
|
.grid.grid-cols-3.gap-10.mx-20
|
||||||
= f.input :name
|
= f.input :name
|
||||||
= f.input :public
|
= f.input :public , label: "Public: (Click box below)"
|
||||||
= f.input :picture , as: :file
|
= f.input :picture , as: :file
|
||||||
.preview.prose
|
.preview.prose
|
||||||
%b.text-2xl Preview
|
%b.text-2xl Preview
|
||||||
@ -25,9 +25,10 @@
|
|||||||
-else
|
-else
|
||||||
No Picture
|
No Picture
|
||||||
.flex.justify-center.actions.m-10
|
.flex.justify-center.actions.m-10
|
||||||
= f.button :button, "Get started", class: "w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
|
= f.button :button, "Update", class: "flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
|
||||||
.ml-20= link_to 'Back', member_path(@member)
|
= link_to member_path(@member) do
|
||||||
|
%button.ml-20.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
|
||||||
|
Back
|
||||||
:ruby2js
|
:ruby2js
|
||||||
class Mark < Vue
|
class Mark < Vue
|
||||||
options el: '.grid'
|
options el: '.grid'
|
||||||
|
@ -1,16 +1,26 @@
|
|||||||
.grid.grid-cols-2.m-20.gap-10
|
.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
|
||||||
%div
|
.flex.flex-col.max-w-screen-lg.overflow-hidden.bg-white.border.rounded.shadow-sm.lg:flex-row.sm:mx-auto
|
||||||
%b Name:
|
.relative{:class => "lg:w-1/2"}
|
||||||
= @member.name
|
= image_tag @member.picture_url, class: "object-cover w-full lg:absolute h-80 lg:h-full"
|
||||||
%div
|
.flex.flex-col.justify-center.p-8.lg:p-16.lg:pl-10{:class => "lg:w-1/2"}
|
||||||
%b Public:
|
%div
|
||||||
= @member.public
|
%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
|
||||||
-if @member.picture_url
|
Role ?
|
||||||
%div.overflow-hidden.items-align-right
|
%h5.mb-3.text-3xl.font-extrabold.leading-none.sm:text-4xl
|
||||||
= image_tag @member.picture_url, class: "object-contain h-80"
|
= @member.name
|
||||||
%div.prose= markdown(@member.bio)
|
.mb-8.text-gray-800
|
||||||
|
.prose= markdown(@member.bio)
|
||||||
|
.flex.items-center
|
||||||
|
%a.inline-flex.items-center.font-semibold.transition-colors.duration-200.text-deep-purple-accent-400.hover:text-deep-purple-800{"aria-label" => "", :href => "/"}
|
||||||
|
Learn More
|
||||||
|
%svg.inline-block.w-3.ml-2{:fill => "currentColor", :viewbox => "0 0 12 12"}
|
||||||
|
%path{:d => "M9.707,5.293l-5-5A1,1,0,0,0,3.293,1.707L7.586,6,3.293,10.293a1,1,0,1,0,1.414,1.414l5-5A1,1,0,0,0,9.707,5.293Z"}
|
||||||
|
|
||||||
|
.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
|
||||||
|
|
||||||
= link_to 'Edit', edit_member_path(@member)
|
|
||||||
= form_tag( destroy_member_session_path , {method: :delete } ) do
|
= 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}
|
%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
|
Sign out
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB |
Loading…
Reference in New Issue
Block a user