templates_common/blocks/hero.html.twig line 1
<section><div class="container px-4"><div class="flex flex-col lg:flex-row"><div class="basis-[37%] p-4 border border-[#ebecee] text-justify dark:border-black dark:text-black dark:text-[120%]">{% include current_request.domain ~'/hero.'~ app.request.locale ~'.html.twig' %}</div><div class="md:px-4 basis-[63%] grow flex flex-col place-content-between">{% for post in posts %}<a href="{{ path('app_post_show', {'id': post.id}) }}"class="news-entity relative news-entity2 flex flex-col lg:flex-row items-center max-lg:px-0">{% if post.attachments|first == true and post.attachments|first.path is not empty and current_request.domain != 'qr-pib.kz' %}<img class="block lg:mr-4 max-lg:w-full max-lg:mb-4 md:max-w-[300px]"src="{% if post.attachments|first %}{{ asset(post.attachments|first.path) | imagine_filter('my_thumb') }} {% else %}/images/default.jpg{% endif %}"alt="">{% else %}<img class="block lg:mr-4 max-lg:w-full max-lg:mb-4 md:max-w-[300px]"src="{% if post.attachments|first %}{{ asset('/images/attachments/'~post.attachments|first.imageName) | imagine_filter('my_thumb') }} {% else %}/images/default.jpg{% endif %}"alt="">{% endif %}<div class="lg:border-b lg:pr-12 dark:border-none w-full"><h4 class="font-extrabold">{{ post.title|striptags|u.truncate(100, '...')|raw }}</h4><time class="block my-1 text-[#999fab] dark:text-[120%] dark:text-black dark:font-bold"datetime="">{{ post.publishedAt ? post.publishedAt|date('d.m.Y') : '' }}</time><p class="text-[#999FAB] dark:hidden">{{ post.content|trim|striptags|u.truncate(70, '...')|raw }}</p></div></a>{% else %}{{ 'No news'|trans }}{% endfor %}</div></div>{% include 'blocks/morenewsbutton.html.twig' %}</div></section>