| | <!DOCTYPE html>
|
| | <html lang="en">
|
| |
|
| | <head>
|
| | <meta charset="UTF-8">
|
| | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| | <title>Prediction Results | Crop Yield</title>
|
| |
|
| | <link rel="preconnect" href="https://fonts.googleapis.com">
|
| | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| | <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| |
|
| | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
| |
|
| | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
| |
|
| | <style>
|
| | :root {
|
| | --primary-green: #1a5d3a;
|
| | --accent-green: #198754;
|
| | --darker-accent: #143d2e;
|
| | --light-bg: #f8f9fa;
|
| | --surface: #ffffff;
|
| | --text-dark: #212529;
|
| | --text-muted: #6c757d;
|
| | --border: #dee2e6;
|
| | }
|
| |
|
| | * {
|
| | box-sizing: border-box;
|
| | margin: 0;
|
| | padding: 0;
|
| | }
|
| |
|
| | body {
|
| | font-family: 'Outfit', sans-serif;
|
| | background-color: var(--light-bg);
|
| | color: var(--text-dark);
|
| | min-height: 100vh;
|
| | }
|
| |
|
| |
|
| | .hero-header {
|
| | background-color: var(--primary-green);
|
| | color: white;
|
| | padding: 3rem 1rem 7rem;
|
| | text-align: center;
|
| | border-bottom-left-radius: 60px;
|
| | border-bottom-right-radius: 60px;
|
| | position: relative;
|
| | }
|
| |
|
| | .hero-icon {
|
| | font-size: 2.5rem;
|
| | margin-bottom: 0.75rem;
|
| | display: block;
|
| | }
|
| |
|
| | .hero-title {
|
| | font-weight: 700;
|
| | font-size: 2rem;
|
| | margin-bottom: 0.5rem;
|
| | }
|
| |
|
| | .hero-subtitle {
|
| | font-weight: 300;
|
| | opacity: 0.9;
|
| | font-size: 1rem;
|
| | }
|
| |
|
| |
|
| | .main-container {
|
| | margin-top: -5rem;
|
| | padding: 0 1rem 3rem;
|
| | max-width: 1100px;
|
| | margin-left: auto;
|
| | margin-right: auto;
|
| | }
|
| |
|
| |
|
| | .summary-card {
|
| | background: var(--surface);
|
| | border-radius: 20px;
|
| | box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
|
| | padding: 2rem;
|
| | margin-bottom: 2rem;
|
| | position: relative;
|
| | z-index: 10;
|
| | }
|
| |
|
| | .summary-header {
|
| | display: flex;
|
| | align-items: center;
|
| | gap: 0.75rem;
|
| | margin-bottom: 1.5rem;
|
| | padding-bottom: 1rem;
|
| | border-bottom: 2px solid var(--primary-green);
|
| | }
|
| |
|
| | .summary-header i {
|
| | font-size: 1.75rem;
|
| | color: var(--primary-green);
|
| | }
|
| |
|
| | .summary-header h2 {
|
| | font-size: 1.5rem;
|
| | font-weight: 700;
|
| | color: var(--text-dark);
|
| | margin: 0;
|
| | }
|
| |
|
| | .stat-grid {
|
| | display: grid;
|
| | grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| | gap: 1.5rem;
|
| | }
|
| |
|
| | .stat-box {
|
| | background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
|
| | border: 1px solid #e9ecef;
|
| | border-radius: 12px;
|
| | padding: 1.5rem;
|
| | text-align: center;
|
| | transition: transform 0.2s;
|
| | }
|
| |
|
| | .stat-box:hover {
|
| | transform: translateY(-2px);
|
| | border-color: var(--accent-green);
|
| | }
|
| |
|
| | .stat-icon {
|
| | width: 50px;
|
| | height: 50px;
|
| | border-radius: 12px;
|
| | background: var(--primary-green);
|
| | color: white;
|
| | display: flex;
|
| | align-items: center;
|
| | justify-content: center;
|
| | font-size: 1.25rem;
|
| | margin: 0 auto 1rem;
|
| | }
|
| |
|
| | .stat-value {
|
| | font-size: 2rem;
|
| | font-weight: 700;
|
| | color: var(--primary-green);
|
| | line-height: 1;
|
| | margin-bottom: 0.5rem;
|
| | }
|
| |
|
| | .stat-label {
|
| | font-size: 0.85rem;
|
| | color: var(--text-muted);
|
| | font-weight: 500;
|
| | text-transform: uppercase;
|
| | letter-spacing: 0.05em;
|
| | }
|
| |
|
| |
|
| | .graph-card {
|
| | background: var(--surface);
|
| | border-radius: 20px;
|
| | box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
|
| | padding: 1.5rem;
|
| | margin-bottom: 1.5rem;
|
| | }
|
| |
|
| | .graph-header {
|
| | display: flex;
|
| | align-items: center;
|
| | gap: 0.5rem;
|
| | margin-bottom: 1rem;
|
| | }
|
| |
|
| | .graph-header i {
|
| | color: var(--accent-green);
|
| | font-size: 1.25rem;
|
| | }
|
| |
|
| | .graph-header h4 {
|
| | font-size: 1.1rem;
|
| | font-weight: 600;
|
| | color: var(--text-dark);
|
| | margin: 0;
|
| | }
|
| |
|
| |
|
| | .suggestions-card {
|
| | background: var(--surface);
|
| | border-radius: 20px;
|
| | box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
|
| | padding: 2rem;
|
| | margin-bottom: 1.5rem;
|
| | border-left: 5px solid var(--accent-green);
|
| | }
|
| |
|
| | .suggestions-header {
|
| | display: flex;
|
| | align-items: center;
|
| | gap: 0.5rem;
|
| | margin-bottom: 1rem;
|
| | }
|
| |
|
| | .suggestions-header i {
|
| | color: var(--accent-green);
|
| | font-size: 1.5rem;
|
| | }
|
| |
|
| | .suggestions-header h4 {
|
| | font-size: 1.25rem;
|
| | font-weight: 600;
|
| | color: var(--primary-green);
|
| | margin: 0;
|
| | }
|
| |
|
| | .suggestions-content {
|
| | font-size: 1rem;
|
| | line-height: 1.7;
|
| | color: var(--text-dark);
|
| | }
|
| |
|
| |
|
| | .btn-back {
|
| | background-color: var(--primary-green);
|
| | color: white;
|
| | border: none;
|
| | padding: 0.85rem 2rem;
|
| | border-radius: 8px;
|
| | font-weight: 600;
|
| | font-size: 1rem;
|
| | display: inline-flex;
|
| | align-items: center;
|
| | gap: 0.5rem;
|
| | text-decoration: none;
|
| | transition: all 0.3s;
|
| | box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
| | }
|
| |
|
| | .btn-back:hover {
|
| | background-color: var(--darker-accent);
|
| | color: white;
|
| | transform: translateY(-2px);
|
| | box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
|
| | }
|
| |
|
| |
|
| | .footer {
|
| | text-align: center;
|
| | padding: 2rem;
|
| | color: #adb5bd;
|
| | font-size: 0.8rem;
|
| | }
|
| |
|
| |
|
| | @media (max-width: 768px) {
|
| | .hero-title {
|
| | font-size: 1.5rem;
|
| | }
|
| |
|
| | .summary-card,
|
| | .graph-card,
|
| | .suggestions-card {
|
| | padding: 1.5rem;
|
| | }
|
| |
|
| | .stat-value {
|
| | font-size: 1.5rem;
|
| | }
|
| |
|
| | .hero-header {
|
| | border-bottom-left-radius: 40px;
|
| | border-bottom-right-radius: 40px;
|
| | }
|
| | }
|
| | </style>
|
| | </head>
|
| |
|
| | <body>
|
| |
|
| |
|
| | <div class="hero-header">
|
| | <i class="bi bi-bar-chart-line hero-icon"></i>
|
| | <h1 class="hero-title">Prediction Results</h1>
|
| | <p class="hero-subtitle">AI-generated yield forecast and insights</p>
|
| | </div>
|
| |
|
| |
|
| | <div class="main-container">
|
| |
|
| |
|
| | <div class="summary-card">
|
| | <div class="summary-header">
|
| | <i class="bi bi-clipboard-data"></i>
|
| | <h2>Yield Prediction Summary</h2>
|
| | </div>
|
| | <div class="stat-grid">
|
| | <div class="stat-box">
|
| | <div class="stat-icon"><i class="bi bi-box-seam"></i></div>
|
| | <div class="stat-value">{{ prediction }}</div>
|
| | <div class="stat-label">Predicted Production (tons)</div>
|
| | </div>
|
| | <div class="stat-box">
|
| | <div class="stat-icon"><i class="bi bi-percent"></i></div>
|
| | <div class="stat-value">{{ ratio }}</div>
|
| | <div class="stat-label">Production-to-Area Ratio</div>
|
| | </div>
|
| | </div>
|
| | </div>
|
| |
|
| |
|
| | <div class="graph-card">
|
| | <div class="graph-header">
|
| | <i class="bi bi-speedometer2"></i>
|
| | <h4>Production Ratio Gauge Chart</h4>
|
| | </div>
|
| | {{ gauge_chart_html|safe }}
|
| | </div>
|
| |
|
| |
|
| | <div class="suggestions-card">
|
| | <div class="suggestions-header">
|
| | <i class="bi bi-lightbulb"></i>
|
| | <h4>AI-Driven Suggestions</h4>
|
| | </div>
|
| | <div class="suggestions-content">
|
| | {{ suggestions }}
|
| | </div>
|
| | </div>
|
| |
|
| |
|
| | <div class="row">
|
| | <div class="col-lg-6">
|
| | <div class="graph-card">
|
| | <div class="graph-header">
|
| | <i class="bi bi-pie-chart"></i>
|
| | <h4>Crop Distribution</h4>
|
| | </div>
|
| | {{ pie_chart_html|safe }}
|
| | </div>
|
| | </div>
|
| | <div class="col-lg-6">
|
| | <div class="graph-card">
|
| | <div class="graph-header">
|
| | <i class="bi bi-graph-up"></i>
|
| | <h4>Year vs Production (2000-2023)</h4>
|
| | </div>
|
| | {{ crop_year_vs_production_html|safe }}
|
| | </div>
|
| | </div>
|
| | </div>
|
| |
|
| | <div class="row">
|
| | <div class="col-lg-6">
|
| | <div class="graph-card">
|
| | <div class="graph-header">
|
| | <i class="bi bi-cloud-sun"></i>
|
| | <h4>Season vs Production</h4>
|
| | </div>
|
| | {{ season_vs_production_html|safe }}
|
| | </div>
|
| | </div>
|
| | <div class="col-lg-6">
|
| | <div class="graph-card">
|
| | <div class="graph-header">
|
| | <i class="bi bi-rulers"></i>
|
| | <h4>Area vs Production</h4>
|
| | </div>
|
| | {{ area_vs_production_html|safe }}
|
| | </div>
|
| | </div>
|
| | </div>
|
| |
|
| | <div class="row">
|
| | <div class="col-lg-6">
|
| | <div class="graph-card">
|
| | <div class="graph-header">
|
| | <i class="bi bi-trophy"></i>
|
| | <h4>Top 10 States by Production</h4>
|
| | </div>
|
| | {{ top_states_html|safe }}
|
| | </div>
|
| | </div>
|
| | <div class="col-lg-6">
|
| | <div class="graph-card">
|
| | <div class="graph-header">
|
| | <i class="bi bi-bar-chart-steps"></i>
|
| | <h4>Violin Plot: Production (2014-2023)</h4>
|
| | </div>
|
| | {{ yearly_violin_plot_html|safe }}
|
| | </div>
|
| | </div>
|
| | </div>
|
| |
|
| |
|
| | <div class="text-center mt-4">
|
| | <a href="/" class="btn-back">
|
| | <i class="bi bi-arrow-left"></i> Make New Prediction
|
| | </a>
|
| | </div>
|
| | </div>
|
| |
|
| |
|
| | <div class="footer">
|
| | © 2025 Crop Yield Prediction | Powered by AI
|
| | </div>
|
| |
|
| | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
| | </body>
|
| |
|
| | </html> |