forked from brooksbingham/theme-elegance
refactor: update hero banner styles for smaller screens
parent
7281d23cf8
commit
abb29ba152
|
@ -29,11 +29,11 @@
|
|||
{foreach from=$homeslider.slides item=slide name='homeslider'}
|
||||
<li class="carousel-item {if $smarty.foreach.homeslider.first}active{/if}" role="option" aria-hidden="{if $smarty.foreach.homeslider.first}false{else}true{/if}">
|
||||
<a href="{$slide.url}">
|
||||
<figure class="relative h-screen bg-gray-50">
|
||||
<figure class="relative h-auto lg:h-screen bg-gray-50">
|
||||
<img class="w-full h-full object-contain md:object-cover" src="{$slide.image_url}" alt="{$slide.legend|escape}">
|
||||
{if $slide.title || $slide.description}
|
||||
<figcaption class="caption absolute left-16 md:left-1/2 bottom-0 top-0 right-16 flex flex-col justify-center">
|
||||
<h2 class="text-xl md:text-2xl lg:text-4xl xl:text-6xl font-bold mb-4">{$slide.title}</h2>
|
||||
<figcaption class="caption absolute max-md:w-max left-1/2 md:left-1/2 bottom-0 top-0 right-1/5 flex flex-col justify-center">
|
||||
<h2 class="text-xl max-sm:max-w-[70%] md:text-2xl lg:text-4xl xl:text-6xl font-bold mb-4">{$slide.title}</h2>
|
||||
<div class="text-sm md:text-base font-medium">{$slide.description nofilter}</div>
|
||||
</figcaption>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in New Issue