style overview, sections only for now

This commit is contained in:
2022-11-29 15:57:10 +02:00
parent 4136eaf282
commit 15ef3c34fd
12 changed files with 105 additions and 6 deletions

View File

@ -1,9 +1,12 @@
Merged::Engine.routes.draw do
get "/styles/index" , to: "styles#index"
resources :pages do
resources :sections do
get :select_image
get :set_image
get :select_template
get :set_template
end
end
resources :images

21
config/styles.yaml Normal file
View File

@ -0,0 +1,21 @@
- template: section_2_col
header: Two column layout with header
text: A header with text and two column layout. Columns have a little gap, so
background color comes through.
cards: true
- template: section_full_up
header: Centered Header with text
text: Full width header with centered headline and optional text
- template: section_half_right
header: Split section image right
text: Image right, header and text on the left. Optional button.
- template: section_full_left2
header: Full image header, text left
text: Large picture background with Header and text towards the left.
Text is slightly shaded for readability
- template: section_half_left
header: Split section image left
text: Image left, header and text on the right. Optional button.
- template: section_spacer
header: Spacer
text: Just for extra padding