PaiGram/resources/genshin/player_card/weapon.html
洛水居室 84b927eefc
Update player_card module
Co-authored-by: CWorld <37377181+cworld1@users.noreply.github.com>
2023-02-11 16:33:42 +08:00

20 lines
683 B
HTML

<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>