Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>{{ selected_map }} - Crop Analysis</title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css"> | |
| <style> | |
| body { | |
| padding: 0; | |
| background-color: #f8f9fa; | |
| min-height: 100vh; | |
| } | |
| /* Hero Header */ | |
| .hero-header { | |
| background-color: #1a5d3a; | |
| color: white; | |
| padding: 2rem 0 4rem 0; | |
| box-shadow: 0 4px 20px rgba(26, 93, 58, 0.2); | |
| } | |
| .navbar { | |
| background-color: transparent; | |
| padding: 1rem 3rem; | |
| } | |
| .navbar-nav { | |
| flex-direction: row; | |
| justify-content: center; | |
| width: 100%; | |
| gap: 3rem; | |
| list-style: none; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .nav-item { | |
| padding: 0; | |
| } | |
| .nav-link { | |
| color: white ; | |
| font-weight: 500; | |
| font-size: 1rem; | |
| padding: 0.5rem 1.5rem ; | |
| border-radius: 50px; | |
| transition: all 0.3s ease; | |
| border: 1px solid transparent; | |
| text-decoration: none; | |
| display: inline-block; | |
| } | |
| .nav-link:hover { | |
| background-color: #ffffff; | |
| color: #198754 ; | |
| border-color: #198754; | |
| } | |
| .nav-link i { | |
| margin-right: 0.5rem; | |
| } | |
| .main-container { | |
| background: white; | |
| border-radius: 12px; | |
| padding: 25px; | |
| max-height: 1500px; | |
| max-width: 1700px; | |
| margin: -3rem auto 20px auto; | |
| border: 3px solid #2e7d32; | |
| box-shadow: 0 6px 20px rgba(46, 125, 50, 0.15); | |
| } | |
| .heading { | |
| font-weight: bold; | |
| color: #1b5e20; | |
| margin-bottom: 20px; | |
| } | |
| #map-container { | |
| margin-top: 10px; | |
| margin-bottom: 20px; | |
| height: 600px; | |
| border: 3px solid #2e7d32; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Navbar with Heading --> | |
| <nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #1a5d3a; padding: 1rem 3rem;"> | |
| <div class="container-fluid justify-content-center"> | |
| <h1 class="navbar-brand mb-0" style="font-size: 1.75rem; font-weight: 700;">Crop Production Analysis</h1> | |
| </div> | |
| </nav> | |
| <!-- Hero Section with Navigation --> | |
| <div class="hero-header"> | |
| <ul class="navbar-nav"> | |
| <li class="nav-item"><a class="nav-link" href="/prodction_analysis"><i class="bi bi-graph-up"></i> Production Analysis</a></li> | |
| <li class="nav-item"><a class="nav-link" href="/heatmap_analysis"><i class="bi bi-map"></i> Heatmap Analysis</a></li> | |
| <li class="nav-item"><a class="nav-link" href="/season_analysis"><i class="bi bi-calendar3"></i> Season Analysis</a></li> | |
| <li class="nav-item"><a class="nav-link" href="/crop_analysis"><i class="bi bi-geo-alt"></i> Geospatial Analysis</a></li> | |
| </ul> | |
| </div> | |
| <div class="main-container"> | |
| <h2 class="heading">{{ selected_map }}</h2> | |
| <div id="map-container"> | |
| {{ map_html | safe }} | |
| </div> | |
| </div> | |
| <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
| </body> | |
| </html> | |