column number option for 2_col, also bg

This commit is contained in:
2022-12-05 12:52:22 +02:00
parent 7728767b3d
commit 6911540d30
3 changed files with 30 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.flex.flex-col.bg-cyan-100.mx-5
.flex.flex-col.mx-5{ background_option(section)}
.flex.items-center.justify-center.flex-1
.max-w-prose.px-4.py-8.mx-auto.text-center
%h1.text-2xl.font-bold.tracking-tight.text-gray-900.sm:text-4xl
@ -6,6 +6,6 @@
%p.mt-4.text-gray-500
= section.text
- template = "merged/view/cards/" + section.card_template
.grid.grid-cols-1.md:grid-cols-2
.grid{ column_option(section)}
- section.cards.each do |element|
= render( template , element: element)