web/wp-content/themes/mozilla-builders/templates/components/articles/previews/preview--small_image.twig (15 lines of code) (raw):
<div class="relative flex-1 flex flex-col items-center gap-1 p-4 min-h-96">
<div class="relative z-20">
{% include 'components/articles/overline.twig' with { overline: post.categories[0] } %}
</div>
<h3 class="mt-3 type-headline-lg text-center text-balance leading-tighter">
<a class="before:absolute before:inset-0 before:z-10 hocus:before:shadow-inner" href="{{ post.link }}">{{ post.title }}</a>
</h3>
<p class="type-sans-sm text-center text-balance">{{ post.subtitle }}</p>
<div class="flex-1"></div>
<div class="mt-6 relative w-[80%] aspect-square {{ post.thumbnail.id ? '' : 'bg-gray' }}">
{% if post.thumbnail.id %}
{% include 'components/lazy-img.twig' with { img: get_image(post.thumbnail.id), class: '!absolute inset-0 max-w-full max-h-full m-auto' } %}
{% endif %}
</div>
</div>