gateway/app/views/sections/_section_2_col.haml

12 lines
446 B
Plaintext
Raw Normal View History

.flex.flex-col.bg-cyan-100.mx-5
.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
= section["header"]
%p.mt-4.text-gray-500
= section["text"]
- template = "cards/" + section["card_template"]
2022-11-24 13:24:20 +01:00
.grid.grid-cols-1.md:grid-cols-2
- section["cards"].each do |element|
= render( template , element: element)