mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-27 04:38:50 +01:00
feat(web): launch commander browser with deck builder CTA
This commit is contained in:
parent
6e9ba244c9
commit
8e57588f40
27 changed files with 1960 additions and 45 deletions
|
|
@ -11,3 +11,19 @@
|
|||
{{ '🔒 Unlock' if locked else '🔓 Lock' }}
|
||||
</button>
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro color_identity(colors, is_colorless=False, aria_label='', title_text='') -%}
|
||||
<div class="color-identity" role="img"
|
||||
aria-label="{{ aria_label }}"
|
||||
data-colorless="{{ '1' if is_colorless or not (colors and colors|length) else '0' }}"
|
||||
{% if title_text %}title="{{ title_text }}"{% endif %}>
|
||||
{% if colors and colors|length %}
|
||||
{% for color in colors %}
|
||||
<span class="mana mana-{{ color }}" aria-hidden="true"></span>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<span class="mana mana-C" aria-hidden="true"></span>
|
||||
{% endif %}
|
||||
<span class="sr-only">{{ aria_label }}</span>
|
||||
</div>
|
||||
{%- endmacro %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue