tweaks layout

This commit is contained in:
Torsten 2022-11-24 14:24:20 +02:00
parent f0dbd3c95c
commit dfbab99ca7
2 changed files with 2 additions and 2 deletions

View File

@ -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") = 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"} .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 %h3.text-lg.uppercase

View File

@ -6,6 +6,6 @@
%p.mt-4.text-gray-500 %p.mt-4.text-gray-500
= section["text"] = section["text"]
- template = "cards/" + section["element_template"] - template = "cards/" + section["element_template"]
.grid.grid-cols-2.gap-4 .grid.grid-cols-1.md:grid-cols-2
- section["elements"].each do |element| - section["elements"].each do |element|
= render( template , element: element) = render( template , element: element)