{% extends 'base.html' %} {% block title %}Strona główna | pdlzbs{% endblock %}
{% load static tailwind_tags tablepipe %} {% block content %}
<div class="flex flex-col lg:flex-row justify-center gap-8">
  <article
    class="basis-1/2 prose max-w-screen-sm mb-auto bg-white shadow-md rounded-md p-4"
  >
    {{ gpw.content | tablescroll | safe }}
  </article>
  <div class="basis-1/2 flex flex-col items-center gap-4">
    <h1
      class="text-[2.25rem] font-medium w-full text-center 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 w-full py-4 bg-white shadow-md rounded-md p-4"
    >
      {% if post.show_title %}
      <h2 class="font-medium">{{ post.title }}</h2>
      {% endif %}
      <div>{{ post.content | tablescroll | safe }}</div>
    </article>
    {% if not forloop.last %}
    <hr class="w-36 border-b border-stone-200" />
    {% endif %} {% endfor %}
  </div>
</div>
{% endblock %}
