tweaks layout
This commit is contained in:
parent
f0dbd3c95c
commit
dfbab99ca7
@ -1,4 +1,4 @@
|
||||
%a.group.overflow-hidden.relative.flex.h-96.w-full.items-end.bg-black{:href => "#"}
|
||||
.group.m-4.overflow-hidden.relative.flex.h-96.items-end.bg-black
|
||||
= image_for( element , "absolute inset-0 h-full w-full object-cover hover:scale-110 ease-in duration-700")
|
||||
.relative.w-full.bg-cyan-600.m-2.p-4.text-center.tracking-widest.text-white.transition-colors.group-hover:bg-cyan-700{:class => "sm:w-1/2"}
|
||||
%h3.text-lg.uppercase
|
||||
|
@ -6,6 +6,6 @@
|
||||
%p.mt-4.text-gray-500
|
||||
= section["text"]
|
||||
- template = "cards/" + section["element_template"]
|
||||
.grid.grid-cols-2.gap-4
|
||||
.grid.grid-cols-1.md:grid-cols-2
|
||||
- section["elements"].each do |element|
|
||||
= render( template , element: element)
|
||||
|
Loading…
Reference in New Issue
Block a user