{% extends "base.html" %}
{% block content %}

<div id="intro-box" class="permanently-dismissible-box mt-3">
    <div class="alert alert-primary alert-dismissible fade show" role="alert">
        <i class="fa-solid fa-circle-info"></i> <strong>What is Spothole?</strong><br/>Spothole is an aggregator of
        amateur radio spots from DX clusters and outdoor activity programmes. It's free for anyone to use and includes
        an API that developers can build other applications on. For more information, check out the <a href="/about"
                                                                                                       class="alert-link">"About"
        page</a>. If that sounds like nonsense to you, you can visit <a href="/about#faq" class="alert-link">the FAQ
        section</a> to learn more.
        <button type="button" id="intro-box-dismiss" class="btn-close" data-bs-dismiss="alert"
                aria-label="Close"></button>
    </div>
</div>

<div class="mt-3">
    <div id="settingsButtonRow" class="row mb-3">
        <div class="col-md-4 mb-3 mb-md-0">
            <div class="d-inline-flex gap-3">
                {% module Template("widgets/run_pause.html", web_ui_options=web_ui_options) %}
                <div class="d-inline-flex">{% raw web_ui_options["support_button_html"] %}</div>
            </div>
        </div>
        <div class="col-md-8 text-end">
            <div class="d-inline-flex gap-3">
                {% module Template("widgets/search.html", web_ui_options=web_ui_options) %}
                {% module Template("widgets/filters_display_data_buttons.html", web_ui_options=web_ui_options,
                show_data_button=web_ui_options["qrz_enabled"] or web_ui_options["hamqth_enabled"]) %}
            </div>
        </div>
    </div>

    <div id="filters-area" class="appearing-panel card mb-3">
        {% module Template("widgets/filters_area_header.html", web_ui_options=web_ui_options) %}
        <div class="card-body">
            <div class="row row-cols-1 g-4 mb-4 row-cols-md-3">
                <div class="col">
                    {% module Template("cards/bands.html", web_ui_options=web_ui_options) %}
                </div>
                <div class="col">
                    {% module Template("cards/sigs.html", web_ui_options=web_ui_options) %}
                </div>
                <div class="col">
                    {% module Template("cards/sources.html", web_ui_options=web_ui_options) %}
                </div>
            </div>
            <div class="row row-cols-1 row-cols-md-3 g-4">
                <div class="col">
                    {% module Template("cards/dx_continent.html", web_ui_options=web_ui_options) %}
                </div>
                <div class="col">
                    {% module Template("cards/de_continent.html", web_ui_options=web_ui_options) %}
                </div>
                <div class="col">
                    {% module Template("cards/modes.html", web_ui_options=web_ui_options) %}
                </div>
            </div>
        </div>
    </div>

    <div id="display-area" class="appearing-panel card mb-3">
        {% module Template("widgets/display_area_header.html", web_ui_options=web_ui_options) %}
        <div class="card-body">
            <div id="display-container" class="row row-cols-1 row-cols-md-4 g-4">
                <div class="col">
                    {% module Template("cards/time_zone.html", web_ui_options=web_ui_options) %}
                </div>
                <div class="col">
                    {% module Template("cards/number_of_spots.html", web_ui_options=web_ui_options) %}
                </div>
                <div class="col">
                    {% module Template("cards/color_scheme_and_band_color_scheme.html", web_ui_options=web_ui_options)
                    %}
                </div>
                <div class="col">
                    {% module Template("cards/table_columns_spots.html", web_ui_options=web_ui_options) %}
                </div>
                <div class="col">
                    {% module Template("cards/audio.html", web_ui_options=web_ui_options) %}
                </div>
            </div>
        </div>
    </div>

    <div id="data-area" class="appearing-panel card mb-3">
        {% module Template("widgets/data_area_header.html", web_ui_options=web_ui_options) %}
        <div class="card-body">
            <div class="row row-cols-1 row-cols-md-4 g-4">
                {% if web_ui_options["qrz_enabled"] %}
                <div class="col">
                    {% module Template("cards/qrz.html", web_ui_options=web_ui_options) %}
                </div>
                {% end %}
                {% if web_ui_options["hamqth_enabled"] %}
                <div class="col">
                    {% module Template("cards/hamqth.html", web_ui_options=web_ui_options) %}
                </div>
                {% end %}
                <div class="col">
                    {% module Template("cards/location.html", web_ui_options=web_ui_options) %}
                </div>
                <div class="col">
                    {% module Template("cards/worked_calls.html", web_ui_options=web_ui_options) %}
                </div>
            </div>
        </div>
    </div>

    <div id="table-container">
        <table id="table" class="table">
            <thead>
            <tr></tr>
            </thead>
            <tbody></tbody>
        </table>
    </div>

</div>

<script src="/static/js/spotsbandsandmap.js?v=1786726755"></script>
<script src="/static/js/spots.js?v=1786726755"></script>
<script>$(document).ready(function () {
    $("#nav-link-spots").addClass("active");
}); <!-- highlight active page in nav --></script>

{% end %}