{% extends 'base.html' %} {% block title %}Strona główna | labs{% endblock %}
{% load static tailwind_tags wysiwyg %} {% block content %}
<div class="flex flex-col gap-8 justify-center lg:flex-row">
  <div class="flex flex-col gap-4 items-center basis-1/3">
    {% for post in posts %}
    <article
      class="p-4 py-4 w-full max-w-sm bg-white rounded-md shadow-lg prose"
    >
      {% if post.show_title %}
      <h2 class="font-medium">{{ post.title }}</h2>
      {% endif %}
      <div>{% content post %}</div>
      <div class="flex flex-wrap gap-4 justify-center items-center">
        {% buttons post.buttons %}
      </div>
    </article>
    {% if not forloop.last %}
    <hr class="w-36 border-b border-stone-200" />
    {% endif %} {% endfor %}
  </div>
</div>
{% endblock %}
