2022-12-13 19:27:48 +02:00
|
|
|
- content_for( :merged_menu ) do
|
|
|
|
.text-xl.font-bold.text-gray-900
|
|
|
|
Section styles
|
|
|
|
|
2022-12-13 19:16:11 +02:00
|
|
|
= render "layouts/merged_header"
|
|
|
|
|
2022-11-29 15:57:10 +02:00
|
|
|
.grid.grid-cols-3.gap-4.m-8
|
2022-12-10 20:29:31 +02:00
|
|
|
-@section_styles.each do | style|
|
2022-11-29 15:57:10 +02:00
|
|
|
%article.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm
|
2022-11-29 17:59:04 +02:00
|
|
|
=image_tag(style.section_preview , class: "h-56 w-full object-contain lg:h-72")
|
2022-11-29 15:57:10 +02:00
|
|
|
%p.mt-2.text-sm.text-gray-500
|
|
|
|
=style.template
|
|
|
|
%article.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm
|
|
|
|
.p-6
|
|
|
|
%h3.text-lg.font-medium.text-gray-900
|
|
|
|
=style.header
|
|
|
|
%p.mt-2.text-sm.leading-relaxed.text-gray-500.line-clamp-3
|
|
|
|
= style.text
|
|
|
|
%article.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm
|
|
|
|
.p-6
|
|
|
|
%h3.text-lg.font-medium.text-gray-900
|
|
|
|
Option
|
|
|
|
%p.mt-2.text-sm.leading-relaxed.text-gray-500.line-clamp-3
|
|
|
|
Following options: none (wip)
|
|
|
|
%h3.text-lg.font-medium.text-gray-900
|
|
|
|
Cards
|
|
|
|
%p.mt-2.text-sm.leading-relaxed.text-gray-500.line-clamp-3
|
2022-12-08 17:16:29 +02:00
|
|
|
-if(style.has_cards?)
|
2022-11-29 15:57:10 +02:00
|
|
|
Section may include cards. See card styles below
|
|
|
|
-else
|
|
|
|
Section may not include cards
|
2022-11-29 17:59:04 +02:00
|
|
|
|
|
|
|
.px-4.py-8.mx-auto.text-center
|
|
|
|
%h1.text-4xl.font-bold
|
|
|
|
Card styles
|
|
|
|
.grid.grid-cols-3.gap-4.m-8
|
2022-12-10 20:29:31 +02:00
|
|
|
-@cards_styles.each do |style|
|
2022-11-29 17:59:04 +02:00
|
|
|
%article.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm
|
|
|
|
=image_tag(style.card_preview , class: "h-56 w-full object-contain lg:h-72")
|
|
|
|
%p.mt-2.text-sm.text-gray-500
|
|
|
|
=style.template
|
|
|
|
%article.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm
|
|
|
|
.p-6
|
|
|
|
%h3.text-lg.font-medium.text-gray-900
|
|
|
|
=style.header
|
|
|
|
%p.mt-2.text-sm.leading-relaxed.text-gray-500.line-clamp-3
|
|
|
|
= style.text
|
|
|
|
%article.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm
|
|
|
|
.p-6
|
|
|
|
%h3.text-lg.font-medium.text-gray-900
|
|
|
|
Option
|
|
|
|
%p.mt-2.text-sm.leading-relaxed.text-gray-500.line-clamp-3
|
|
|
|
Following options: none (wip)
|