more sections
This commit is contained in:
parent
6bf63746f3
commit
2638be4ad1
10
app/views/sections/_section_full_up.haml
Normal file
10
app/views/sections/_section_full_up.haml
Normal file
@ -0,0 +1,10 @@
|
||||
.flex.flex-col.bg-white
|
||||
%img.object-cover.w-full.h-96{:alt => "", :src => "https://images.unsplash.com/photo-1558769132-cb1aea458c5e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1548&q=80"}/
|
||||
.flex.items-center.justify-center.flex-1
|
||||
.max-w-xl.px-4.py-8.mx-auto.text-center
|
||||
%h1.text-2xl.font-bold.tracking-tight.text-gray-900.sm:text-4xl
|
||||
= section["header"]
|
||||
%p.mt-4.text-gray-500
|
||||
= section["text"]
|
||||
%a.inline-block.px-5.py-3.mt-6.text-sm.font-medium.text-white.bg-indigo-600.rounded.hover:bg-indigo-700.focus:outline-none.focus:ring{:href => "#"}
|
||||
= section["button"]["text"]
|
14
app/views/sections/_section_half_header.haml
Normal file
14
app/views/sections/_section_half_header.haml
Normal file
@ -0,0 +1,14 @@
|
||||
%section
|
||||
.mx-auto.max-w-screen-xl.px-4.py-16.sm:px-6.sm:py-24.lg:px-8
|
||||
.max-w-3xl
|
||||
%h2.text-3xl.font-bold.sm:text-4xl
|
||||
= section["header"]
|
||||
.mt-8.grid.grid-cols-1.gap-8.lg:grid-cols-2.lg:gap-16
|
||||
.relative.h-64.overflow-hidden.sm:h-80.lg:h-full
|
||||
%img.absolute.inset-0.h-full.w-full.object-cover{:alt => "Party", :src => "https://images.unsplash.com/photo-1496843916299-590492c751f4?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1771&q=80"}/
|
||||
.lg:py-16
|
||||
%article.space-y-4.text-gray-600
|
||||
%p
|
||||
= section["text"]
|
||||
%p
|
||||
= section["text"]
|
10
cms/makerspace.yaml
Normal file
10
cms/makerspace.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
- template: section_full_up
|
||||
header: Makerspace
|
||||
text:
|
||||
The hub encourages all people to be creative in any way they choose.
|
||||
We provide facilities from more traditional sowing and woodworking,
|
||||
to modern 3d printers and electronics lab.
|
||||
button:
|
||||
text: Makerspace
|
||||
link: makerspace
|
||||
image: makerspace.webp
|
Loading…
Reference in New Issue
Block a user