templates/leaderboard/catchable/season-three.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Leaderboard Catchable{% endblock %}
{% block body %}
{% set fodder, common, uncommon, rare, epic, legendary, extreme = 1,2,3,4,5,6,7 %}
<div class="grid-container">
<div class="grid-x grid-padding-x">
<div class="small-12 cell">
<h1 style="text-align: center; margin-top: 75px;">Leaderboard</h1>
</div>
<div class="small-12 cell">
<div class="grid-container">
<div class="grid-x">
<div class="small-12 medium-6 cell">
<a href="{{ path('leaderboard_catchable_season_one', { domain: app_domain }) }}" style="border-radius: 5px; display: inline-block; padding: 5px 10px 5px 10px;color: #fff; font-weight: bold; margin-right: 5px;">Season 1</a>
<a href="{{ path('leaderboard_catchable_season_two', { domain: app_domain }) }}" style="border-radius: 5px; display: inline-block; padding: 5px 10px 5px 10px; color: #fff; font-weight: bold; margin-right: 5px;">Season 2</a>
<a href="{{ path('leaderboard_catchable_season_three', { domain: app_domain }) }}" style="border-radius: 5px; display: inline-block; padding: 5px 10px 5px 10px; background: #cd4243; color: #fff; font-weight: bold; margin-right: 5px;">Season 3</a>
<a href="{{ path('leaderboard_catchable_season_four', { domain: app_domain }) }}" style="border-radius: 5px; display: inline-block; padding: 5px 10px 5px 10px; color: #fff; font-weight: bold; margin-right: 5px;">Season 4</a>
</div>
<div class="small-12 medium-6 cell">
<h2 style="text-align: center;">Overall</h2>
</div>
</div>
</div>
</div>
<div class="small-12 medium-6 cell">
{# <div class="grid-x" style="background: #161b25; padding: 15px 10px 10px 10px; border-radius: 15px;">#}
{# <div class="small-12 cell">#}
{# <h3>Uncommon</h3>#}
{# </div>#}
{# {% set i = 1 %}#}
{# {% for nftMetadata in nftMetadatasByTier['Uncommon'] %}#}
{# <div class="small-12 large-4 cell">#}
{# {% include 'explorer/includes/asset-card.html.twig' with {'nftMetadata': nftMetadata, 'app': app} %}#}
{# {% if i == 1 %}#}
{# {% set background = 'goldenrod' %}#}
{# {% elseif i == 2 %}#}
{# {% set background = 'silver' %}#}
{# {% elseif i == 3 %}#}
{# {% set background = '#b15c10' %}#}
{# {% endif %}#}
{# <div style="height: 10px; background: {{ background }}; margin: 5px; border-radius: 15px;"></div>#}
{# {% set i = i + 1 %}#}
{# </div>#}
{# {% endfor %}#}
{# </div>#}
{# Remove highlighted element from the rest of the leaderboard #}
{% set nftMetadatasByTier = nftMetadatasByTier %}
{% for key, tier in nftMetadatasByTier %}
<div class="grid-x" style="background: #1a1a23; padding: 15px 10px 10px 10px; border-radius: 15px; margin-top: 15px;">
<div class="small-12 cell">
<h3>{{ key }}</h3>
</div>
{% for nftMetadata in tier %}
<div class="small-12 large-4 cell">
{% include 'explorer/includes/asset-card.html.twig' with {'nftMetadata': nftMetadata, 'app': app} %}
</div>
{% endfor %}
{% if tier|length < 3 %}
{% set tierPlaceholders = 3 - tier|length %}
{% for placeholder in 1..tierPlaceholders %}
<div class="small-12 large-4 cell">
<div class="nft-container-placeholder" style="height: 250px; margin: 5px; padding: 50px;">
<span style="font-size: 6em;">?</span>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% endfor %}
</div>
<div class="small-12 medium-3 cell">
<h3>Experience Points</h3>
{% for user in expLeaders %}
<div style="padding: 10px; background: #1a1a23; border-radius: 10px; margin-bottom: 5px;">
{{ loop.index }} <span style="font-weight: bold;">{{ user.experience|number_format(0,'.',',') }}</span> <span style="float: right;">
<a href="{{ path('user_profile', { userId: user.id, domain: app_domain }) }}">{{ user.username }}</a>
</span>
</div>
{% endfor %}
</div>
<div class="small-12 medium-3 cell">
<h3>Gear Score</h3>
{% for user in gearScoreLeaders %}
<div style="padding: 10px; background: #1a1a23; border-radius: 10px; margin-bottom: 5px;">
{{ loop.index }} <span style="font-weight: bold;">{{ user.gearScore|number_format(2,'.',',') }}</span>
<span style="float: right;">
<a href="{{ path('user_profile', { userId: user.user.id, domain: app_domain }) }}">{{ user.user.username }}</a>
</span>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}