new card style

This commit is contained in:
2022-12-07 21:11:02 +02:00
parent badcd70aeb
commit ca19287463
5 changed files with 23 additions and 2 deletions

View File

@ -13,6 +13,6 @@
-if section.has_option?("text")
%p.mt-8.md:block
= section.option("text")
.mt-8.md:mt-8
-if section.has_option?("button_text")
-if section.has_option?("button_text")
.mt-8.md:mt-8
= render 'merged/view/elements/button' , section: section

View File

@ -0,0 +1,8 @@
.grid.grid-cols-1.gap-16.m-16
%div{ order_option(card)}
= image_for( card , "h-70 w-full object-cover grid")
%div.grid.h-70{options(card , :align , :color , :background )}
%h3.p-4.mt-10.text-3xl.font-bold= card.header
-if card.has_option?("subheader")
%h4.p-4.text-xl= card.option("subheader")
%p.m-10= card.text