Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +297 -478
templates/index.html
CHANGED
@@ -1,478 +1,297 @@
|
|
1 |
-
<!doctype html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="utf-8">
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6 |
-
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
7 |
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
8 |
-
<title>KrishiKart - Farm Equipment Price Comparison</title>
|
9 |
-
<style>
|
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 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
</nav>
|
299 |
-
|
300 |
-
<div class="container">
|
301 |
-
<!-- Search Box -->
|
302 |
-
<div class="search-container">
|
303 |
-
<div class="search-label">
|
304 |
-
<i class="fas fa-search"></i> Find the best farm equipment & supplies at lowest prices
|
305 |
-
</div>
|
306 |
-
<form method="POST">
|
307 |
-
<div class="input-group">
|
308 |
-
<input type="text" class="form-control" name="product" placeholder="Search for seeds, tractors, tools, fertilizers..." required>
|
309 |
-
<button class="btn" type="submit">Search <i class="fas fa-arrow-right"></i></button>
|
310 |
-
</div>
|
311 |
-
</form>
|
312 |
-
<div class="search-tips">
|
313 |
-
<strong>Search Tips:</strong> Try "tractor implements", "sprinkler system", "organic fertilizer", "crop seeds", etc.
|
314 |
-
</div>
|
315 |
-
|
316 |
-
<!-- Popular Categories -->
|
317 |
-
<div class="category-pills">
|
318 |
-
<div class="category-pill"><i class="fas fa-seedling"></i> Seeds</div>
|
319 |
-
<div class="category-pill"><i class="fas fa-tractor"></i> Tractors</div>
|
320 |
-
<div class="category-pill"><i class="fas fa-flask"></i> Fertilizers</div>
|
321 |
-
<div class="category-pill"><i class="fas fa-tint"></i> Irrigation</div>
|
322 |
-
<div class="category-pill"><i class="fas fa-bug"></i> Pesticides</div>
|
323 |
-
<div class="category-pill"><i class="fas fa-tools"></i> Tools</div>
|
324 |
-
</div>
|
325 |
-
</div>
|
326 |
-
|
327 |
-
<!-- Product Results Sections -->
|
328 |
-
{% if amazon %}
|
329 |
-
<h2 class="section-title"><i class="fab fa-amazon"></i> Amazon Products</h2>
|
330 |
-
<div class="row">
|
331 |
-
{% for i in range(0, amazon|length, 3) %}
|
332 |
-
{% for j in range(3) %}
|
333 |
-
{% set idx = i + j %}
|
334 |
-
{% if idx < amazon|length %}
|
335 |
-
<div class="col-md-4 mb-4">
|
336 |
-
<div class="card h-100">
|
337 |
-
<span class="site-badge amazon-badge">Amazon</span>
|
338 |
-
{% if amazon[idx].image %}
|
339 |
-
<img src="{{ amazon[idx].image }}" class="card-img-top" alt="{{ amazon[idx].title }}">
|
340 |
-
{% endif %}
|
341 |
-
<div class="card-body">
|
342 |
-
<h5 class="card-title">{{ amazon[idx].title }}</h5>
|
343 |
-
<div class="rating">
|
344 |
-
<i class="fas fa-star"></i>
|
345 |
-
<i class="fas fa-star"></i>
|
346 |
-
<i class="fas fa-star"></i>
|
347 |
-
<i class="fas fa-star"></i>
|
348 |
-
<i class="fas fa-star-half-alt"></i>
|
349 |
-
</div>
|
350 |
-
<p class="card-text">{{ amazon[idx].price }} <del>₹{% set original = amazon[idx].price_val * 1.2 %}{{ original|round|int }}</del></p>
|
351 |
-
<div class="price-indicator">
|
352 |
-
<i class="fas fa-check-circle"></i> <span>Best price available</span>
|
353 |
-
</div>
|
354 |
-
<a href="{{ amazon[idx].url }}" target="_blank" class="btn buy-now-btn">View Details <i class="fas fa-external-link-alt"></i></a>
|
355 |
-
</div>
|
356 |
-
</div>
|
357 |
-
</div>
|
358 |
-
{% endif %}
|
359 |
-
{% endfor %}
|
360 |
-
{% endfor %}
|
361 |
-
</div>
|
362 |
-
{% endif %}
|
363 |
-
|
364 |
-
{% if flipkart %}
|
365 |
-
<h2 class="section-title"><i class="fas fa-shopping-cart"></i> Flipkart Products</h2>
|
366 |
-
<div class="row">
|
367 |
-
{% for i in range(0, flipkart|length, 3) %}
|
368 |
-
{% for j in range(3) %}
|
369 |
-
{% set idx = i + j %}
|
370 |
-
{% if idx < flipkart|length %}
|
371 |
-
<div class="col-md-4 mb-4">
|
372 |
-
<div class="card h-100">
|
373 |
-
<span class="site-badge flipkart-badge">Flipkart</span>
|
374 |
-
{% if flipkart[idx].image %}
|
375 |
-
<img src="{{ flipkart[idx].image }}" class="card-img-top" alt="{{ flipkart[idx].title }}">
|
376 |
-
{% endif %}
|
377 |
-
<div class="card-body">
|
378 |
-
<h5 class="card-title">{{ flipkart[idx].title }}</h5>
|
379 |
-
<div class="rating">
|
380 |
-
<i class="fas fa-star"></i>
|
381 |
-
<i class="fas fa-star"></i>
|
382 |
-
<i class="fas fa-star"></i>
|
383 |
-
<i class="fas fa-star"></i>
|
384 |
-
<i class="far fa-star"></i>
|
385 |
-
</div>
|
386 |
-
<p class="card-text">{{ flipkart[idx].price }} <del>₹{% set original = flipkart[idx].price_val * 1.2 %}{{ original|round|int }}</del></p>
|
387 |
-
<div class="price-indicator">
|
388 |
-
<i class="fas fa-check-circle"></i> <span>Best price available</span>
|
389 |
-
</div>
|
390 |
-
<a href="{{ flipkart[idx].url }}" target="_blank" class="btn buy-now-btn">View Details <i class="fas fa-external-link-alt"></i></a>
|
391 |
-
</div>
|
392 |
-
</div>
|
393 |
-
</div>
|
394 |
-
{% endif %}
|
395 |
-
{% endfor %}
|
396 |
-
{% endfor %}
|
397 |
-
</div>
|
398 |
-
{% endif %}
|
399 |
-
|
400 |
-
{% if not amazon and not flipkart %}
|
401 |
-
<div class="text-center mt-5">
|
402 |
-
<img src="/api/placeholder/400/320" alt="Farm illustration" style="max-width: 300px; margin-bottom: 20px;">
|
403 |
-
<h3 style="color: var(--farm-green);">Search for farm equipment to see the best prices</h3>
|
404 |
-
<p>Try searching for tractors, seeds, irrigation systems, fertilizers, or farming tools</p>
|
405 |
-
</div>
|
406 |
-
{% endif %}
|
407 |
-
|
408 |
-
<!-- Tab headers for raw data (hidden by default) -->
|
409 |
-
<div class="tab-headers" style="display: none;">
|
410 |
-
<div class="tab-header" onclick="showTab('amazon-data')">Amazon Raw Data</div>
|
411 |
-
<div class="tab-header" onclick="showTab('flipkart-data')">Flipkart Raw Data</div>
|
412 |
-
</div>
|
413 |
-
|
414 |
-
<!-- Display the full page HTML data (hidden by default) -->
|
415 |
-
{% if amazon_page_data %}
|
416 |
-
<div id="amazon-data" class="tab-content">
|
417 |
-
<h2 class="section-title">Amazon Page Data (Raw HTML)</h2>
|
418 |
-
<pre>{{ amazon_page_data|e }}</pre>
|
419 |
-
</div>
|
420 |
-
{% endif %}
|
421 |
-
|
422 |
-
{% if flipkart_page_data %}
|
423 |
-
<div id="flipkart-data" class="tab-content">
|
424 |
-
<h2 class="section-title">Flipkart Page Data (Raw HTML)</h2>
|
425 |
-
<pre>{{ flipkart_page_data|e }}</pre>
|
426 |
-
</div>
|
427 |
-
{% endif %}
|
428 |
-
|
429 |
-
</div>
|
430 |
-
|
431 |
-
<!-- Footer -->
|
432 |
-
<footer class="footer mt-5">
|
433 |
-
<div class="container">
|
434 |
-
<div class="row">
|
435 |
-
<div class="col-md-4">
|
436 |
-
<h5><i class="fas fa-tractor"></i> KrishiKart</h5>
|
437 |
-
<p>Helping farmers find the best deals on agriculture equipment and supplies.</p>
|
438 |
-
</div>
|
439 |
-
<div class="col-md-4">
|
440 |
-
<h5>Quick Links</h5>
|
441 |
-
<ul class="list-unstyled">
|
442 |
-
<li><a href="#" class="text-white">About Us</a></li>
|
443 |
-
<li><a href="#" class="text-white">Farm Resources</a></li>
|
444 |
-
<li><a href="#" class="text-white">Contact Support</a></li>
|
445 |
-
</ul>
|
446 |
-
</div>
|
447 |
-
<div class="col-md-4">
|
448 |
-
<h5>Contact Us</h5>
|
449 |
-
<p><i class="fas fa-phone"></i> Helpline: 1800-FARM-HELP</p>
|
450 |
-
<p><i class="fas fa-envelope"></i> Email: [email protected]</p>
|
451 |
-
</div>
|
452 |
-
</div>
|
453 |
-
<div class="text-center mt-3">
|
454 |
-
<p>© 2025 KrishiKart - Farm Equipment Price Comparison</p>
|
455 |
-
</div>
|
456 |
-
</div>
|
457 |
-
</footer>
|
458 |
-
|
459 |
-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
|
460 |
-
<script>
|
461 |
-
function showTab(tabId) {
|
462 |
-
// Hide all tab contents
|
463 |
-
document.querySelectorAll('.tab-content').forEach(tab => {
|
464 |
-
tab.style.display = 'none';
|
465 |
-
});
|
466 |
-
|
467 |
-
// Remove active class from all tab headers
|
468 |
-
document.querySelectorAll('.tab-header').forEach(header => {
|
469 |
-
header.classList.remove('active');
|
470 |
-
});
|
471 |
-
|
472 |
-
// Show the selected tab and mark its header as active
|
473 |
-
document.getElementById(tabId).style.display = 'block';
|
474 |
-
document.querySelector(`.tab-header[onclick="showTab('${tabId}')"]`).classList.add('active');
|
475 |
-
}
|
476 |
-
</script>
|
477 |
-
</body>
|
478 |
-
</html>
|
|
|
1 |
+
<!doctype html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
7 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
8 |
+
<title>KrishiKart - Farm Equipment Price Comparison</title>
|
9 |
+
<style>
|
10 |
+
:root {
|
11 |
+
--farm-green: #2E7D32;
|
12 |
+
--wheat-yellow: #F9C74F;
|
13 |
+
}
|
14 |
+
body {
|
15 |
+
background-color: #F5F5DC;
|
16 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
17 |
+
}
|
18 |
+
.navbar {
|
19 |
+
background-color: var(--farm-green);
|
20 |
+
}
|
21 |
+
.logo {
|
22 |
+
display: flex;
|
23 |
+
align-items: center;
|
24 |
+
color: white;
|
25 |
+
font-size: 24px;
|
26 |
+
font-weight: bold;
|
27 |
+
}
|
28 |
+
.logo i {
|
29 |
+
font-size: 28px;
|
30 |
+
margin-right: 10px;
|
31 |
+
color: var(--wheat-yellow);
|
32 |
+
}
|
33 |
+
.search-container {
|
34 |
+
background-color: rgba(255, 255, 255, 0.9);
|
35 |
+
border-radius: 12px;
|
36 |
+
padding: 20px;
|
37 |
+
margin-top: -20px;
|
38 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
39 |
+
border: 2px solid var(--farm-green);
|
40 |
+
}
|
41 |
+
.search-label {
|
42 |
+
font-weight: bold;
|
43 |
+
color: var(--farm-green);
|
44 |
+
margin-bottom: 10px;
|
45 |
+
font-size: 18px;
|
46 |
+
}
|
47 |
+
.search-tips {
|
48 |
+
background-color: #EFF7EE;
|
49 |
+
border-left: 4px solid var(--farm-green);
|
50 |
+
padding: 10px;
|
51 |
+
margin-top: 10px;
|
52 |
+
font-size: 14px;
|
53 |
+
}
|
54 |
+
.input-group {
|
55 |
+
margin-bottom: 10px;
|
56 |
+
}
|
57 |
+
.input-group .form-control {
|
58 |
+
border: 2px solid var(--farm-green);
|
59 |
+
border-radius: 6px 0 0 6px;
|
60 |
+
height: 50px;
|
61 |
+
font-size: 16px;
|
62 |
+
}
|
63 |
+
.input-group .btn {
|
64 |
+
background-color: var(--farm-green);
|
65 |
+
color: white;
|
66 |
+
border-radius: 0 6px 6px 0;
|
67 |
+
height: 50px;
|
68 |
+
font-size: 16px;
|
69 |
+
font-weight: bold;
|
70 |
+
}
|
71 |
+
.card {
|
72 |
+
margin-bottom: 20px;
|
73 |
+
cursor: pointer;
|
74 |
+
border: none;
|
75 |
+
border-radius: 12px;
|
76 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
77 |
+
transition: transform 0.3s ease;
|
78 |
+
height: 100%;
|
79 |
+
}
|
80 |
+
.card:hover {
|
81 |
+
transform: translateY(-5px);
|
82 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
|
83 |
+
}
|
84 |
+
.card-img-top {
|
85 |
+
height: 200px;
|
86 |
+
object-fit: contain;
|
87 |
+
padding: 15px;
|
88 |
+
background-color: white;
|
89 |
+
}
|
90 |
+
.site-badge {
|
91 |
+
position: absolute;
|
92 |
+
top: 10px;
|
93 |
+
right: 10px;
|
94 |
+
padding: 5px 10px;
|
95 |
+
border-radius: 20px;
|
96 |
+
font-size: 12px;
|
97 |
+
font-weight: bold;
|
98 |
+
}
|
99 |
+
.amazon-badge {
|
100 |
+
background-color: #FF9900;
|
101 |
+
color: black;
|
102 |
+
}
|
103 |
+
.flipkart-badge {
|
104 |
+
background-color: #2874F0;
|
105 |
+
color: white;
|
106 |
+
}
|
107 |
+
.section-title {
|
108 |
+
margin-top: 40px;
|
109 |
+
margin-bottom: 20px;
|
110 |
+
color: var(--farm-green);
|
111 |
+
font-weight: bold;
|
112 |
+
border-bottom: 2px solid var(--farm-green);
|
113 |
+
padding-bottom: 10px;
|
114 |
+
display: flex;
|
115 |
+
align-items: center;
|
116 |
+
}
|
117 |
+
.section-title i {
|
118 |
+
margin-right: 10px;
|
119 |
+
color: var(--farm-green);
|
120 |
+
}
|
121 |
+
.card-body {
|
122 |
+
background-color: #FFFFFF;
|
123 |
+
border-radius: 0 0 12px 12px;
|
124 |
+
}
|
125 |
+
.card-body h5 {
|
126 |
+
font-size: 1rem;
|
127 |
+
font-weight: 600;
|
128 |
+
color: #333;
|
129 |
+
height: 60px;
|
130 |
+
overflow: hidden;
|
131 |
+
}
|
132 |
+
.card-text {
|
133 |
+
font-size: 1.3rem;
|
134 |
+
color: var(--farm-green);
|
135 |
+
font-weight: bold;
|
136 |
+
}
|
137 |
+
.card-text del {
|
138 |
+
font-size: 0.9rem;
|
139 |
+
color: #999;
|
140 |
+
margin-left: 5px;
|
141 |
+
}
|
142 |
+
.buy-now-btn {
|
143 |
+
background-color: var(--farm-green);
|
144 |
+
color: white;
|
145 |
+
border-radius: 30px;
|
146 |
+
padding: 8px 15px;
|
147 |
+
font-weight: bold;
|
148 |
+
width: 100%;
|
149 |
+
margin-top: 10px;
|
150 |
+
}
|
151 |
+
.buy-now-btn:hover {
|
152 |
+
background-color: #1B5E20;
|
153 |
+
color: white;
|
154 |
+
}
|
155 |
+
.footer {
|
156 |
+
background-color: var(--farm-green);
|
157 |
+
color: white;
|
158 |
+
padding: 20px 0;
|
159 |
+
margin-top: 40px;
|
160 |
+
}
|
161 |
+
</style>
|
162 |
+
</head>
|
163 |
+
<body>
|
164 |
+
<!-- Navbar -->
|
165 |
+
<nav class="navbar navbar-expand-lg navbar-dark mb-5">
|
166 |
+
<div class="container">
|
167 |
+
<div class="logo">
|
168 |
+
<i class="fas fa-tractor"></i> KrishiKart
|
169 |
+
</div>
|
170 |
+
</div>
|
171 |
+
</nav>
|
172 |
+
|
173 |
+
<div class="container">
|
174 |
+
<!-- Search Box -->
|
175 |
+
<div class="search-container">
|
176 |
+
<div class="search-label">
|
177 |
+
<i class="fas fa-search"></i> Find the best farm equipment & supplies at lowest prices
|
178 |
+
</div>
|
179 |
+
<form method="POST">
|
180 |
+
<div class="input-group">
|
181 |
+
<input type="text" class="form-control" name="product" placeholder="Search for seeds, tractors, tools, fertilizers..." required>
|
182 |
+
<button class="btn" type="submit">Search <i class="fas fa-arrow-right"></i></button>
|
183 |
+
</div>
|
184 |
+
</form>
|
185 |
+
<div class="search-tips">
|
186 |
+
<strong>Search Tips:</strong> Try "tractor implements", "sprinkler system", "organic fertilizer", "crop seeds", etc.
|
187 |
+
</div>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
<!-- Product Results Sections -->
|
191 |
+
{% if amazon %}
|
192 |
+
<h2 class="section-title"><i class="fab fa-amazon"></i> Amazon Products</h2>
|
193 |
+
<div class="row">
|
194 |
+
{% for i in range(0, amazon|length, 3) %}
|
195 |
+
{% for j in range(3) %}
|
196 |
+
{% set idx = i + j %}
|
197 |
+
{% if idx < amazon|length %}
|
198 |
+
<div class="col-md-4 mb-4">
|
199 |
+
<div class="card h-100">
|
200 |
+
<span class="site-badge amazon-badge">Amazon</span>
|
201 |
+
{% if amazon[idx].image %}
|
202 |
+
<img src="{{ amazon[idx].image }}" class="card-img-top" alt="{{ amazon[idx].title }}">
|
203 |
+
{% endif %}
|
204 |
+
<div class="card-body">
|
205 |
+
<h5 class="card-title">{{ amazon[idx].title }}</h5>
|
206 |
+
<div class="rating">
|
207 |
+
<i class="fas fa-star"></i>
|
208 |
+
<i class="fas fa-star"></i>
|
209 |
+
<i class="fas fa-star"></i>
|
210 |
+
<i class="fas fa-star"></i>
|
211 |
+
<i class="fas fa-star-half-alt"></i>
|
212 |
+
</div>
|
213 |
+
<p class="card-text">{{ amazon[idx].price }} <del>₹{% set original = amazon[idx].price_val * 1.2 %}{{ original|round|int }}</del></p>
|
214 |
+
<a href="{{ amazon[idx].url }}" target="_blank" class="btn buy-now-btn">View Details <i class="fas fa-external-link-alt"></i></a>
|
215 |
+
</div>
|
216 |
+
</div>
|
217 |
+
</div>
|
218 |
+
{% endif %}
|
219 |
+
{% endfor %}
|
220 |
+
{% endfor %}
|
221 |
+
</div>
|
222 |
+
{% endif %}
|
223 |
+
|
224 |
+
{% if flipkart %}
|
225 |
+
<h2 class="section-title"><i class="fas fa-shopping-cart"></i> Flipkart Products</h2>
|
226 |
+
<div class="row">
|
227 |
+
{% for i in range(0, flipkart|length, 3) %}
|
228 |
+
{% for j in range(3) %}
|
229 |
+
{% set idx = i + j %}
|
230 |
+
{% if idx < flipkart|length %}
|
231 |
+
<div class="col-md-4 mb-4">
|
232 |
+
<div class="card h-100">
|
233 |
+
<span class="site-badge flipkart-badge">Flipkart</span>
|
234 |
+
{% if flipkart[idx].image %}
|
235 |
+
<img src="{{ flipkart[idx].image }}" class="card-img-top" alt="{{ flipkart[idx].title }}">
|
236 |
+
{% endif %}
|
237 |
+
<div class="card-body">
|
238 |
+
<h5 class="card-title">{{ flipkart[idx].title }}</h5>
|
239 |
+
<div class="rating">
|
240 |
+
<i class="fas fa-star"></i>
|
241 |
+
<i class="fas fa-star"></i>
|
242 |
+
<i class="fas fa-star"></i>
|
243 |
+
<i class="fas fa-star"></i>
|
244 |
+
<i class="far fa-star"></i>
|
245 |
+
</div>
|
246 |
+
<p class="card-text">{{ flipkart[idx].price }} <del>₹{% set original = flipkart[idx].price_val * 1.2 %}{{ original|round|int }}</del></p>
|
247 |
+
<a href="{{ flipkart[idx].url }}" target="_blank" class="btn buy-now-btn">View Details <i class="fas fa-external-link-alt"></i></a>
|
248 |
+
</div>
|
249 |
+
</div>
|
250 |
+
</div>
|
251 |
+
{% endif %}
|
252 |
+
{% endfor %}
|
253 |
+
{% endfor %}
|
254 |
+
</div>
|
255 |
+
{% endif %}
|
256 |
+
|
257 |
+
{% if not amazon and not flipkart %}
|
258 |
+
<div class="text-center mt-5">
|
259 |
+
<img src="https://via.placeholder.com/300x200?text=Farm+Equipment" alt="Farm illustration" style="max-width: 300px; margin-bottom: 20px;">
|
260 |
+
<h3 style="color: var(--farm-green);">Search for farm equipment to see the best prices</h3>
|
261 |
+
<p>Try searching for tractors, seeds, irrigation systems, fertilizers, or farming tools</p>
|
262 |
+
</div>
|
263 |
+
{% endif %}
|
264 |
+
|
265 |
+
</div>
|
266 |
+
|
267 |
+
<!-- Footer -->
|
268 |
+
<footer class="footer mt-5">
|
269 |
+
<div class="container">
|
270 |
+
<div class="row">
|
271 |
+
<div class="col-md-4">
|
272 |
+
<h5><i class="fas fa-tractor"></i> KrishiKart</h5>
|
273 |
+
<p>Helping farmers find the best deals on agriculture equipment and supplies.</p>
|
274 |
+
</div>
|
275 |
+
<div class="col-md-4">
|
276 |
+
<h5>Quick Links</h5>
|
277 |
+
<ul class="list-unstyled">
|
278 |
+
<li><a href="#" class="text-white">About Us</a></li>
|
279 |
+
<li><a href="#" class="text-white">Farm Resources</a></li>
|
280 |
+
<li><a href="#" class="text-white">Contact Support</a></li>
|
281 |
+
</ul>
|
282 |
+
</div>
|
283 |
+
<div class="col-md-4">
|
284 |
+
<h5>Contact Us</h5>
|
285 |
+
<p><i class="fas fa-phone"></i> Helpline: 1800-FARM-HELP</p>
|
286 |
+
<p><i class="fas fa-envelope"></i> Email: [email protected]</p>
|
287 |
+
</div>
|
288 |
+
</div>
|
289 |
+
<div class="text-center mt-3">
|
290 |
+
<p>© 2025 KrishiKart - Farm Equipment Price Comparison</p>
|
291 |
+
</div>
|
292 |
+
</div>
|
293 |
+
</footer>
|
294 |
+
|
295 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
|
296 |
+
</body>
|
297 |
+
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|