Change search result appearance

This commit is contained in:
marc
2025-04-27 22:47:52 +02:00
parent bc3d98aba2
commit 4911935cdf
3 changed files with 30 additions and 44 deletions

View File

@@ -0,0 +1,28 @@
<li class="flex flex-col
items-center
m-4 rounded-lg
bg-white">
<div class="py-2 px-4 text-brown font-bold">
<a href="/tema/{{ tema.id }}">
{{ tema.title }}
</a>
</div>
{% if tema.main_score() and tema.main_score().preview_url %}
<a href="/tema/{{ tema.id }}"
class="max-w">
<img class="p-2 max-w"
src="{{ tema.main_score().preview_url }}" />
</a>
{% endif %}
{% if tema.properties %}
<ul class="flex flex-wrap text-sm
py-2 px-4">
{% for property in tema.properties %}
<div class="bg-beige text-white rounded
m-1 px-2">
{{ property.value }}
</div>
{% endfor %}
</ul>
{% endif %}
</li>