MibooGram/resources/genshin/player_card/weapon.jinja2
洛水居室 eed418477f
♻️ Rename HTML templates to use .jinja2 extension
Previously, all templates were named with the .html extension, which caused problems for editors to recognize the Jinja2 syntax used in them. In this commit, all templates have been renamed to use the .jinja2 extension to better reflect their use of Jinja2 and to improve editor recognition.
2023-05-09 19:19:32 +08:00

20 lines
683 B
Django/Jinja

<div
class="flex-1 flex items-center bg-black bg-opacity-20 rounded-lg bg-contain bg-no-repeat"
style="background-image: url('{{ weapon.detail.icon.url }}')"
>
<div
class="flex-1 p-4 flex flex-col items-end justify-center h-full space-y-1"
>
<div class="text-2xl">{{ weapon.detail.name }}</div>
<div class="star star-{{ weapon.detail.rarity }}"></div>
<div class="flex space-x-3 items-center">
<div class="italic">Lv.{{ weapon.level }}</div>
<div
class="rounded px-2 text-base {% if weapon.refinement == 5 %} bg-red-600 {% else %} bg-gray-600 {% endif %}"
>
{{ weapon.refinement }}
</div>
</div>
</div>
</div>