-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
493 lines (442 loc) · 16.3 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DhaanGo</title>
<link rel="stylesheet" href="styles.css" />
<link rel="icon" href="images/logo.png" />
<script src="https://kit.fontawesome.com/6e98228717.js" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap" rel="stylesheet">
<style>
body,
html {
height: 100%;
margin: 0;
overflow: hidden;
overflow-y: auto;
overflow-x: hidden;
/* Prevent scrollbars from appearing */
}
/* Video background styles */
.video-background {
position: relative;
/* Fix the video in place */
top: 0;
left: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
object-fit: cover;
/* Cover the entire area */
z-index: -1;
/* Send the video to the background */
transition: opacity 3s ease-in-out, transform 1s ease-in-out
/* Smooth transition for fade and scale */
}
/* Navbar styles */
nav {
position: absolute;
/* Keep navbar relative for shadow */
z-index: 10;
background-color: rgba(18, 18, 18, 0.1);
/* Ensure navbar is above the video */
}
.navbar-shadow {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
/* Add shadow to the navbar */
}
/* Additional styles for your content */
.content {
position: relative;
z-index: 2;
/* Make sure content is above the video */
color: white;
/* Change text color for visibility */
text-align: center;
/* Center the content */
margin-top: 20%;
/* Adjust margin to position content */
}
nav {
transition: opacity 0.3s ease;
}
/* For active dropdown toggle */
nav.hidden {
opacity: 0;
/* Fade out */
pointer-events: none;
/* Prevent interaction when hidden */
}
body::-webkit-scrollbar {
width: 0px;
height: 0px;
}
body {
-ms-overflow-style: none;
scrollbar-width: none;
}
nav .heading {
font-size: 120px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin-top: 20%;
z-index: 10;
}
.las {
margin-top: 10000%
}
#mm {
display: inline-block;
border-radius: 48%;
border: 3px solid transparent;
/* Set border to transparent to see the glow */
animation: rotate 4s linear infinite;
position: relative;
width: 40px;
height: 40px;
z-index: 10;
box-shadow: 0 0 10px rgb(255, 118, 141), 0 0 20px rgba(255, 56, 89, 0.915), 0 0 30px pink;
/* Pinkish glow effect */
margin-top: 3px;
margin-left: 1px
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.video-background {
position: relative;
overflow: hidden;
width: 100%;
height: 100vh;
}
.video-background video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.video-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 1;
white-space: nowrap;
font-size: 400%;
color: rgb(255, 251, 251);
font-weight: bold;
font-family: 'Montserrat', sans-serif;
/* Using Montserrat */
}
.video-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 1;
white-space: nowrap;
font-size: 400%;
color: rgb(255, 251, 251);
font-weight: bold;
font-family: 'Montserrat', sans-serif;
/* Make sure to include the Google Font */
}
.glow-button {
margin-top: 20px;
/* Space between the text and button */
padding: 10px 10px;
/* Button padding */
font-size: 0.36em;
/* Adjust as needed */
color: white;
/* Button text color */
background-color: transparent;
/* Pinkish background */
border: 2px solid white;
/* No border */
border-radius: 25px;
/* Rounded corners */
cursor: pointer;
/* Pointer cursor on hover */
transition: all 0.3s ease;
font-family: 'Montserrat', sans-serif;
/* Smooth transition for hover effect */
font-weight: bold;
padding: 7px;
width: 180px;
cursor: pointer;
z-index: 10;
cursor: pointer;
}
.glow-button:hover {
box-shadow: 0 0 10px rgb(231, 227, 227), 0 0 20px rgb(255, 255, 255), 0 0 30px pink;
/* Stronger glow on hover */
transform: scale(1.05);
cursor: pointer;
/* Slightly increase size on hover */
background-color: white;
}
.glow-button svg {
width: 20px;
/* Adjusted width */
height: 20px;
/* Adjusted height */
margin-right: 5%;
margin-left: 8%;
fill: white;
/* Space between the icon and text */
}
.mai .first div,.mai .second div {
display: flex;
flex-direction: row;
width:70%;
margin-left:14%;
gap:80px;
}
.mai{
display: flex;
flex-direction: column;
gap:90px
}
.mai .second div{flex-direction: row-reverse;}
.mai img {
width: 700px; /* Set the width of the images */
height: 400px; /* Set the height of the images */
border-radius: 19px; /* Set the initial border radius */
transition: transform 0.4s ease-in;
}
.mai img:hover {
cursor: pointer; /* Change cursor on hover */
transform: scale(1.1);
}
.mai div {
font-size: 23px;
font-weight: bold;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
justify-content: center;
align-items: center;
text-align: center;
}
footer{
background-color: #f0f0f0;
padding: 20px;
text-align: center;
margin-bottom:7%;
font-weight:bolder;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
</style>
</head>
<body>
<!-- Video Background -->
<div class="video-background">
<video onscroll="document.video.style.opacity='1'" class="video-background" autoplay muted loop>
<source src="images/bvideo.mp4" type="video/mp4">
<p #id="text"></p>
Your browser does not support the video tag.
</video>
<div class="video-overlay">
<div class="typing-text">
<span class="text"></span>
<span class="blink">|</span>
<br>
<button class="glow-button">MittiMitra<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
<path
d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z" />
</svg>
</button>
</div>
</div>
</div>
<!-- Navbar -->
<nav class="navbar-shadow">
<div class="main">
<div class="logo">
<a href="">
<img src="images/logo.png" alt="DhaanGo Logo" />
<div>DhaanGo</div>
</a>
</div>
<div class="options">
<!-- <div class="mp_dropdown">
<a href="marketplace">
<p class="mp">Marketplace</p>
</a>
</div> -->
<div class="menu-item" onclick="toggleDropdown('marketplace')">
<p>Marketplace</p>
<div class="dropdown" id="marketplace">
<a href="marketplace"><i class="fa-solid fa-handshake-angle"></i>Buy items</a>
<a href="marketplace/sell"><i class="fa-brands fa-instagram"></i> Sell items</a>
</div>
</div>
<div>
<a href="resources">Resources</a>
</div>
<div class="menu-item" onclick="toggleDropdown('khetwan')">
<p>Khetwan</p>
<div class="dropdown" id="khetwan">
<a href="chatapp/users.php"><i class="fa-solid fa-handshake-angle"></i> P2P</a>
<a href="chatapp/commitee"><i class="fa-brands fa-instagram"></i> Community</a>
</div>
</a>
</div>
<div class="menu-item" onclick="toggleDropdown('tools')">
<a href="tools">
<p>Tools</p>
<!-- <div class="dropdown" id="tools">
<a href="#"><i class="fa-solid fa-indian-rupee-sign"></i> Profit Calculator</a>
<a href="#"><i class="fa-solid fa-arrow-trend-up"></i> MSP Rates</a>
<a href="#"><i class="fa-solid fa-cloud"></i> Weather Forecast</a>
</div> -->
</a>
</div>
<div class="menu-item" onclick="toggleDropdown('auth')">
<p class="login">Join</p>
<div class="dropdown" id="auth">
<a href="login/login.php"><i class="fa-solid fa-user-plus"></i> Log In</a>
<a href="login_b/buisness_login"><i class="fa-solid fa-arrow-right-to-bracket"></i> Login for
Business</a>
</div>
</div>
<div>
<label class="switch">
<input type="checkbox" id="theme-toggle" />
<span class="slider"></span>
</label>
</div>
</div>
</div>
<!-- <div class="heading">ndkn</div> -->
</nav>
<button class="glow-button">
<svg xmlns="http://www.w3.org/2000/svg" fill="black" viewBox="0 0 24 24">
<path d="M12 2l-1.41 1.41L16.17 8H0v2h16.17l-5.58 5.59L12 22l10-10z" />
</svg>
Link Text
</button>
<div class="mai">
<div class="first">
<div>
<img src="images/main1.jpeg" alt="">
<p>Join a growing community of forward-thinking farmers who are already benefiting from our tools. Share your experiences, learn from others, and be part of the agricultural revolution.</p>
</div>
</div>
<div class="second">
<div>
<img src="images/main2.jpeg" alt="">
<div>Our tools are designed specifically for farmers, addressing your unique challenges. From planting to harvesting, we’ve got you covered.</div>
</div>
</div>
</div>
<!-- Floating Dock (Optional) -->
<div class="floating-dock-container">
<ul class="floating-dock">
<li>
<a href="">
<i class="fa-solid fa-house"></i>
<span class="title">Home</span>
</a>
</li>
<li>
<a href="resources">
<i class="fa-solid fa-book-open"></i>
<span class="title">Resources</span>
</a>
</li>
<li>
<a href="">
<img src="images/mm.jpg" alt="" id="mm" />
<span class="title">MittiMitra</span>
</a>
</li>
<li>
<a href="chatapp/commitee">
<i class="fa-solid fa-users"></i>
<span class="title">Community</span>
</a>
</li>
<li>
<a href="Tools">
<i class="fa-solid fa-gear"></i>
<span class="title">Tools</span>
</a>
</li>
</ul>
</div>
<div class="scroll-content">
<!-- Optional Content Overlay -->
<div class="content">
<h1>Welcome to DhaanGo</h1>
<p>Your tagline or description goes here.</p>
</div>
</div>
<footer >
<div> © 2024 Al-Codia All rights reserved </div>
<!-- <p class="text-center text-body-secondary"></p> -->
</footer>
<script src="script.js"></script>
<script>
const lo = document.querySelector('.main .options .menu-item .login ')
const loginxhr = new XMLHttpRequest()
loginxhr.open('GET', 'login.php', true)
loginxhr.onload = function () {
if (loginxhr.status == 200) {
const da = loginxhr.responseText
console.log(da)
if (da === "user_b") {
lo.textContent = "Profile"
document.getElementById("auth").style.display = "none"
lo.addEventListener("click", () => {
window.location.href = "login_b/buisness_login/profile"
})
}
else if (da === "user_f") {
lo.textContent = "Profile"
document.getElementById("auth").style.display = "none"
lo.addEventListener("click", () => {
window.location.href = "profile_main/login_form.php"
})
}
}
}
loginxhr.send()
</script>
<script>
const typingText = document.querySelector('.text');
const text = 'Cultivating Success, Harvesting Progress ';
let index = 0;
function type() {
if (index < text.length) {
typingText.textContent += text.charAt(index);
index++;
setTimeout(type, 150);
} else {
setTimeout(clearText, 2000);
}
}
function clearText() {
typingText.textContent = '';
index = 0;
setTimeout(type, 200);
}
type();
</script>
<script>
</script>
</body>
</html>