{% extends "pages/index.html" %}
{% block content %}
<main style="position:relative">

  <!-- Server-provided stage states for the overlay -->
  <script>
    window.__STAGES__ = [
      {% for stage in stages %}
        {"code": "{{stage.code}}", "status": "{{stage.status}}"}{{ "," if not loop.last else "" }}
      {% endfor %}
    ];
  </script>

  {% include "components/flight_controls.html" %}

  {% if LITE %}
    <!-- Leaflet -->
    <link
      rel="stylesheet"
      href="https://unpkg.com/leaflet@1.9