{% extends "base.html" %}
{% load static %}

{% block extra_css %}
{% endblock %}

{% block body_class %}{% endblock %}

{% block content %}
  {% include "header.html" %}
  <main class="bg-white 2xl:px-1 px-0 space-y-1 relative top-[68px] min-h-[calc(100vh-88px)] pb-[80px] container mx-auto max-w-screen-md">

    <div class="py-10 grid gap-2">  
    {% for referenz in referenzList %}
      <a href="/projekt/{{ referenz.filename }}/" class="border-b-2 last:border-b-0">
      <div class="p-1 hover:bg-gray-200">
        <div class="flex items-center space-x-2">
          <h2 class="font-bold text-3xl">{{ referenz.title }}</h2>
      
          {% for tag in referenz.tags %}
          <div class="px-2 py-0.5 rounded-lg bg-petrol-500 text-white text-sm">
            {{ tag }}
          </div>
          {% endfor %}
        </div>
        <div>
          <table class="text-left text-base text-gray-400">
            <tr>
              <th class="">Beschreibung:</th>
              <td>{{ referenz.short_description }}</td>
            </tr>
            <tr>
              <th class="">Auftraggeber:in:</th>
              <td>{{ referenz.participant }}</td>
            </tr>
            <tr>
              <th class="">Projektzeitraum:</th>
              <td>{{ referenz.time }}</td>
            </tr>
          </table>
        </div>
      </div></a>
    {% endfor %}
    </div>
      
    </main>
  {% endblock %}