forked from priona-priti/FarmVani-Hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshop.html
419 lines (391 loc) · 15.3 KB
/
shop.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Shop</title>
<link rel="stylesheet" href="styleshop.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" />
<script src="script.js" defer></script>
<link
href="https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@300&family=Merriweather:wght@300;400&family=PT+Serif&display=swap"
rel="stylesheet" />
</head>
<body>
<nav id="navbar">
<div class="left">
<img src="images/logo.png" alt="logo" />
</div>
<div class="right">
<ul>
<li class="li"><a href="index.html">Home</a></li>
<li class="li"><a href="blogpage.html">Blog</a></li>
<li class="li"><a href="shop.html">Shop</a></li>
<li class="li"><a id="openDialog1" href="#">Login/Sign Up</a></li>
<li class="li"><img src="images/Translate.png" alt="" /></li>
</ul>
</div>
</nav>
<div id="complete-page">
<div class="shop-head-text">
<div class="shop-text">
<h1>SHOP</h1>
<p>
Posting a blog will award you with 100 coins. Login to your account
everyday to get 5 coins. Sign up and set your account to get 10
coins!
</p>
<div class="button12">
<button class="butn1">Post</button>
<button class="butn2">
<p>0</p>
<img src="images/coin.png" alt="" />
</button>
</div>
</div>
<div class="coinimage">
<img src="images/coinlogo.png" alt="" />
</div>
</div>
<h1 class="merch">OUR MERCHANDISE</h1>
<section class="product">
<button class="pre-btn"><img src="images/arrow.png" alt="" /></button>
<button class="nxt-btn"><img src="images/arrow.png" alt="" /></button>
<div class="product-container">
<div class="product-card">
<div class="product-image">
<span class="discount-tag">50% off</span>
<img src="images/card1.webp" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">Nemo Shoes</h2>
<span class="price">Rs 50</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">50% off</span>
<img src="images/card2.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">JUTE Bag</h2>
<span class="price">Rs 40</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">80% off</span>
<img src="images/card8.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">GUNEE Ecofriendly Handicraft Cane Bar Stool</h2>
<span class="price">Rs 60</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">50% off</span>
<img src="images/card4.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">GreenGlass Glasses</h2>
<span class="price">Rs 40</span>
</div>
<h1 class="merch">OUR MERCHANDISE</h1>
<section class="product">
<button class="pre-btn"><img src="images/Frontarrow.png" alt="" /></button>
<button class="nxt-btn"><img src="images/Frontarrow.png" alt="" /></button>
<div class="product-container">
<div class="product-card">
<div class="product-image">
<span class="discount-tag">50% off</span>
<img src="images/card1.webp" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">Nemo Shoes</h2>
<span class="price">Rs 100</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">50% off</span>
<img src="images/card2.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">JUTE Bag</h2>
<span class="price">Rs 60</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">80% off</span>
<img src="images/card8.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">GUNEE Ecofriendly Handicraft Cane Bar Stool</h2>
<span class="price">Rs 200</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">50% off</span>
<img src="images/card4.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">GreenGlass Glasses</h2>
<span class="price">Rs 60</span>
</div>
</div>
</div>
<div class="product-card">
<div class="product-image">
<img src="images/card5.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">Pangaioa Cotton Sweatshirt</h2>
<span class="price">Rs 70</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">50% off</span>
<img src="images/card6.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">FinalStraw Waterbottles</h2>
<span class="price">Rs 90</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">60% off</span>
<img src="images/card7.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">EcoBaaj Bags</h2>
<span class="price">Rs 40</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">30% off</span>
<img src="images/card3.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">EcoJot Notebooks</h2>
<span class="price">Rs 60</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<img src="images/card9.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">
bioQ Jumbo Eco Friendly Plantable Stationery Gift Box</h2>
<span class="price">Rs 80</span>
</div>
</div>
<div class="product-card">
<div class="product-image">
<span class="discount-tag">60% off</span>
<img src="images/card10.jpg" class="product-thumb" alt="" />
<button class="card-btn">add to wishlist</button>
</div>
<div class="product-info">
<h2 class="product-brand">FWQPRA® Set of 4 Bamboo Insulation Heat Table Pad Coasters Eco-Friendly Tableware
</h2>
<span class="price">Rs 150</span>
</div>
</div>
</div>
</section>
<div>
<h1 class="vouch">MY VOUCHERS</h1>
<div class="box-row1">
<div class="box1 boxvouch">
<p>On the purchase of two ,
get one product absolutely free</p>
<img src="images/horn 1.png" alt="">
</div>
<div class="box2 boxvouch">
<p>Get Modern Farming set absolutely free on purchase of 500 coins </p>
<img src="images/farming set 1.png" alt="" />
</div>
<div class="arrow">
<img src="images/Group 3.png" alt="" />
<a href="#"></a>
</div>
</div>
</div>
<footer>
<div class="footer">
<img src="images/Copyright.png" alt="">
<div class="copyright-text">
<h5>[email protected]</h5>
</div>
</div>
</footer>
<dialog id="authDialog1">
<div class="container">
<div class="left1">
<h1>LOGIN</h1>
<h2>Welcome back, fellow user!
Fill these up to log in to your
account.</h2>
<form id="login">
<div class="form-groups">
<label for="username">Username</label><br>
<input type="text" id="name" name="name" required><br>
</div>
<div class="form-groups">
<label for="password">Password</label><br>
<input type="password" id="password" name="password" required><br>
</div>
<a id="password1" href="forgot password"> Forgot Password</a>
<br>
</form>
<button type="submit">Done</button>
<h2>New here? <a id="openDialog11" href="#">Sign up</a> and create your account</h2>
</div>
<div class="right2">
<div>
<h3>We missed you!</h3>
</div>
<div>
<img class="farmer" src="images/farmerbro.png" alt="">
</div>
</div>
<!-- <div class="right21"> -->
<img class="cross" id="closeDialog1" src="images/cross.png" alt="">
<!-- </div> -->
<!-- <button id="closeDialog1">Close</button> -->
</div>
</dialog>
<!-- SIGN UP FORM -->
<dialog id="authDialog2">
<div class="container">
<div class="left1">
<h1>SIGN UP</h1>
<h2>Delve into the world of green
knowledge!</h2>
<form id="sign-up">
<div class="form-groups">
<label for="email">Email ID</label><br>
<input type="email" id="email" name="email" required><br>
</div>
<div class="form-groups">
<label for="username">Username</label><br>
<input type="text" id="name" name="name" required><br>
</div>
<div class="form-groups">
<label for="password">Password:</label><br>
<input type="password" id="password" name="password" required><br>
</div>
</form>
<button id="more" type="submit">Done</button>
<h2>Have an existing account? <a id="openDialog21" href="#">Login</a> here</h2>
</div>
<div class="right2">
<img class="namaste" src="images/namaste 1.png" alt="">
</div>
<!-- <button id="closeDialog2">Close</button> -->
<img class="cross" id="closeDialog2" src="images/cross.png" alt="">
</div>
</dialog>
<!-- Tell us more form -->
<dialog id="authDialog3">
<div class="container">
<div class="left1">
<h1>TELL US MORE ABOUT YOURSELF</h1>
<h2>Your current profession/job</h2>
<form id="tell-us">
<button type="submit">Farmer</button>
<button type="submit">Scientist</button>
<button type="submit">Agronomist</button>
<button type="submit">Agro student</button>
<button type="submit">Eco-researcher</button>
<button type="submit">Plant hobby</button>
<br>
<div class="form-groups">
<label for="dob">Date of Birth </label><br>
<input type="date" id="dob" name="dob" required><br>
</div>
</form>
<button id="more1" type="submit">Done</button>
</div>
<div class="right2">
<img class="professions" src="images/professions.png" alt="">
</div>
</div>
</dialog>
<script>
// For login form
const openButton1 = document.getElementById('openDialog1');
const dialog1 = document.getElementById('authDialog1');
const closeButton1 = document.getElementById('closeDialog1');
const signInForm = document.getElementById('login');
openButton1.addEventListener('click', () => {
dialog1.showModal();
});
closeButton1.addEventListener('click', () => {
dialog1.close();
});
signInForm.addEventListener('submit', (event) => {
event.preventDefault();
// Handle sign-in logic here
});
// for sign up form
// const openButton2 = document.getElementById('openDialog2');
const dialog2 = document.getElementById('authDialog2');
const closeButton2 = document.getElementById('closeDialog2');
const signUpForm = document.getElementById('sign-up');
// openButton2.addEventListener('click', () => {
// dialog2.showModal();
// });
closeButton2.addEventListener('click', () => {
dialog2.close();
});
signUpForm.addEventListener('submit', (event) => {
event.preventDefault();
// Handle sign-in logic here
});
//eachother login and sign up form
const openSignupButton = document.getElementById('openDialog11');
const openLoginButton = document.getElementById('openDialog21');
openLoginButton.addEventListener('click', () => {
dialog1.showModal();
dialog2.close();
});
openSignupButton.addEventListener('click', () => {
dialog2.showModal();
dialog1.close();
});
//for tell us form
const openButton3 = document.getElementById('more');
const dialog3 = document.getElementById('authDialog3');
const closeButton3 = document.getElementById('more1');
openButton3.addEventListener('click', () => {
dialog3.showModal();
dialog2.close();
});
closeButton3.addEventListener('click', () => {
dialog3.close();
});
</script>
<link rel="stylesheet" href="script.js">
</body>
</html>