{% extends "jinja/types/page.html" %}

{% set title %}FAQ{% endset %}

{% block content %}
    <div class="row text-center mb-2">
        <h1 class="text-primary display-1">
            Frequently asked questions
        </h1>
    </div>

    {% for faq in config.FAQS.items() %}
        <div class="row">
            <div class="col-1">
            </div>

            <a class="btn btn-primary text-center" data-bs-toggle="collapse"
                   href="#{{ faq[1][0] }}" role="button" aria-expanded="false"
                    aria-controls="{{ faq[1][0] }}">
                <h2>{{ faq[0] }}</h2>
            </a>

            <div class="collapse" id="{{ faq[1][0] }}">
                <div class="card card-body text-center">
                    {{ faq[1][1] }}
                </div>
            </div>

            <div class="col-1">
            </div>
        </div>

        <hr class="invisible">
    {% endfor %}
{% endblock %}

