From e1d65e272d50d9868e1fe83429fb41c701cdece5 Mon Sep 17 00:00:00 2001 From: Torsten Date: Wed, 23 Nov 2022 19:12:38 +0200 Subject: [PATCH] add spacer --- app/views/sections/_section_half_right.haml | 6 +++--- app/views/sections/_section_spacer.haml | 1 + cms/index.yaml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 app/views/sections/_section_spacer.haml diff --git a/app/views/sections/_section_half_right.haml b/app/views/sections/_section_half_right.haml index f6ab054..eea8d84 100644 --- a/app/views/sections/_section_half_right.haml +++ b/app/views/sections/_section_half_right.haml @@ -1,5 +1,5 @@ -%section.overflow-hidden.bg-gray-50.sm:grid.sm:grid-cols-2 - .p-8.md:p-12.lg:px-16.lg:py-24 +%section.overflow-hidden.sm:grid.sm:grid-cols-2 + .p-8.m-5.bg-gray-50.md:p-12.lg:px-16.lg:py-24 .mx-auto.max-w-xl.text-center.sm:text-left %h2.text-2xl.font-bold.text-gray-900.md:text-3xl = section["header"] @@ -8,4 +8,4 @@ .mt-4.md:mt-8 -if section["button"] = render 'elements/button' , button: section["button"] - = image_for( section , "h-56 w-full object-cover sm:h-full") + = image_for( section , "p-5 h-56 w-full object-cover sm:h-full") diff --git a/app/views/sections/_section_spacer.haml b/app/views/sections/_section_spacer.haml new file mode 100644 index 0000000..b3a0f6b --- /dev/null +++ b/app/views/sections/_section_spacer.haml @@ -0,0 +1 @@ +.h-24 diff --git a/cms/index.yaml b/cms/index.yaml index b70e35e..8fdcffa 100644 --- a/cms/index.yaml +++ b/cms/index.yaml @@ -4,6 +4,7 @@ Only an hour west of Helsinki, the Feenix rises from an old sanatorium. The Hub is a place to create, learn and regenerate. image: house.jpg +- template: section_spacer - template: section_half_right header: Retreats text: