merged/app/views/merged/view/_section_cards.haml
2023-01-25 01:15:51 +02:00

18 lines
768 B
Plaintext

%section.m-8.md:m-12.lg:m-20{ options(section , :background , :text_color)}
.flex.justify-center
- unless section.header.blank? and section.text.blank?
.px-4.py-16{ options(section , :text_align)}
- 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)
- template = "merged/view/cards/" + section.card_template
.grid{ column_option(section)}
- section.cards.each do |card|
= render( template , card: card)