{% extends 'base.html' %}
<!---->
{% block title %}Liga | pdlzbs{% endblock %}
<!---->
{% load static tailwind_tags %} {% block content %}
<h1 class="text-[2.25rem] font-extrabold text-center mb-4">Wyniki III ligi</h1>
{% if leagues %}
<ul class="flex flex-col items-center gap-4">
  {% for league in leagues %}
  <li>
    <a
      href="{{ league.link }}"
      target="_blank"
      rel="noreferrer noopener"
      class="transition ease-in-out duration-300 inline-block px-4 py-3 rounded-md shadow-md border font-semibold {% if forloop.counter0|divisibleby:2 %}border-pink-200 bg-pink-100 hover:border-pink-300 hover:bg-pink-200 {% else %} border-rose-200 bg-rose-100 hover:border-rose-300 hover:bg-rose-200{% endif %}"
    >
      <h2>Wyniki III ligi DMP {{ league.year }}-{{ league.year | add:"1" }}</h2>
    </a>
  </li>
  {% endfor %}
</ul>
{% else %}
<h2 class="py-4 text-xl text-center">Brak wyników</h2>
{% endif %} {% endblock %}
