PaiGram/resources/genshin/player_card/constellations.html
洛水居室 a046b22f3a
添加角色卡片插件
Co-authored-by: Li Chuangbo <im@chuangbo.li>
Co-authored-by: xtaodada <xtao@xtaolink.cn>
Co-authored-by: luoshuijs <luoshuijs@outlook.com>
2022-09-09 22:50:17 +08:00

14 lines
495 B
HTML

<div class="flex-1 flex items-end justify-center">
<div class="flex pb-2">
{% for item in character.constellations %}
<div
class="w-16 h-16 flex items-center justify-center bg-contain bg-no-repeat bg-center
{%- if not item.unlocked %} grayscale opacity-75 {% endif %}"
style="background-image: url('img/talent-{{ character.element.name | lower }}.png')"
>
<img src="{{ item.icon.url }}" alt="" class="w-8 h-8" />
</div>
{% endfor %}
</div>
</div>