File size: 7,170 Bytes
b029a33 63ac985 b029a33 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#003400">
<title>Crops Info Dashboard</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap" rel="stylesheet">
<style>
.custom-font {
font-family: 'Poppins', sans-serif;
font-size: 2.5rem;
color: #003400;
margin: 1rem 0;
}
body {
background-color: #f4f4f9;
}
/* Navbar Styles */
.navbar {
background-color: #0d1025;
padding: 0.5rem 1rem;
position: sticky;
top: 0;
z-index: 1000;
min-height: 65px;
}
.navbar-brand {
display: flex;
align-items: center;
}
.logo-img {
width: 50px;
height: 50px;
transition: transform 0.3s;
}
.navbar-toggler {
border: 1px solid rgba(255,255,255,0.1);
padding: 0.25rem 0.75rem;
}
.navbar-toggler:focus {
box-shadow: none;
outline: none;
}
.navbar-collapse {
flex-grow: 0;
}
.navbar-nav {
align-items: center;
}
.nav-link {
color: white !important;
padding: 0.5rem 1rem !important;
margin: 0 0.2rem;
border-radius: 5px;
transition: all 0.3s ease;
}
.nav-link:hover {
background-color: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}
.brand-text {
color: #737373;
margin-left: 1rem;
}
@media (max-width: 991px) {
.navbar-collapse {
background-color: #0d1025;
padding: 1rem;
border-radius: 0 0 10px 10px;
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 1000;
}
.nav-link {
text-align: center;
}
.brand-text {
margin: 0.5rem 0;
text-align: center;
display: block;
}
}
/* Dashboard Card Styles */
.dashboard-card {
background: white;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
margin-bottom: 2rem;
transition: all 0.3s ease;
}
.dashboard-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
/* Chart Description Styles */
.chart-desc {
padding: 2rem;
background: linear-gradient(145deg, #ffffff, #f8f9fa);
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.chart-desc h3 {
color: #003400;
margin-bottom: 1.5rem;
}
.chart-desc p {
margin-bottom: 1rem;
padding-left: 1.5rem;
position: relative;
}
.chart-desc i {
color: #003400;
margin-right: 10px;
}
/* Iframe Styles */
iframe {
width: 100%;
min-height: 600px;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
border: none;
}
/* Footer Styles */
footer {
background: linear-gradient(to right, #0d1025, #1a1a2e);
padding: 2rem 0;
margin-top: 3rem;
}
footer p {
margin: 0.5rem 0;
opacity: 0.9;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a href="/" class="navbar-brand">
<img src="data:image/png;base64,{{ images['logo'] }}" alt="AgroAssist Logo" class="logo-img">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="/"><i class="fas fa-house"></i> Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/recommendation"><i class="fas fa-seedling"></i> Recommend</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/info"><i class="fas fa-chart-bar"></i> Statistics</a>
</li>
</ul>
<span class="navbar-text brand-text">AgroAssist</span>
</div>
</div>
</nav>
<!-- Update the chart description section -->
<div class="container mt-4">
<div class="chart-desc">
<h3 class="text-center">Charts Description</h3>
<p><i class="fas fa-chart-bar"></i><strong>Nitrogen, Potassium, and Phosphorus of Crops:</strong> This chart shows the nutrient levels of various crops.</p>
<p><i class="fas fa-thermometer-half"></i><strong>Temperature and Humidity of Crops:</strong> This plot visualizes the optimal temperature and humidity for different crops.</p>
<p><i class="fas fa-flask"></i><strong>Average pH by Crop Label:</strong> This chart displays the average pH values for crops, helping with soil suitability.</p>
</div>
</div>
<br>
<!-- Power BI Embed Section -->
<div class="container mt-5">
<h1 class="text-center custom-font">Crops Information Dashboard</h1> <!-- Apply custom class -->
<iframe title="crop22_powerbi" width="100%" height="600px" src="https://app.powerbi.com/view?r=eyJrIjoiYzc4YTM2NTMtZjZmNi00NDAzLTg0MzktZTY3YjQ0NzVkNTYzIiwidCI6IjBkMDRhNmQxLWFlNDctNGZjZS04MTgxLWMxYTQwNzI5MTNiYiJ9" frameborder="0" allowfullscreen="true"></iframe>
</div>
<!-- Optional Footer -->
<footer class="bg-dark text-white text-center py-3 mt-5">
<p>© 2024-25 AgroAssist. All rights reserved.</p>
<p> created by Gunjankumar Choudhari</p>
</footer>
<!-- Bootstrap JS -->
<!-- Add these before closing body tag in all templates -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
|