39 lines
1.3 KiB
HTML
39 lines
1.3 KiB
HTML
{% extends 'base.html' %}
|
|
<!---->
|
|
{% block title %}Składki Członkowskie | pdlzbs{% endblock %}
|
|
<!---->
|
|
{% load static tailwind_tags %} {% block content %}
|
|
<h1 class="text-[2.25rem] font-extrabold text-center mb-4">Inne turnieje</h1>
|
|
{% if tournaments %}
|
|
<div class="flex flex-col items-center gap-4">
|
|
{% for tournament in tournaments %}
|
|
<article
|
|
class="prose prose-a:text-center bg-white rounded-md shadow-md p-4 pb-6"
|
|
>
|
|
{% if tournament.title %}
|
|
<h2>{{ tournament.title }}</h2>
|
|
{% endif %}
|
|
<figure>
|
|
<a href="{{ tournament.link }}" target="_blank"
|
|
><img src="{{ tournament.photo.url }}" alt="" class="max-h-72 mx-auto"
|
|
/></a>
|
|
<figcaption>{{ tournament.content | safe }}</figcaption>
|
|
</figure>
|
|
<p class="text-center">
|
|
<a
|
|
href="{{ tournament.link }}"
|
|
target="_blank"
|
|
class="transition ease-in-out duration-300 px-4 py-3 rounded-md shadow-md font-semibold no-underline border border-red-200 bg-red-100 hover:border-red-300 hover:bg-red-200"
|
|
>
|
|
Wyniki
|
|
</a>
|
|
</p>
|
|
</article>
|
|
{% if not forloop.last %}
|
|
<hr class="w-36 border-b border-stone-200" />
|
|
{% endif %} {% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<h2 class="text-xl text-center">Brak turniejów</h2>
|
|
{% endif %} {% endblock %}
|