2023-01-25 01:15:51 +02:00
|
|
|
%section.m-8.md:m-12.lg:m-20{ options(section , :background , :text_color)}
|
2023-01-01 14:33:12 +02:00
|
|
|
.flex.justify-center
|
2023-01-05 17:47:50 +02:00
|
|
|
- unless section.header.blank? and section.text.blank?
|
2023-01-25 01:15:51 +02:00
|
|
|
.px-4.py-16{ options(section , :text_align)}
|
2023-01-05 17:47:50 +02:00
|
|
|
- unless section.header.blank?
|
|
|
|
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
|
|
|
= section.header
|
|
|
|
- if section.has_option?("subheader")
|
|
|
|
%h2.text-xl.pt-10.font-bold.tracking-tight.sm:text-2xl
|
|
|
|
= section.option("subheader")
|
|
|
|
- unless section.text.blank?
|
|
|
|
.text-lg.pt-10{ prose_classes }
|
|
|
|
= markdown(section)
|
2022-12-02 11:10:38 +02:00
|
|
|
- template = "merged/view/cards/" + section.card_template
|
2022-12-05 12:52:22 +02:00
|
|
|
.grid{ column_option(section)}
|
2022-12-05 18:14:56 +02:00
|
|
|
- section.cards.each do |card|
|
|
|
|
= render( template , card: card)
|