forked from omroy07/AgriTech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
568 lines (500 loc) · 17.2 KB
/
contact.html
File metadata and controls
568 lines (500 loc) · 17.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
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
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - AgriTech</title>
<link rel="stylesheet" href="contact.css">
<!-- our new fix styles -->
<!-- <link rel="stylesheet" href="contact.css"> -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Favicon -->
<link rel="icon" type="image/png" href="images/logo.png">
<style>
:root {
--primary-green: #2e7d32;
--accent-green: #22c55e;
--bg-dark: #0f172a;
--card-bg: #1e293b;
--text-light: #f8fafc;
--input-border: #334155;
--nav-height: 70px;
}
/* DARK THEME SUPPORT */
[data-theme="light"] {
--bg-dark: #f1f5f3;
--card-bg: #ffffff;
--text-light: #333333;
--input-border: #cccccc;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-dark);
color: var(--text-light);
line-height: 1.6;
transition: background 0.3s ease;
}
/* --- PREMIUM ADAPTIVE GLASSMORPHISM & SMART-SHRINK NAVBAR --- */
.header {
position: fixed;
top: 0;
width: 100%;
height: var(--nav-height);
background: linear-gradient(135deg, var(--primary-green), #1b5e20);
z-index: 2000;
/* Extended transition for premium feel */
transition: transform 0.3s ease-in-out, height 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, backdrop-filter 0.4s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
display: flex;
align-items: center;
padding: 0 20px;
}
/* GLASSMORPHISM STATE: Applied on scroll */
.header.scrolled {
height: 60px; /* Smart-Shrink */
background: rgba(46, 125, 50, 0.7); /* 70% opacity */
backdrop-filter: blur(10px); /* Adaptive Glassmorphism blur */
-webkit-backdrop-filter: blur(10px);
}
.nav-up {
transform: translateY(-100%);
}
.header-content {
width: 100%;
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-left {
display: flex;
align-items: center;
gap: 20px;
transition: transform 0.3s ease;
}
/* Shrink logo/buttons on scroll */
.header.scrolled .header-left, .header.scrolled .theme-toggle {
transform: scale(0.9);
}
/* --- BOUNCY INTERACTIVE EXIT BUTTON --- */
.nav-back-btn {
color: white;
text-decoration: none;
font-weight: 600;
background: rgba(255, 255, 255, 0.15);
padding: 8px 16px;
border-radius: 30px;
font-size: 0.85rem;
display: flex;
align-items: center;
gap: 8px;
transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}
.nav-back-btn:hover {
background: white;
color: var(--primary-green);
transform: scale(1.1) translateY(-2px);
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.25rem;
font-weight: 700;
color: white;
}
.theme-toggle {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 1.2rem;
transition: all 0.3s ease;
}
.theme-toggle:hover {
background: rgba(255, 255, 255, 0.2);
transform: rotate(15deg);
}
/* --- HERO ADJUSTED --- */
.hero {
padding-top: calc(var(--nav-height) + 60px);
text-align: center;
background: linear-gradient(to bottom, #143a18, var(--bg-dark));
padding-bottom: 80px;
position: relative;
}
.hero-content h1 {
font-size: 3rem;
margin-bottom: 20px;
color: var(--accent-green);
}
.hero-content p {
max-width: 700px;
margin: 0 auto;
opacity: 0.8;
}
/* --- FIXED: IMPROVED DARK DROPDOWN STYLING --- */
select {
width: 100%;
padding: 14px;
border-radius: 10px;
background-color: var(--card-bg) !important;
color: var(--text-light) !important;
border: 1px solid var(--input-border);
font-size: 1rem;
margin-top: 10px;
appearance: none;
cursor: pointer;
/* Tells the browser to use dark-mode for the pop-up list UI */
color-scheme: dark;
}
select option {
background-color: var(--card-bg); /* Forces dark background */
color: var(--text-light);
padding: 10px;
}
.contact-form-section {
padding: 80px 20px;
}
.form-container {
max-width: 900px;
margin: 0 auto;
background: var(--card-bg);
padding: 50px;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.form-group {
margin-bottom: 25px;
}
label {
font-weight: 600;
color: var(--accent-green);
display: block;
}
input, textarea {
width: 100%;
padding: 14px;
margin-top: 8px;
border-radius: 10px;
background: rgba(39, 52, 71, 0.5);
border: 1px solid var(--input-border);
color: var(--text-light);
font-size: 1rem;
}
.submit-btn {
width: 100%;
padding: 16px;
background: var(--primary-green);
color: white;
border: none;
border-radius: 10px;
font-weight: 700;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.submit-btn:hover {
transform: scale(1.02) translateY(-3px);
background: var(--accent-green);
box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}
.contact-methods {
display: flex;
justify-content: center;
gap: 30px;
margin-top: -40px;
padding: 0 20px;
position: relative;
z-index: 10;
flex-wrap: wrap;
}
.method-card {
background: var(--card-bg);
padding: 30px;
border-radius: 15px;
text-align: center;
width: 300px;
border: 1px solid var(--input-border);
transition: transform 0.3s ease;
}
.method-card:hover { transform: translateY(-10px); }
.method-icon {
font-size: 2rem;
color: var(--accent-green);
margin-bottom: 15px;
}
@media (max-width: 768px) {
.form-container { padding: 25px; }
.hero-content h1 { font-size: 2rem; }
}
</style>
</head>
<body>
<div class="container">
<!-- HEADER -->
<header class="header">
<div class="header-content">
<div class="logo">
<i class="fas fa-seedling"></i>
<span>AgriTech</span>
</div>
<button class="theme-toggle" id="themeToggle">
<i class="fas fa-sun"></i>
</button>
</div>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle theme">
<i class="fas fa-sun"></i>
</button>
</div>
</header>
<!-- HERO -->
<section class="hero">
<a href="index.html" class="back-home-btn hero-back">
<i class="fas fa-arrow-left"></i> Back to Home
</a>
<div class="hero-content">
<h1>Get in Touch</h1>
<p>Have questions about our AI-powered agricultural solutions? We're here to help farmers, agricultural
professionals, and communities grow smarter and more sustainably.</p>
</div>
<div class="hero-decoration">
<i class="fas fa-tractor"></i>
</div>
</section>
<!-- CONTACT METHODS -->
<section class="contact-methods">
<div class="method-card">
<div class="method-icon">
<i class="fas fa-envelope"></i>
</div>
<h3>Email Support</h3>
<a href="mailto:support@agritech.com" style="color: var(--accent-green); text-decoration: none;">support@agritech.com</a>
</div>
<div class="method-card">
<div class="method-icon">
<i class="fas fa-phone"></i>
</div>
<h3>Phone Support</h3>
<a href="tel:+1234567890" style="color: var(--accent-green); text-decoration: none;">+1 (234) 567-890</a>
</div>
<div class="method-card">
<div class="method-icon"><i class="fas fa-comments"></i></div>
<h3>Community</h3>
<a href="#community" style="color: var(--accent-green); text-decoration: none;">Join Now</a>
</div>
<div class="method-card">
<div class="method-icon"><i class="fas fa-comments"></i></div>
<h3>Community</h3>
<a href="#community" style="color: var(--accent-green);">Join Now</a>
</div>
</section>
<!-- CONTACT FORM -->
<section class="contact-form-section">
<div class="form-container">
<div class="form-header">
<h2>Send us a Message</h2>
<p>Whether you're a farmer seeking guidance, a researcher interested in collaboration, or someone with
questions about our AI-powered tools, we'd love to hear from you.</p>
</div>
<form class="contact-form" id="contactForm">
<div class="form-row">
<div class="form-group">
<label for="firstName">First Name *</label>
<input type="text" id="firstName" name="firstName" required placeholder="Enter first name">
</div>
<div class="form-group">
<label for="lastName">Last Name *</label>
<input type="text" id="lastName" name="lastName" required placeholder="Enter last name">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="email">Email Address *</label>
<input type="email" id="email" name="email" required placeholder="Enter email address">
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" name="phone" placeholder="Enter phone number">
</div>
</div>
<div class="form-group">
<label for="userType">I am a...</label>
<select id="userType" name="userType">
<option value="">Select your role</option>
<option value="farmer">Farmer</option>
<option value="researcher">Agricultural Researcher</option>
<option value="student">Student</option>
<option value="business">Agribusiness Professional</option>
<option value="developer">Developer/Contributor</option>
<option value="other">Other</option>
</select>
</div>
<div class="form-group">
<label for="subject">Subject *</label>
<select id="subject" name="subject" required>
<option value="">Select a topic</option>
<option value="crop-recommendation">Crop Recommendation</option>
<option value="yield-prediction">Yield Prediction</option>
<option value="disease-detection">Disease Detection</option>
<option value="technical-support">Technical Support</option>
<option value="collaboration">Partnership/Collaboration</option>
<option value="feedback">Feedback/Suggestions</option>
<option value="other">Other</option>
</select>
</div>
<div class="form-group">
<label for="message">Message *</label>
<textarea id="message" name="message" rows="6" maxlength="200"
placeholder="Please describe your question, issue, or how we can help you..." required>
</textarea>
<div class="char-counter" id="messageCounter">0 / 200</div>
</div>
<div class="form-group checkbox-group">
<input type="checkbox" id="newsletter" name="newsletter">
<label for="newsletter">I'd like to receive updates about new features and agricultural insights</label>
</div>
<button type="submit" class="submit-btn">
<i class="fas fa-paper-plane"></i>
Send Message
</button>
</form>
</div>
</section>
<!-- TEAM MEMBERS -->
<section class="team-section">
<h2>Meet Our Team</h2>
<div class="team-grid">
<div class="team-member">
<div class="member-avatar">
<i class="fas fa-user"></i>
</div>
<h3>Om Roy</h3>
<p>Project Lead & ML Engineer</p>
<div class="social-links">
<a href="https://github.com/omroy07"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="team-member">
<div class="member-avatar">
<i class="fas fa-user"></i>
</div>
<h3>Kanisha Sharma</h3>
<p>ML Engineer & Backend Developer</p>
<div class="social-links">
<a href="https://github.com/KanishaSharma11"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="team-member">
<div class="member-avatar">
<i class="fas fa-user"></i>
</div>
<h3>Shubhangi Roy</h3>
<p>ML Engineer & Backend Developer</p>
<div class="social-links">
<a href="https://github.com/ShubhangiRoy12"><i class="fab fa-github"></i></a>
</div>
</div>
</div>
</section>
<!-- FAQ -->
<section class="faq-section">
<h2>Frequently Asked Questions</h2>
<div class="faq-grid">
<div class="faq-item">
<h3>How accurate are the crop recommendations?</h3>
<p>Our AI models are trained on extensive agricultural data and provide recommendations with high accuracy
based on your soil conditions and local weather patterns.</p>
</div>
<div class="faq-item">
<h3>Is AgriTech suitable for small-scale farmers?</h3>
<p>Absolutely! AgriTech is designed to be accessible and valuable for farmers of all scales, from small family
farms to large agricultural operations.</p>
</div>
<div class="faq-item">
<h3>How do I join the farmer community?</h3>
<p>Simply create an account on our platform and you'll have access to our community chat features where you
can connect with fellow farmers and share experiences.</p>
</div>
<div class="faq-item">
<h3>Do you offer training on using the platform?</h3>
<p>Yes! We provide comprehensive guides, video tutorials, and offer support sessions to help you get the most
out of all AgriTech features.</p>
</div>
</div>
</section>
</div>
<script>
// --- PREMIUM NAVIGATION LOGIC ---
let lastScrollTop = 0;
const navbar = document.getElementById('navbar');
window.addEventListener('scroll', function() {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop;
// 1. ADAPTIVE GLASSMORPHISM & SMART SHRINK
if (scrollTop > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
// 2. HIDE ON SCROLL DOWN / SHOW ON SCROLL UP
if (scrollTop > lastScrollTop && scrollTop > 200) {
navbar.classList.add('nav-up');
} else {
navbar.classList.remove('nav-up');
}
// --- THEME TOGGLE LOGIC (FIXED) ---
const themeToggle = document.getElementById('themeToggle');
const root = document.documentElement;
themeToggle.addEventListener('click', () => {
const currentTheme = localStorage.getItem('agritech-theme') || 'dark';
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
root.setAttribute('data-theme', newTheme);
localStorage.setItem('agritech-theme', newTheme);
// Update icon
themeToggle.querySelector('i').className = newTheme === 'light' ? 'fas fa-moon' : 'fas fa-sun';
});
// Load saved theme on load
const savedTheme = localStorage.getItem('agritech-theme') || 'dark';
root.setAttribute('data-theme', savedTheme);
themeToggle.querySelector('i').className = savedTheme === 'light' ? 'fas fa-moon' : 'fas fa-sun';
// Form logic
document.getElementById('contactForm').addEventListener('submit', function(e) {
e.preventDefault();
alert('Message sent successfully! 🌱');
this.reset();
// Reset character counter
if (messageCounter) {
messageCounter.textContent = `0 / ${maxLength}`;
messageCounter.classList.remove("warning", "danger");
}
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth'
});
}
});
});
</script>
<script src="theme.js"></script>
<script src="auth.js"></script>
</body>
</html>