Spaces:
Sleeping
Sleeping
| {% extends "base.html" %} | |
| {% block title %}Telescopes - Cosmopedia{% endblock %} | |
| {% block content %} | |
| <div class="container-fluid" style="padding-top: 100px; max-width: 1400px;"> | |
| <!-- Header Section --> | |
| <div class="row mb-5"> | |
| <div class="col-12"> | |
| <div class="text-center mb-4"> | |
| <h1 class="text-gradient mb-3"> | |
| <i class="fas fa-telescope me-3"></i>Telescopes | |
| </h1> | |
| <p class="lead text-light">Explore the instruments that reveal the universe</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Search and Filter Controls --> | |
| <div class="row mb-5 justify-content-center"> | |
| <div class="col-lg-10"> | |
| <div class="card bg-glass border-0 p-4"> | |
| <div class="row g-3"> | |
| <div class="col-md-4"> | |
| <div class="input-group"> | |
| <span class="input-group-text bg-dark border-0 text-primary"> | |
| <i class="fas fa-search"></i> | |
| </span> | |
| <input type="text" id="telescopeSearch" class="form-control bg-dark border-0 text-light" | |
| placeholder="Search telescopes..." style="box-shadow: none;"> | |
| </div> | |
| </div> | |
| <div class="col-md-2"> | |
| <select id="countryFilter" class="form-select bg-dark border-0 text-light"> | |
| <option value="">All Countries</option> | |
| </select> | |
| </div> | |
| <div class="col-md-2"> | |
| <select id="typeFilter" class="form-select bg-dark border-0 text-light"> | |
| <option value="">All Types</option> | |
| <option value="ground-based">Ground-based</option> | |
| <option value="space-based">Space-based</option> | |
| <option value="radio">Radio</option> | |
| <option value="infrared">Infrared</option> | |
| <option value="x-ray">X-ray</option> | |
| </select> | |
| </div> | |
| <div class="col-md-2"> | |
| <select id="statusFilter" class="form-select bg-dark border-0 text-light"> | |
| <option value="">All Status</option> | |
| <option value="operational">Operational</option> | |
| <option value="decommissioned">Decommissioned</option> | |
| <option value="under construction">Under Construction</option> | |
| </select> | |
| </div> | |
| <div class="col-md-2"> | |
| <button id="clearFilters" class="btn btn-outline-primary w-100"> | |
| <i class="fas fa-times me-1"></i>Clear | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Loading State --> | |
| <div id="loadingState" class="text-center py-5"> | |
| <div class="spinner-border text-primary" role="status"> | |
| <span class="visually-hidden">Loading...</span> | |
| </div> | |
| <p class="mt-3">Loading telescopes...</p> | |
| </div> | |
| <!-- Results Count --> | |
| <div id="resultsCount" class="text-center mb-4" style="display: none;"> | |
| <p class="text-muted">Found <span id="telescopeCount">0</span> telescope(s)</p> | |
| </div> | |
| <!-- Telescopes Grid --> | |
| <div id="telescopesGrid" class="row g-4" style="display: none;"> | |
| <!-- Telescopes will be loaded here --> | |
| </div> | |
| <!-- Empty State --> | |
| <div id="emptyState" class="text-center py-5" style="display: none;"> | |
| <div class="empty-state"> | |
| <i class="fas fa-search fa-3x text-muted mb-3"></i> | |
| <h4>No Telescopes Found</h4> | |
| <p>Try adjusting your search criteria or filters.</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Telescope Detail Modal --> | |
| <div class="modal fade" id="telescopeModal" tabindex="-1" aria-labelledby="telescopeModalLabel" aria-hidden="true"> | |
| <div class="modal-dialog modal-lg"> | |
| <div class="modal-content" style="background: rgba(20, 25, 40, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);"> | |
| <div class="modal-header border-bottom border-secondary"> | |
| <h5 class="modal-title text-light" id="telescopeModalLabel">Telescope Details</h5> | |
| <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button> | |
| </div> | |
| <div class="modal-body"> | |
| <div id="telescopeModalContent"> | |
| <!-- Telescope details will be loaded here --> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| </script> | |
| {% endblock %} | |