new card style
This commit is contained in:
parent
badcd70aeb
commit
ca19287463
BIN
app/assets/images/merged/card_preview/card_gap_square.png
Normal file
BIN
app/assets/images/merged/card_preview/card_gap_square.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 26 KiB |
@ -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")
|
||||
.mt-8.md:mt-8
|
||||
= render 'merged/view/elements/button' , section: section
|
||||
|
8
app/views/merged/view/cards/_card_gap_square.haml
Normal file
8
app/views/merged/view/cards/_card_gap_square.haml
Normal 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
|
@ -85,6 +85,19 @@ cards:
|
||||
- background
|
||||
- color
|
||||
- align
|
||||
- template: card_gap_square
|
||||
header: Narrow card with up down section
|
||||
text: Smaller image, large margins, possible subheader
|
||||
Order turns it upside down, image bottom
|
||||
fields:
|
||||
- header
|
||||
- text
|
||||
options:
|
||||
- background
|
||||
- color
|
||||
- order
|
||||
- align
|
||||
- subheader
|
||||
- template: card_normal_square
|
||||
header: Standard card with square image
|
||||
text: Image, header, text, normal stuff
|
||||
|
Loading…
Reference in New Issue
Block a user