forked from omroy07/AgriTech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfarmer.html
More file actions
245 lines (233 loc) · 10.2 KB
/
farmer.html
File metadata and controls
245 lines (233 loc) · 10.2 KB
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
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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="images/logo.png">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Farmer Connection Platform</title>
<link rel="icon" type="image/png" href="/AgriTech/images/logo.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" />
<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=Poppins:wght@300;400;500;600;700&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="farmer.css">
<link rel="stylesheet" href="theme.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" />
</head>
<body>
<header>
<div class="container">
<div class="header-content">
<h1><i class="fas fa-seedling"></i> Farmer Connection</h1>
<p class="header-subtitle">
Connecting farmers with buyers across India
</p>
<div style="display: flex; gap: 1rem; align-items: center;">
<button class="theme-toggle" aria-label="Toggle dark/light mode">
<i class="fas fa-sun sun-icon"></i>
<i class="fas fa-moon moon-icon"></i>
<span class="theme-text">Light</span>
</button>
<a href="main.html" class="back-button">
<i class="fas fa-arrow-left"></i> Back to Main
</a>
</div>
</div>
</div>
</header>
<div class="container">
<nav class="nav-tabs">
<button class="tab-button active" data-section="sell">
<i class="fas fa-store"></i> Sell Products
</button>
<button class="tab-button" data-section="buy">
<i class="fas fa-shopping-cart"></i> Buy Products
</button>
</nav>
<main>
<!-- Sell Section -->
<section id="sell-section" class="section active">
<div class="section-grid">
<div class="form-card">
<h3><i class="fas fa-plus-circle"></i> List Your Product</h3>
<form id="product-form">
<div class="form-row">
<div class="form-group">
<label for="seller-name">Your Name</label>
<input type="text" id="seller-name" required />
</div>
<div class="form-group">
<label for="seller-contact">Contact Number</label>
<input type="tel" id="seller-contact" required />
</div>
</div>
<div class="form-group">
<label for="product-name">Product Name</label>
<input
type="text"
id="product-name"
placeholder="e.g., Organic Tomatoes"
required
/>
</div>
<div class="form-row">
<div class="form-group">
<label for="product-quantity">Quantity Available</label>
<input
type="text"
id="product-quantity"
placeholder="e.g., 500 kg"
required
/>
</div>
<div class="form-group">
<label for="product-price">Price per Unit</label>
<input
type="text"
id="product-price"
placeholder="e.g., ₹50/kg"
required
/>
</div>
</div>
<button type="submit" class="submit-button">
<i class="fas fa-plus"></i> Add Product
</button>
</form>
</div>
<div class="listings-container">
<div class="listings-header">
<h3>Your Products</h3>
<span class="listings-count" id="product-count"
>0 Products</span
>
</div>
<div id="product-display">
<div class="empty-state">
<i class="fas fa-box-open"></i>
<p>No products listed yet. Add your first product!</p>
</div>
</div>
</div>
</div>
</section>
<!-- Buy Section -->
<section id="buy-section" class="section">
<div class="section-grid">
<div class="form-card">
<h3><i class="fas fa-search"></i> Request to Buy</h3>
<form id="buy-form">
<div class="form-row">
<div class="form-group">
<label for="buyer-name">Your Name</label>
<input type="text" id="buyer-name" required />
</div>
<div class="form-group">
<label for="buyer-contact">Contact Number</label>
<input type="tel" id="buyer-contact" required />
</div>
</div>
<div class="form-group">
<label for="buy-product-name">Product Looking For</label>
<input
type="text"
id="buy-product-name"
placeholder="e.g., Fresh Wheat"
required
/>
</div>
<div class="form-group">
<label for="buy-product-quantity">Quantity Needed</label>
<input
type="text"
id="buy-product-quantity"
placeholder="e.g., 1000 kg"
required
/>
</div>
<button type="submit" class="submit-button">
<i class="fas fa-paper-plane"></i> Send Request
</button>
</form>
</div>
<div class="listings-container">
<div class="listings-header">
<h3>Buy Requests</h3>
<span class="listings-count" id="request-count"
>0 Requests</span
>
</div>
<div id="buy-request-display">
<div class="empty-state">
<i class="fas fa-clipboard-list"></i>
<p>No buy requests yet. Submit your first request!</p>
</div>
</div>
</div>
</div>
</section>
</main>
</div>
<style>
.site-footer {background: linear-gradient(135deg,#2e7d32,#66bb6a); color:#fff; margin-top:auto; padding: 2rem 1.25rem;}
.site-footer .footer-inner {max-width:1200px;margin:0 auto; display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:1.5rem; align-items:flex-start;}
.footer-brand {display:flex;flex-direction:column;gap:.5rem}
.footer-logo {width:48px;height:48px;border-radius:8px;object-fit:cover;background:#fff;padding:4px}
.site-footer h3,.site-footer h4{margin:0 0 .5rem 0}
.site-footer p {margin:0;opacity:.9}
.site-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.4rem}
.site-footer a{color:#fff;text-decoration:none;opacity:.9;transition:opacity .2s}
.site-footer a:hover{opacity:1;text-decoration:underline}
.footer-bottom{max-width:1200px;margin:1rem auto 0; padding-top:1rem; border-top:1px solid rgba(255,255,255,.25); text-align:center; font-size:.9rem; opacity:.9}
.social-media {display:flex;gap:1rem;margin-top:.5rem}
.social-media a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:rgba(255,255,255,.1);border-radius:50%;transition:all .3s ease;font-size:1.2rem}
.social-media a:hover{background:rgba(255,255,255,.2);transform:translateY(-2px)}
</style>
<footer class="site-footer">
<div class="footer-inner">
<div class="footer-brand">
<img src="images/logo.png" alt="AgriTech logo" class="footer-logo">
<h3>AgriTech</h3>
<p>Empowering India's Farming Future</p>
<div class="social-media">
<a href="https://instagram.com" target="_blank" aria-label="Follow us on Instagram">
<i class="fab fa-instagram"></i>
</a>
<a href="https://github.com/omroy07" target="_blank" aria-label="View our GitHub repositories">
<i class="fab fa-github"></i>
</a>
<a href="https://www.linkedin.com/in/om-roy-3b809628a/" target="_blank" aria-label="Connect with us on LinkedIn">
<i class="fab fa-linkedin"></i>
</a>
</div>
</div>
<div class="footer-links">
<h4>Quick Links</h4>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="main.html">Dashboard</a></li>
<li><a href="feed-back.html">Feedback</a></li>
<li><a href="chat.html">AI Assistant</a></li>
</ul>
</div>
<div class="footer-links">
<h4>Tools</h4>
<ul>
<li><a href="Crop Recommendation/templates/index.html">Crop Recommendation</a></li>
<li><a href="Crop Yield Prediction/crop_yield_app/templates/index.html">Yield Prediction</a></li>
<li><a href="Disease prediction/template/index.html">Disease Detector</a></li>
<li><a href="Crop_Planning/templates/cropplan.html">Crop Planner</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">© 2025 AgriTech • Made for farmers</div>
</footer>
<!-- Floating Chatbot Button -->
<a href="chat.html" id="chatbotBtn" title="Chat with us" aria-label="AI Assistant">
<i class="fas fa-robot"></i>
</a>
<script src="farmer.js"></script>
<script src="theme.js"></script>
</body>
</html>