View file Next v1.6/Шаблон (v1.6)/Next/widgets/wid/random_post.tpl

File size: 1.1Kb
<article class="relative w-full h-64 bg-cover bg-center group rounded-b-lg overflow-hidden shadow-lg hover:shadow-2xl  transition duration-300 ease-in-out"
                [xfnotgiven_poster_one]style="background-image: url('https://images.unsplash.com/photo-1623479322729-28b25c16b011?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1740&q=80');"[/xfnotgiven_poster_one]
				[xfgiven_poster_one] style="background-image: url('[xfvalue_image_url_poster_one]');"[/xfgiven_poster_one]
				
				>
                <div class="absolute inset-0 bg-black bg-opacity-50 group-hover:opacity-75 transition duration-300 ease-in-out"></div>
                <div class="relative w-full h-full px-4 sm:px-6 lg:px-4 flex justify-center items-center">
                    <h3 class="text-center">
                        <a class="text-white text-2xl font-bold text-center" href="{full-link}">
                            <span class="absolute inset-0"></span>
                            {title}
                        </a>
                    </h3>
                </div>
</article>