-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
405 lines (381 loc) · 24.8 KB
/
Copy pathindex.html
File metadata and controls
405 lines (381 loc) · 24.8 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
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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AgriSahay - Empowering Agriculture Together</title>
<meta name="description"
content="AgriSahay - A comprehensive platform for amenity rental, marketplace, carbon credits, and cooperative farming">
<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=Montserrat:wght@800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet">
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'farmer': {
'green': {
DEFAULT: '#2d5016',
50: '#f0f7ed',
100: '#e1f0da',
200: '#c3e1b5',
300: '#a5d290',
400: '#87c36b',
500: '#4a7c2c',
600: '#2d5016',
700: '#244012',
800: '#1b300e',
900: '#12200a',
},
'gold': {
DEFAULT: '#f59e0b',
light: '#fbbf24',
50: '#fffbeb',
100: '#fef3c7',
200: '#fde68a',
300: '#fcd34d',
400: '#fbbf24',
500: '#f59e0b',
600: '#d97706',
700: '#b45309',
800: '#92400e',
900: '#78350f',
},
'teal': '#5DBAAA',
'orange': '#E67E22',
}
},
fontFamily: {
'sans': ['Poppins', 'sans-serif'],
'display': ['Montserrat', 'sans-serif'],
},
animation: {
'float': 'float 3s ease-in-out infinite',
'fadeInUp': 'fadeInUp 1s ease-out',
'slideUp': 'slideUp 0.3s ease',
'slideDown': 'slideDown 0.3s ease',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0px) rotate(0deg)' },
'50%': { transform: 'translateY(-3px) rotate(5deg)' },
},
fadeInUp: {
'0%': { opacity: '0', transform: 'translateY(30px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
slideUp: {
'0%': { opacity: '0', transform: 'translateY(50px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
slideDown: {
'0%': { opacity: '0', transform: 'translateY(-10px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
},
}
}
}
</script>
<style>
/* Custom styles for elements that need special treatment */
.hero-bg {
background: linear-gradient(135deg, rgba(45, 80, 22, 0.85), rgba(74, 124, 44, 0.7)),
url('public/farmer.png');
background-size: cover;
background-position: center 30%;
background-attachment: fixed;
}
.glass-effect {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.modal-overlay-blur {
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
</style>
</head>
<body class="font-sans antialiased">
<!-- Navigation -->
<nav class="fixed top-0 left-0 right-0 z-50 bg-white/95 glass-effect shadow-sm transition-all duration-300">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 sm:py-4">
<div class="flex justify-between items-center">
<!-- Logo -->
<div class="flex items-center gap-2">
<span class="font-display font-black text-2xl sm:text-3xl tracking-tight">
<span class="text-farmer-orange relative">
Agr<span class="absolute -top-3 -right-2 text-base animate-float">🌿</span>i
</span>
<span class="text-farmer-teal">Sahay</span>
</span>
</div>
<!-- Navigation Buttons -->
<div class="flex items-center gap-2 sm:gap-4">
<!-- Language Switcher -->
<div class="flex items-center gap-1 bg-gray-50 p-1 rounded-xl shadow-sm">
<button
class="lang-btn px-3 py-1.5 sm:px-4 sm:py-2 text-xs sm:text-sm font-medium text-white bg-farmer-green-600 rounded-lg transition-all duration-200 hover:bg-farmer-green-700"
data-lang="en">English</button>
<button
class="lang-btn px-3 py-1.5 sm:px-4 sm:py-2 text-xs sm:text-sm font-medium text-gray-600 hover:bg-farmer-green-50 hover:text-farmer-green-600 rounded-lg transition-all duration-200"
data-lang="hi">हिंदी</button>
<button
class="lang-btn px-3 py-1.5 sm:px-4 sm:py-2 text-xs sm:text-sm font-medium text-gray-600 hover:bg-farmer-green-50 hover:text-farmer-green-600 rounded-lg transition-all duration-200"
data-lang="mr">मराठी</button>
</div>
<button id="loginBtn"
class="hidden sm:inline-flex px-4 py-2 text-sm font-semibold text-farmer-green-600 border-2 border-farmer-green-600 rounded-lg hover:bg-farmer-green-50 transition-all duration-200"
data-i18n="nav.login">Login</button>
<button id="registerBtn"
class="px-4 py-2 text-sm font-semibold text-white bg-gradient-to-r from-farmer-green-600 to-farmer-green-500 rounded-lg hover:shadow-lg hover:-translate-y-0.5 transition-all duration-200"
data-i18n="nav.register">Register</button>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="hero-bg min-h-screen flex items-center justify-center text-white text-center relative">
<div class="absolute inset-0 bg-gradient-to-b from-black/30 to-black/50"></div>
<div class="relative z-10 max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-20 animate-fadeInUp">
<h1 class="text-4xl sm:text-5xl lg:text-6xl xl:text-7xl font-bold mb-6 leading-tight"
data-i18n="hero.title">
Empowering Farmers, <span class="text-farmer-gold-300 relative">Growing Together</span>
</h1>
<p class="text-lg sm:text-xl lg:text-2xl mb-12 opacity-95 font-light max-w-3xl mx-auto"
data-i18n="hero.subtitle">
Your complete agricultural ecosystem for rentals, marketplace, sustainability, and cooperative growth
</p>
<div class="flex flex-col sm:flex-row gap-4 sm:gap-6 justify-center">
<button id="heroRegisterBtn"
class="px-8 py-4 text-base sm:text-lg font-semibold text-white bg-gradient-to-r from-farmer-green-600 to-farmer-green-500 rounded-xl hover:shadow-2xl hover:-translate-y-1 transition-all duration-300"
data-i18n="hero.getStarted">
Get Started
</button>
<button id="heroLearnBtn"
class="px-8 py-4 text-base sm:text-lg font-semibold text-white border-2 border-white rounded-xl hover:bg-white hover:text-farmer-green-600 transition-all duration-300"
data-i18n="hero.learnMore">
Learn More
</button>
</div>
</div>
</section>
<!-- Features Overview -->
<section class="py-16 sm:py-20 lg:py-24 bg-gradient-to-b from-white to-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<h2 class="text-3xl sm:text-4xl lg:text-5xl font-bold text-center text-farmer-green-600 mb-12 sm:mb-16"
data-i18n="features.title">
What We Offer
</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 sm:gap-8">
<!-- Feature Card 1 -->
<div
class="group bg-white p-8 rounded-2xl shadow-md hover:shadow-2xl hover:-translate-y-2 transition-all duration-300 text-center border-2 border-transparent hover:border-farmer-green-200">
<div class="text-5xl sm:text-6xl mb-6 group-hover:scale-110 transition-transform duration-300">🌱
</div>
<h3 class="text-xl sm:text-2xl font-semibold text-farmer-green-600 mb-3"
data-i18n="features.amenities.title">Amenity Rental</h3>
<p class="text-gray-600 leading-relaxed" data-i18n="features.amenities.description">
Affordable rental of seeds, fertilizers, and equipment with flexible payment options
</p>
</div>
<!-- Feature Card 2 -->
<div
class="group bg-white p-8 rounded-2xl shadow-md hover:shadow-2xl hover:-translate-y-2 transition-all duration-300 text-center border-2 border-transparent hover:border-farmer-green-200">
<div class="text-5xl sm:text-6xl mb-6 group-hover:scale-110 transition-transform duration-300">🛒
</div>
<h3 class="text-xl sm:text-2xl font-semibold text-farmer-green-600 mb-3"
data-i18n="features.marketplace.title">Marketplace</h3>
<p class="text-gray-600 leading-relaxed" data-i18n="features.marketplace.description">
Sell your crops directly and earn 25% rental discounts
</p>
</div>
<!-- Feature Card 3 -->
<div
class="group bg-white p-8 rounded-2xl shadow-md hover:shadow-2xl hover:-translate-y-2 transition-all duration-300 text-center border-2 border-transparent hover:border-farmer-green-200">
<div class="text-5xl sm:text-6xl mb-6 group-hover:scale-110 transition-transform duration-300">🌍
</div>
<h3 class="text-xl sm:text-2xl font-semibold text-farmer-green-600 mb-3"
data-i18n="features.carbon.title">Carbon Credits</h3>
<p class="text-gray-600 leading-relaxed" data-i18n="features.carbon.description">
Earn credits for sustainable farming and convert them to cash or discounts
</p>
</div>
<!-- Feature Card 4 -->
<div
class="group bg-white p-8 rounded-2xl shadow-md hover:shadow-2xl hover:-translate-y-2 transition-all duration-300 text-center border-2 border-transparent hover:border-farmer-green-200 sm:col-start-1 lg:col-start-auto">
<div class="text-5xl sm:text-6xl mb-6 group-hover:scale-110 transition-transform duration-300">🤝
</div>
<h3 class="text-xl sm:text-2xl font-semibold text-farmer-green-600 mb-3"
data-i18n="features.group.title">Group Farming</h3>
<p class="text-gray-600 leading-relaxed" data-i18n="features.group.description">
Form cooperatives for bulk discounts and shared resources
</p>
</div>
<!-- Feature Card 5 -->
<div
class="group bg-white p-8 rounded-2xl shadow-md hover:shadow-2xl hover:-translate-y-2 transition-all duration-300 text-center border-2 border-transparent hover:border-farmer-green-200">
<div class="text-5xl sm:text-6xl mb-6 group-hover:scale-110 transition-transform duration-300">💰
</div>
<h3 class="text-xl sm:text-2xl font-semibold text-farmer-green-600 mb-3"
data-i18n="features.loans.title">Farmer Loans</h3>
<p class="text-gray-600 leading-relaxed" data-i18n="features.loans.description">
Access financial assistance for farming supplies and equipment
</p>
</div>
</div>
</div>
</section>
<!-- Authentication Modal -->
<div id="authModal" class="hidden fixed inset-0 z-[2000] items-center justify-center animate-fadeIn">
<div id="modalOverlay" class="absolute inset-0 bg-black/70 modal-overlay-blur"></div>
<div
class="relative bg-white rounded-3xl p-6 sm:p-8 lg:p-10 max-w-md sm:max-w-lg w-[90%] max-h-[90vh] overflow-y-auto shadow-2xl animate-slideUp">
<button id="modalClose"
class="absolute top-4 right-4 sm:top-6 sm:right-6 text-gray-400 hover:text-gray-600 text-3xl sm:text-4xl transition-colors duration-200">×</button>
<!-- Role Selection -->
<div class="auth-step" id="roleSelection">
<h2 class="text-2xl sm:text-3xl font-bold text-farmer-green-600 mb-2" data-i18n="auth.chooseRole">Choose
Your Role</h2>
<p class="text-gray-600 mb-8" data-i18n="auth.selectRole">Select how you want to join AgriSahay</p>
<div class="grid gap-4 sm:gap-6">
<div class="role-card p-6 border-2 border-gray-200 rounded-2xl cursor-pointer hover:border-farmer-green-600 hover:bg-gradient-to-br hover:from-farmer-green-50 hover:to-farmer-green-100/50 hover:-translate-y-1 hover:shadow-lg transition-all duration-300 text-center"
data-role="farmer">
<div class="text-5xl mb-4">👨🌾</div>
<h3 class="text-xl font-semibold text-farmer-green-600 mb-2" data-i18n="auth.farmer">Farmer</h3>
<p class="text-sm text-gray-600" data-i18n="auth.farmerDesc">Access rentals, marketplace, and
cooperative features</p>
</div>
<div class="role-card p-6 border-2 border-gray-200 rounded-2xl cursor-pointer hover:border-farmer-green-600 hover:bg-gradient-to-br hover:from-farmer-green-50 hover:to-farmer-green-100/50 hover:-translate-y-1 hover:shadow-lg transition-all duration-300 text-center"
data-role="administrator">
<div class="text-5xl mb-4">👔</div>
<h3 class="text-xl font-semibold text-farmer-green-600 mb-2" data-i18n="auth.admin">
Administrator</h3>
<p class="text-sm text-gray-600" data-i18n="auth.adminDesc">Manage platform operations and user
accounts</p>
</div>
</div>
</div>
<!-- Login Form -->
<div class="auth-step hidden" id="loginForm">
<button id="backToRoleFromLogin"
class="mb-6 text-gray-600 hover:text-farmer-green-600 font-medium transition-colors duration-200"
data-i18n="auth.back">← Back</button>
<h2 class="text-2xl sm:text-3xl font-bold text-farmer-green-600 mb-8">Login as <span
id="loginRoleText"></span></h2>
<form class="space-y-6">
<div>
<label for="loginEmail" class="block mb-2 font-medium text-gray-700"
data-i18n="auth.email">Email Address</label>
<input type="email" id="loginEmail" placeholder="your@email.com" required
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<div>
<label for="loginPassword" class="block mb-2 font-medium text-gray-700"
data-i18n="auth.password">Password</label>
<input type="password" id="loginPassword" placeholder="Enter your password" required
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<div class="flex flex-wrap justify-between items-center gap-4">
<label class="flex items-center gap-2 cursor-pointer text-sm">
<input type="checkbox" id="rememberMe"
class="w-4 h-4 rounded border-gray-300 text-farmer-green-600 focus:ring-farmer-green-500">
<span class="text-gray-700">Remember me</span>
</label>
<a href="#"
class="text-sm text-farmer-green-600 hover:text-farmer-green-700 font-medium hover:underline">Forgot
password?</a>
</div>
<button type="submit"
class="w-full px-6 py-3 text-base font-semibold text-white bg-gradient-to-r from-farmer-green-600 to-farmer-green-500 rounded-xl hover:shadow-lg hover:-translate-y-0.5 transition-all duration-200">Login</button>
</form>
<p class="text-center mt-6 text-gray-600">Don't have an account? <a href="#" id="switchToRegister"
class="text-farmer-green-600 font-semibold hover:underline">Register here</a></p>
</div>
<!-- Register Form -->
<div class="auth-step hidden" id="registerForm">
<button id="backToRoleFromRegister"
class="mb-6 text-gray-600 hover:text-farmer-green-600 font-medium transition-colors duration-200">←
Back</button>
<h2 class="text-2xl sm:text-3xl font-bold text-farmer-green-600 mb-8">Register as <span
id="registerRoleText"></span></h2>
<form id="registrationForm" class="space-y-5">
<div>
<label for="registerName" class="block mb-2 font-medium text-gray-700">Full Name</label>
<input type="text" id="registerName" placeholder="Enter your full name" required
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<div>
<label for="registerEmail" class="block mb-2 font-medium text-gray-700">Email Address</label>
<input type="email" id="registerEmail" placeholder="your@email.com" required
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<div>
<label for="registerPhone" class="block mb-2 font-medium text-gray-700">Phone Number</label>
<input type="tel" id="registerPhone" placeholder="+91 1234567890" required
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<!-- Farmer-specific fields -->
<div id="farmerFields" class="hidden space-y-5">
<div>
<label for="farmLocation" class="block mb-2 font-medium text-gray-700">Farm Location</label>
<input type="text" id="farmLocation" placeholder="Village, District, State"
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<div>
<label for="farmSize" class="block mb-2 font-medium text-gray-700">Farm Size (in
acres)</label>
<input type="number" id="farmSize" placeholder="e.g., 5" step="0.1"
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<div>
<label for="cropsGrown" class="block mb-2 font-medium text-gray-700">Primary Crops
Grown</label>
<input type="text" id="cropsGrown" placeholder="e.g., Wheat, Rice, Cotton"
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
</div>
<!-- Administrator-specific fields -->
<div id="adminFields" class="hidden space-y-5">
<div>
<label for="department" class="block mb-2 font-medium text-gray-700">Department</label>
<input type="text" id="department" placeholder="e.g., Operations, Support"
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
</div>
<div>
<label for="registerPassword" class="block mb-2 font-medium text-gray-700">Password</label>
<input type="password" id="registerPassword" placeholder="Create a strong password" required
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<div>
<label for="confirmPassword" class="block mb-2 font-medium text-gray-700">Confirm
Password</label>
<input type="password" id="confirmPassword" placeholder="Re-enter your password" required
class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-farmer-green-600 focus:ring-4 focus:ring-farmer-green-100 transition-all duration-200">
</div>
<div>
<label class="flex items-start gap-2 cursor-pointer text-sm">
<input type="checkbox" id="agreeTerms" required
class="w-4 h-4 mt-0.5 rounded border-gray-300 text-farmer-green-600 focus:ring-farmer-green-500">
<span class="text-gray-700">I agree to the Terms & Conditions</span>
</label>
</div>
<button type="submit"
class="w-full px-6 py-3 text-base font-semibold text-white bg-gradient-to-r from-farmer-green-600 to-farmer-green-500 rounded-xl hover:shadow-lg hover:-translate-y-0.5 transition-all duration-200">Create
Account</button>
</form>
<p class="text-center mt-6 text-gray-600">Already have an account? <a href="#" id="switchToLogin"
class="text-farmer-green-600 font-semibold hover:underline">Login here</a></p>
</div>
</div>
</div>
<script src="js/i18n.js"></script>
<script src="js/script.js"></script>
</body>
</html>