new smal image section

This commit is contained in:
2023-01-18 17:24:21 +02:00
parent 2974b43bde
commit 22426c4bdf
5 changed files with 56 additions and 2 deletions

View 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")