RushiMane2003 commited on
Commit
13ab215
·
verified ·
1 Parent(s): c4f57cb

Update templates/index.html

Browse files
Files changed (1) hide show
  1. 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
- :root {
11
- --farm-green: #2E7D32;
12
- --soil-brown: #8D6E63;
13
- --wheat-yellow: #F9C74F;
14
- --sky-blue: #90CAF9;
15
- --leaf-green: #81C784;
16
- }
17
-
18
- body {
19
- background-color: #F5F5DC;
20
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
21
- }
22
-
23
- .navbar {
24
- background-color: var(--farm-green);
25
- }
26
-
27
- .logo {
28
- display: flex;
29
- align-items: center;
30
- color: white;
31
- font-size: 24px;
32
- font-weight: bold;
33
- }
34
-
35
- .logo i {
36
- font-size: 28px;
37
- margin-right: 10px;
38
- color: var(--wheat-yellow);
39
- }
40
-
41
- .search-container {
42
- background-color: rgba(255, 255, 255, 0.9);
43
- border-radius: 12px;
44
- padding: 20px;
45
- margin-top: -20px;
46
- box-shadow: 0 5px 15px rgba(0,0,0,0.1);
47
- border: 2px solid var(--farm-green);
48
- }
49
-
50
- .search-label {
51
- font-weight: bold;
52
- color: var(--farm-green);
53
- margin-bottom: 10px;
54
- font-size: 18px;
55
- }
56
-
57
- .search-tips {
58
- background-color: #EFF7EE;
59
- border-left: 4px solid var(--farm-green);
60
- padding: 10px;
61
- margin-top: 10px;
62
- font-size: 14px;
63
- }
64
-
65
- .input-group {
66
- margin-bottom: 10px;
67
- }
68
-
69
- .input-group .form-control {
70
- border: 2px solid var(--farm-green);
71
- border-radius: 6px 0 0 6px;
72
- height: 50px;
73
- font-size: 16px;
74
- }
75
-
76
- .input-group .btn {
77
- background-color: var(--farm-green);
78
- color: white;
79
- border-radius: 0 6px 6px 0;
80
- height: 50px;
81
- font-size: 16px;
82
- font-weight: bold;
83
- }
84
-
85
- .card {
86
- margin-bottom: 20px;
87
- cursor: pointer;
88
- border: none;
89
- border-radius: 12px;
90
- box-shadow: 0 5px 15px rgba(0,0,0,0.1);
91
- transition: transform 0.3s ease;
92
- height: 100%;
93
- }
94
-
95
- .card:hover {
96
- transform: translateY(-5px);
97
- box-shadow: 0 10px 20px rgba(0,0,0,0.15);
98
- }
99
-
100
- .card-img-top {
101
- height: 200px;
102
- object-fit: contain;
103
- padding: 15px;
104
- background-color: white;
105
- }
106
-
107
- .site-badge {
108
- position: absolute;
109
- top: 10px;
110
- right: 10px;
111
- padding: 5px 10px;
112
- border-radius: 20px;
113
- font-size: 12px;
114
- font-weight: bold;
115
- }
116
-
117
- .amazon-badge {
118
- background-color: #FF9900;
119
- color: black;
120
- }
121
-
122
- .flipkart-badge {
123
- background-color: #2874F0;
124
- color: white;
125
- }
126
-
127
- .section-title {
128
- margin-top: 40px;
129
- margin-bottom: 20px;
130
- color: var(--farm-green);
131
- font-weight: bold;
132
- border-bottom: 2px solid var(--farm-green);
133
- padding-bottom: 10px;
134
- display: flex;
135
- align-items: center;
136
- }
137
-
138
- .section-title i {
139
- margin-right: 10px;
140
- color: var(--farm-green);
141
- }
142
-
143
- .card-body {
144
- background-color: #FFFFFF;
145
- border-radius: 0 0 12px 12px;
146
- }
147
-
148
- .card-body h5 {
149
- font-size: 1rem;
150
- font-weight: 600;
151
- color: #333;
152
- height: 60px;
153
- overflow: hidden;
154
- }
155
-
156
- .card-text {
157
- font-size: 1.3rem;
158
- color: var(--farm-green);
159
- font-weight: bold;
160
- }
161
-
162
- .card-text del {
163
- font-size: 0.9rem;
164
- color: #999;
165
- margin-left: 5px;
166
- }
167
-
168
- .buy-now-btn {
169
- background-color: var(--farm-green);
170
- color: white;
171
- border-radius: 30px;
172
- padding: 8px 15px;
173
- font-weight: bold;
174
- width: 100%;
175
- margin-top: 10px;
176
- }
177
-
178
- .buy-now-btn:hover {
179
- background-color: #1B5E20;
180
- color: white;
181
- }
182
-
183
- .footer {
184
- background-color: var(--farm-green);
185
- color: white;
186
- padding: 20px 0;
187
- margin-top: 40px;
188
- }
189
-
190
- .tab-content {
191
- display: none;
192
- }
193
-
194
- .tab-headers {
195
- display: flex;
196
- margin-top: 40px;
197
- }
198
-
199
- .tab-header {
200
- padding: 10px 20px;
201
- background-color: #E8F5E9;
202
- border-radius: 10px 10px 0 0;
203
- margin-right: 5px;
204
- cursor: pointer;
205
- font-weight: bold;
206
- color: var(--farm-green);
207
- }
208
-
209
- .tab-header.active {
210
- background-color: var(--farm-green);
211
- color: white;
212
- }
213
-
214
- .language-selector {
215
- display: flex;
216
- align-items: center;
217
- justify-content: flex-end;
218
- margin-bottom: 20px;
219
- }
220
-
221
- .language-btn {
222
- background-color: transparent;
223
- border: 1px solid var(--farm-green);
224
- color: var(--farm-green);
225
- margin-left: 10px;
226
- border-radius: 20px;
227
- padding: 5px 15px;
228
- font-size: 14px;
229
- }
230
-
231
- .language-btn.active {
232
- background-color: var(--farm-green);
233
- color: white;
234
- }
235
-
236
- pre {
237
- background-color: #eee;
238
- padding: 15px;
239
- border-radius: 5px;
240
- overflow-x: auto;
241
- }
242
-
243
- .category-pills {
244
- display: flex;
245
- flex-wrap: wrap;
246
- gap: 10px;
247
- margin-bottom: 20px;
248
- }
249
-
250
- .category-pill {
251
- background-color: #E8F5E9;
252
- border: 1px solid var(--farm-green);
253
- color: var(--farm-green);
254
- border-radius: 20px;
255
- padding: 8px 15px;
256
- font-size: 14px;
257
- font-weight: bold;
258
- cursor: pointer;
259
- transition: all 0.3s;
260
- }
261
-
262
- .category-pill:hover {
263
- background-color: var(--farm-green);
264
- color: white;
265
- }
266
-
267
- .price-indicator {
268
- display: flex;
269
- align-items: center;
270
- margin-top: 5px;
271
- }
272
-
273
- .price-indicator i {
274
- color: #4CAF50;
275
- margin-right: 5px;
276
- }
277
-
278
- .rating {
279
- color: #FFB300;
280
- margin-top: 5px;
281
- }
282
- </style>
283
- </head>
284
- <body>
285
- <!-- Navbar -->
286
- <nav class="navbar navbar-expand-lg navbar-dark mb-5">
287
- <div class="container">
288
- <div class="logo">
289
- <i class="fas fa-tractor"></i> KrishiKart
290
- </div>
291
- <div class="language-selector">
292
- <button class="language-btn active">English</button>
293
- <button class="language-btn">हिंदी</button>
294
- <button class="language-btn">தமிழ்</button>
295
- <button class="language-btn">తెలుగు</button>
296
- </div>
297
- </div>
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>&copy; 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>&copy; 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>