new smal image section
This commit is contained in:
12
app/views/merged/view/_section_small_image.haml
Normal file
12
app/views/merged/view/_section_small_image.haml
Normal file
@ -0,0 +1,12 @@
|
||||
.flex.justify-center.p-8.flex-col.lg:flex-row{options(section , :margin , :background )}
|
||||
.flex.justify-center.h-60.w-full.overflow-hidden{order_option(section, "lg:w-1/3")}
|
||||
= image_for(section ,"object-cover")
|
||||
.columns-1.md:columns-2.max-w-full.items-center.w-full.max-w.px-6.mt-6.mx-auto{:class => "lg:w-2/3"}
|
||||
.flex-1{color_option(section)}
|
||||
%h2.text-4xl.font-bold.text-center.mb-4.lg:mb-8= section.header
|
||||
-if section.has_option?("subheader")
|
||||
%h4.text-xl.mt-4.lg:mt-8.md:text-2xl
|
||||
= section.option("subheader")
|
||||
.mt-3{ prose_classes }
|
||||
= markdown(section)
|
||||
=view_button(section , "my-2")
|
Reference in New Issue
Block a user