{% extends 'base.html' %} {% block title %}Strona główna | pdlzbs{% endblock %}
{% load static tailwind_tags %} {% block content %}
<div class="flex flex-col lg:flex-row gap-8">
  <article
    class="basis-3/5 mb-auto prose max-w-full bg-white shadow-md rounded-md p-4"
  >
    <h1>Grand Prix Województwa</h1>
    {{ gpw.content | safe }}
  </article>
  <div class="flex flex-col items-center gap-4">
    <h1
      class="text-[2.25rem] font-medium w-full lg:text-right bg-white shadow-md rounded-md px-4 py-2"
    >
      Aktualności PodlZBS
    </h1>
    <hr class="w-36 border-b border-stone-300 border-dashed" />
    {% for post in posts %}
    <article class="prose max-w-full py-4 bg-white shadow-md rounded-md p-4">
      <h2 class="text-center">{{ post.title }}</h2>
      <div>{{ post.content | safe }}</div>
    </article>
    {% if not forloop.last %}
    <hr class="w-36 border-b border-stone-200" />
    {% endif %} {% empty %}
    <h2 class="py-4 text-xl text-center">Więcej wpisów nie ma</h2>
    {% endfor %}
  </div>
</div>
{% endblock %}
