more option work
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
.flex.flex-col{ options(section , :background , :color , :margin)}
|
||||
.flex.items-center.justify-center.flex-1
|
||||
.max-w-prose.px-4.py-16.mx-auto.text-center
|
||||
.max-w-prose.px-4.py-16.mx-auto.text-center{options(section , :align , :color)}
|
||||
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
||||
= section.header
|
||||
-if section.has_option?("subheader")
|
||||
%h4.text-xl.mt-10.md:text-2xl
|
||||
= section.option("subheader")
|
||||
%p.mt-4.text-lg.pt-10
|
||||
= section.text
|
||||
= section.text.html_safe
|
||||
|
@ -1,8 +1,11 @@
|
||||
.flex.justify-center.h-96.p-8{margin_option(section )}
|
||||
.flex.justify-center.h-96.p-8{options(section , :margin , :background )}
|
||||
.flex.items-center.w-full.overflow-hidden{order_option(section, "w-2/3")}
|
||||
= image_for(section ,"")
|
||||
.flex.items-center.w-full.max-w-md.px-6.mx-auto{:class => "w-1/3"}
|
||||
.flex-1{color_option(section)}
|
||||
.text-center
|
||||
%h2.text-4xl.font-bold.text-center.mb-8= section.header
|
||||
-if section.has_option?("subheader")
|
||||
%h4.text-xl.mt-10.md:text-2xl
|
||||
= section.option("subheader")
|
||||
%p.mt-3= section.text
|
||||
|
Reference in New Issue
Block a user