Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +19 -17
templates/index.html
CHANGED
|
@@ -25,7 +25,7 @@
|
|
| 25 |
|
| 26 |
body {
|
| 27 |
font-family: 'Outfit', sans-serif;
|
| 28 |
-
background-color:
|
| 29 |
color: #1f2937;
|
| 30 |
padding-bottom: 3rem;
|
| 31 |
}
|
|
@@ -34,17 +34,18 @@
|
|
| 34 |
.header-section {
|
| 35 |
background-color: var(--primary-green);
|
| 36 |
color: white;
|
| 37 |
-
padding:
|
| 38 |
text-align: center;
|
| 39 |
-
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
.main-container {
|
| 43 |
max-width: 900px;
|
| 44 |
/* Reduced width for focus */
|
| 45 |
margin: 0 auto;
|
| 46 |
-
|
| 47 |
-
border-radius: 20px;
|
| 48 |
}
|
| 49 |
|
| 50 |
/* --- Focused Card --- */
|
|
@@ -52,7 +53,7 @@
|
|
| 52 |
background: white;
|
| 53 |
border-radius: 20px;
|
| 54 |
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
|
| 55 |
-
padding:
|
| 56 |
border: 1px solid rgba(0, 0, 0, 0.04);
|
| 57 |
position: relative;
|
| 58 |
}
|
|
@@ -63,10 +64,10 @@
|
|
| 63 |
letter-spacing: 1px;
|
| 64 |
font-weight: 700;
|
| 65 |
color: var(--accent-green);
|
| 66 |
-
margin-bottom:
|
| 67 |
display: block;
|
| 68 |
border-bottom: 2px solid #f3f4f6;
|
| 69 |
-
|
| 70 |
}
|
| 71 |
|
| 72 |
/* --- Map --- */
|
|
@@ -74,7 +75,7 @@
|
|
| 74 |
border-radius: 12px;
|
| 75 |
overflow: hidden;
|
| 76 |
height: 250px;
|
| 77 |
-
|
| 78 |
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
|
| 79 |
position: relative;
|
| 80 |
}
|
|
@@ -89,18 +90,17 @@
|
|
| 89 |
font-size: 0.9rem;
|
| 90 |
font-weight: 600;
|
| 91 |
color: #4b5563;
|
| 92 |
-
|
| 93 |
}
|
| 94 |
|
| 95 |
.form-select,
|
| 96 |
.form-control {
|
| 97 |
border-radius: 10px;
|
| 98 |
-
padding: 0.
|
| 99 |
border: 1px solid #e5e7eb;
|
| 100 |
font-size: 1rem;
|
| 101 |
transition: 0.2s;
|
| 102 |
background-color: #f9fafb;
|
| 103 |
-
border: 1px solid var(--accent-green);
|
| 104 |
}
|
| 105 |
|
| 106 |
.form-select:focus,
|
|
@@ -196,7 +196,7 @@
|
|
| 196 |
<span class="section-label">02. Crop Profile</span>
|
| 197 |
<div class="row g-3 mb-4">
|
| 198 |
<div class="col-md-6">
|
| 199 |
-
<label class="form-label">
|
| 200 |
<select class="form-select" id="crop_type" name="crop_type" required>
|
| 201 |
<option value="" selected disabled>Select Crop...</option>
|
| 202 |
<option value="Rice (Paddy)">Rice (Paddy)</option>
|
|
@@ -213,7 +213,7 @@
|
|
| 213 |
</select>
|
| 214 |
</div>
|
| 215 |
<div class="col-md-6">
|
| 216 |
-
<label class="form-label">
|
| 217 |
<select class="form-select" id="soil_type" name="soil_type" required>
|
| 218 |
<option value="Black Soil">Black Soil</option>
|
| 219 |
<option value="Red Soil">Red Soil</option>
|
|
@@ -228,7 +228,7 @@
|
|
| 228 |
<span class="section-label">03. Cropping Season</span>
|
| 229 |
<div class="row g-3 mb-4">
|
| 230 |
<div class="col-md-6">
|
| 231 |
-
<label class="form-label">
|
| 232 |
<div class="input-group">
|
| 233 |
<span class="input-group-text bg-light"><i class="bi bi-calendar-range"></i></span>
|
| 234 |
<select class="form-select" id="season" name="season" required>
|
|
@@ -240,7 +240,7 @@
|
|
| 240 |
</div>
|
| 241 |
</div>
|
| 242 |
<div class="col-md-6">
|
| 243 |
-
<label class="form-label">
|
| 244 |
<select class="form-select" id="language" name="language">
|
| 245 |
<option value="English">English</option>
|
| 246 |
<option value="Hindi">Hindi</option>
|
|
@@ -258,7 +258,9 @@
|
|
| 258 |
ANALYZE CROP RISK <i class="bi bi-stars ms-2"></i>
|
| 259 |
</button>
|
| 260 |
|
| 261 |
-
|
|
|
|
|
|
|
| 262 |
|
| 263 |
</div>
|
| 264 |
</form>
|
|
|
|
| 25 |
|
| 26 |
body {
|
| 27 |
font-family: 'Outfit', sans-serif;
|
| 28 |
+
background-color: var(--light-bg);
|
| 29 |
color: #1f2937;
|
| 30 |
padding-bottom: 3rem;
|
| 31 |
}
|
|
|
|
| 34 |
.header-section {
|
| 35 |
background-color: var(--primary-green);
|
| 36 |
color: white;
|
| 37 |
+
padding: 3rem 1rem 6rem;
|
| 38 |
text-align: center;
|
| 39 |
+
border-bottom-left-radius: 50% 20px;
|
| 40 |
+
border-bottom-right-radius: 50% 20px;
|
| 41 |
+
margin-bottom: -4rem;
|
| 42 |
}
|
| 43 |
|
| 44 |
.main-container {
|
| 45 |
max-width: 900px;
|
| 46 |
/* Reduced width for focus */
|
| 47 |
margin: 0 auto;
|
| 48 |
+
padding: 0 1rem;
|
|
|
|
| 49 |
}
|
| 50 |
|
| 51 |
/* --- Focused Card --- */
|
|
|
|
| 53 |
background: white;
|
| 54 |
border-radius: 20px;
|
| 55 |
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
|
| 56 |
+
padding: 2.5rem;
|
| 57 |
border: 1px solid rgba(0, 0, 0, 0.04);
|
| 58 |
position: relative;
|
| 59 |
}
|
|
|
|
| 64 |
letter-spacing: 1px;
|
| 65 |
font-weight: 700;
|
| 66 |
color: var(--accent-green);
|
| 67 |
+
margin-bottom: 1rem;
|
| 68 |
display: block;
|
| 69 |
border-bottom: 2px solid #f3f4f6;
|
| 70 |
+
padding-bottom: 0.5rem;
|
| 71 |
}
|
| 72 |
|
| 73 |
/* --- Map --- */
|
|
|
|
| 75 |
border-radius: 12px;
|
| 76 |
overflow: hidden;
|
| 77 |
height: 250px;
|
| 78 |
+
margin-bottom: 1.5rem;
|
| 79 |
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
|
| 80 |
position: relative;
|
| 81 |
}
|
|
|
|
| 90 |
font-size: 0.9rem;
|
| 91 |
font-weight: 600;
|
| 92 |
color: #4b5563;
|
| 93 |
+
margin-bottom: 0.4rem;
|
| 94 |
}
|
| 95 |
|
| 96 |
.form-select,
|
| 97 |
.form-control {
|
| 98 |
border-radius: 10px;
|
| 99 |
+
padding: 0.75rem 1rem;
|
| 100 |
border: 1px solid #e5e7eb;
|
| 101 |
font-size: 1rem;
|
| 102 |
transition: 0.2s;
|
| 103 |
background-color: #f9fafb;
|
|
|
|
| 104 |
}
|
| 105 |
|
| 106 |
.form-select:focus,
|
|
|
|
| 196 |
<span class="section-label">02. Crop Profile</span>
|
| 197 |
<div class="row g-3 mb-4">
|
| 198 |
<div class="col-md-6">
|
| 199 |
+
<label class="form-label">Crop Type</label>
|
| 200 |
<select class="form-select" id="crop_type" name="crop_type" required>
|
| 201 |
<option value="" selected disabled>Select Crop...</option>
|
| 202 |
<option value="Rice (Paddy)">Rice (Paddy)</option>
|
|
|
|
| 213 |
</select>
|
| 214 |
</div>
|
| 215 |
<div class="col-md-6">
|
| 216 |
+
<label class="form-label">Soil Type</label>
|
| 217 |
<select class="form-select" id="soil_type" name="soil_type" required>
|
| 218 |
<option value="Black Soil">Black Soil</option>
|
| 219 |
<option value="Red Soil">Red Soil</option>
|
|
|
|
| 228 |
<span class="section-label">03. Cropping Season</span>
|
| 229 |
<div class="row g-3 mb-4">
|
| 230 |
<div class="col-md-6">
|
| 231 |
+
<label class="form-label">Select Season</label>
|
| 232 |
<div class="input-group">
|
| 233 |
<span class="input-group-text bg-light"><i class="bi bi-calendar-range"></i></span>
|
| 234 |
<select class="form-select" id="season" name="season" required>
|
|
|
|
| 240 |
</div>
|
| 241 |
</div>
|
| 242 |
<div class="col-md-6">
|
| 243 |
+
<label class="form-label">Report Language</label>
|
| 244 |
<select class="form-select" id="language" name="language">
|
| 245 |
<option value="English">English</option>
|
| 246 |
<option value="Hindi">Hindi</option>
|
|
|
|
| 258 |
ANALYZE CROP RISK <i class="bi bi-stars ms-2"></i>
|
| 259 |
</button>
|
| 260 |
|
| 261 |
+
<div class="text-center mt-3 text-muted small">
|
| 262 |
+
Powered by Gemini 2.0 Flash • Open-Meteo Historical Data
|
| 263 |
+
</div>
|
| 264 |
|
| 265 |
</div>
|
| 266 |
</form>
|