changed card and section style to active_yaml (because of entanglement :-)

This commit is contained in:
2022-12-10 20:29:31 +02:00
parent d936fc05ab
commit 04e189f913
16 changed files with 51 additions and 70 deletions

View File

@ -1,5 +1,5 @@
.grid.grid-cols-4.gap-2.m-8
- @cards.each do |name ,style|
- @cards.each do |style|
.relative.block.border.border-gray-100
= link_to( section_set_card_template_path( card_template: style.template )) do
=image_tag(style.card_preview , class: "h-56 w-full object-contain lg:h-72")

View File

@ -9,7 +9,7 @@
Select Template for Section #{@section.index + 1}
.grid.grid-cols-4.gap-2.m-8
- @sections.each do |name , style|
- @sections.each do |style|
.relative.block.border.border-gray-100
= link_to( section_set_template_path( template: style.template )) do
=image_tag(style.section_preview , class: "h-56 w-full object-contain lg:h-72")

View File

@ -2,7 +2,7 @@
%h1.text-4xl.font-bold
Section styles
.grid.grid-cols-3.gap-4.m-8
-@sections.each do |name , style|
-@section_styles.each do | style|
%article.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm
=image_tag(style.section_preview , class: "h-56 w-full object-contain lg:h-72")
%p.mt-2.text-sm.text-gray-500
@ -31,7 +31,7 @@
%h1.text-4xl.font-bold
Card styles
.grid.grid-cols-3.gap-4.m-8
-@cards.each do |name , style|
-@cards_styles.each do |style|
%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