-
Notifications
You must be signed in to change notification settings - Fork 1
/
shop.html
642 lines (571 loc) · 31.5 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
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
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Template</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="shop.css">
</head>
<body>
<header>
<div class="logo">
<img src="logo.svg" alt="Logo">
<div class="logo-text">SUSTAINABLE SEAS</div>
</div>
<nav class="nav-links">
<a href="home.html">Home</a>
<a href="gallery.html">Gallery</a>
<a href="shop.html">Shop</a>
<a href="profile.html">User Profile</a>
<a href="feedback.html">Feedback</a>
<a href="sitemap.html">Sitemap</a>
<a href="team.html">Team</a>
</nav>
</header>
<div class="content" id="content">
<div class="shop-header">
<h1>Charity Shop for Ocean Protection</h1>
<p class="shop-message">Every purchase helps save the ocean and protect sea animals. Thank you for your support!</p>
</div>
<div class="shop-container">
<!-- Women's T-Shirts -->
<div class="product-category" id="women-tshirts">
<h2>Women's T-Shirts</h2>
<div class="product-grid">
<div class="product">
<img src="images/women-shirt1.jpg" alt="Women Shirt 1">
<h3>Wave Whisperer T-Shirt</h3>
<p>$20.00</p>
<div class="product-options">
<label for="size-women1">Size:</label>
<select id="size-women1">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women1">Color:</label>
<select id="color-women1">
<option value="Light Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Wave Whisperer T-Shirt', 20, 'women-shirt1.jpg', document.getElementById('size-women1').value, document.getElementById('color-women1').value);scrollToOrderSummary();showNotification(message);">Add to Cart</button>
</div>
<div class="product">
<img src="images/women-shirt2.jpg" alt="Women Shirt 2">
<h3>Sea Saver T-Shirt</h3>
<p>$18.00</p>
<div class="product-options">
<label for="size-women2">Size:</label>
<select id="size-women2">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women2">Color:</label>
<select id="color-women2">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Sea Saver T-Shirt', 18, 'women-shirt2.jpg', document.getElementById('size-women2').value, document.getElementById('color-women2').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/women-shirt3.jpg" alt="Women Shirt 3">
<h3>Ocean Ally T-Shirt</h3>
<p>$18.00</p>
<div class="product-options">
<label for="size-women3">Size:</label>
<select id="size-women3">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women3">Color:</label>
<select id="color-women3">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Ocean Ally T-Shirt', 18, 'women-shirt3.jpg', document.getElementById('size-women3').value, document.getElementById('color-women3').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/women-shirt4.jpg" alt="Women Shirt 4">
<h3>Marine Protector T-Shirt</h3>
<p>$18.00</p>
<div class="product-options">
<label for="size-women4">Size:</label>
<select id="size-women4">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women4">Color:</label>
<select id="color-women4">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Marine Protector T-Shirt', 18, 'women-shirt4.jpg', document.getElementById('size-women4').value, document.getElementById('color-women4').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/women-shirt5.jpg" alt="Women Shirt 5">
<h3>Coral Caregiver T-Shirt</h3>
<p>$18.00</p>
<div class="product-options">
<label for="size-women5">Size:</label>
<select id="size-women5">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women5">Color:</label>
<select id="color-women5">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Coral Caregiver T-Shirt', 18, 'women-shirt5.jpg', document.getElementById('size-women5').value, document.getElementById('color-women5').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/women-shirt6.jpg" alt="Women Shirt 6">
<h3>Tide Tender T-Shirt</h3>
<p>$18.00</p>
<div class="product-options">
<label for="size-women6">Size:</label>
<select id="size-women6">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women6">Color:</label>
<select id="color-women6">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Tide Tender T-Shirt', 18, 'women-shirt6.jpg', document.getElementById('size-women6').value, document.getElementById('color-women6').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/women-shirt7.jpg" alt="Women Shirt 7">
<h3>Blue Believer T-Shirt</h3>
<p>$18.00</p>
<div class="product-options">
<label for="size-women7">Size:</label>
<select id="size-women7">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women7">Color:</label>
<select id="color-women7">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Blue Believer T-Shirt', 18, 'women-shirt7.jpg', document.getElementById('size-women7').value, document.getElementById('color-women7').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/women-shirt8.jpg" alt="Women Shirt 8">
<h3>Tide Tender T-Shirt</h3>
<p>$18.00</p>
<div class="product-options">
<label for="size-women8">Size:</label>
<select id="size-women8">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women8">Color:</label>
<select id="color-women8">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Tide Tender T-Shirt', 18, 'women-shirt8.jpg', document.getElementById('size-women8').value, document.getElementById('color-women8').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/women-shirt9.jpg" alt="Women Shirt 9">
<h3>Love sea T-Shirt</h3>
<p>$18.00</p>
<div class="product-options">
<label for="size-women9">Size:</label>
<select id="size-women9">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-women9">Color:</label>
<select id="color-women9">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Love sea T-Shirt', 18, 'women-shirt9.jpg', document.getElementById('size-women9').value, document.getElementById('color-women9').value);scrollToOrderSummary();">Add to Cart</button>
</div>
</div>
</div>
<!-- Men's T-Shirts -->
<div class="product-category" id="men-tshirts">
<h2>Men's T-Shirts</h2>
<div class="product-grid">
<div class="product">
<img src="images/men-shirt1.jpg" alt="Men Shirt 1">
<h3>Wave Rider T-Shirt</h3>
<p>$22.00</p>
<div class="product-options">
<label for="size-men1">Size:</label>
<select id="size-men1">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-men1">Color:</label>
<select id="color-men1">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Wave Rider T-Shirt', 22, 'men-shirt1.jpg', document.getElementById('size-men1').value, document.getElementById('color-men1').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/men-shirt2.jpg" alt="Men Shirt 2">
<h3>Blue Horizon T-Shirt</h3>
<p>$21.00</p>
<div class="product-options">
<label for="size-men2">Size:</label>
<select id="size-men2">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-men2">Color:</label>
<select id="color-men2">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Blue Horizon T-Shirt', 21, 'men-shirt2.jpg', document.getElementById('size-men2').value, document.getElementById('color-men2').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/men-shirt3.jpg" alt="Men Shirt 3">
<h3>Ocean Conservation T-Shirt</h3>
<p>$22.00</p>
<div class="product-options">
<label for="size-men3">Size:</label>
<select id="size-men3">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-men3">Color:</label>
<select id="color-men3">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Ocean Conservation T-Shirt', 22, 'men-shirt1.jpg', document.getElementById('size-men1').value, document.getElementById('color-men1').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/men-shirt4.jpg" alt="Men Shirt 4">
<h3>Deep Sea Delight T-Shirt</h3>
<p>$22.00</p>
<div class="product-options">
<label for="size-men4">Size:</label>
<select id="size-men4">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-men4">Color:</label>
<select id="color-men4">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Deep Sea Delight T-Shirt', 22, 'men-shirt4.jpg', document.getElementById('size-men4').value, document.getElementById('color-men4').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/men-shirt5.jpg" alt="Men Shirt 5">
<h3>Marine Majesty T-Shirt</h3>
<p>$22.00</p>
<div class="product-options">
<label for="size-men5">Size:</label>
<select id="size-men5">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-men5">Color:</label>
<select id="color-men5">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Marine Majesty T-Shirt', 22, 'men-shirt5.jpg', document.getElementById('size-men5').value, document.getElementById('color-men5').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/men-shirt6.jpg" alt="Men Shirt 6">
<h3>Ocean Dreamer Tee</h3>
<p>$22.00</p>
<div class="product-options">
<label for="size-men6">Size:</label>
<select id="size-men6">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-men6">Color:</label>
<select id="color-men6">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Ocean Dreamer Tee', 22, 'men-shirt6.jpg', document.getElementById('size-men6').value, document.getElementById('color-men6').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/men-shirt7.jpg" alt="Men Shirt 7">
<h3>Marine Bliss Tee</h3>
<p>$22.00</p>
<div class="product-options">
<label for="size-men7">Size:</label>
<select id="size-men7">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<label for="color-men7">Color:</label>
<select id="color-men7">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Marine Bliss Tee', 22, 'men-shirt7.jpg', document.getElementById('size-men7').value, document.getElementById('color-men7').value);scrollToOrderSummary();">Add to Cart</button>
</div>
</div>
</div>
<!-- Children's T-Shirts -->
<div class="product-category" id="children-tshirts">
<h2>Children's T-Shirts</h2>
<div class="product-grid">
<div class="product">
<img src="images/children-shirt1.jpg" alt="Children Shirt 1">
<h3>Ocean Kids T-Shirt</h3>
<p>$15.00</p>
<div class="product-options">
<label for="size-children1">Size:</label>
<select id="size-children1">
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
</select>
<label for="color-children1">Color:</label>
<select id="color-children1">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Children Ocean Kids T-Shirt', 15, 'children-shirt1.jpg', document.getElementById('size-children1').value, document.getElementById('color-children1').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/children-shirt2.jpg" alt="Children Shirt 2">
<h3>Save the Whales T-Shirt</h3>
<p>$16.00</p>
<div class="product-options">
<label for="size-children2">Size:</label>
<select id="size-children2">
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
</select>
<label for="color-children2">Color:</label>
<select id="color-children2">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Children Save the Whales T-Shirt', 16, 'children-shirt2.jpg', document.getElementById('size-children2').value, document.getElementById('color-children2').value);scrollToOrderSummary();">Add to Cart</button>
</div>
</div>
</div>
<!-- Slippers -->
<div class="product-category" id="Slippers">
<h2>Slippers</h2>
<div class="product-grid">
<div class="product">
<img src="images/Slippers1.jpg" alt="Slippers">
<h3>Blue ocean Slippers</h3>
<p>$10.00</p>
<div class="product-options">
<label for="size-Slippers1">Size:</label>
<select id="size-Slippers1">
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
</select>
<label for="color-Slippers1">Color:</label>
<select id="color-Slippers1">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Blue ocean Slippers', 10, 'Slippers1.jpg', document.getElementById('size-Slippers1').value, document.getElementById('color-Slippers1').value);scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/Slippers2.jpg" alt="Slippers2">
<h3>Save the Whales Slippers</h3>
<p>$16.00</p>
<div class="product-options">
<label for="size-Slippers2">Size:</label>
<select id="size-Slippers2">
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
</select>
<label for="color-Slippers2">Color:</label>
<select id="color-Slippers2">
<option value="Blue">Blue</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>
</div>
<button onclick="addToCart('Children Save the Whales Slippers', 16, 'Slippers2.jpg', document.getElementById('size-Slippers2').value, document.getElementById('color-Slippers2').value);scrollToOrderSummary();">Add to Cart</button>
</div>
</div>
</div>
<!-- Decorations -->
<div class="product-category" id="decorations">
<h2>Decorations</h2>
<div class="product-grid">
<div class="product">
<img src="images/decor1.jpg" alt="Decor 1">
<h3>Crotchet</h3>
<p>$12.00</p>
<button onclick="addToCart('Crotchet', 12, 'decor1.jpg');scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/decor2.jpg" alt="Decor 2">
<h3>Sea shells decor</h3>
<p>$25.00</p>
<button onclick="addToCart('Sea shells decor', 25, 'decor2.jpg');scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/decor3.jpg" alt="Decor 3">
<h3>Crotchet whale</h3>
<p>$12.00</p>
<button onclick="addToCart('Crotchet whale', 12, 'decor3.jpg');scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/decor4.jpg" alt="Decor 4">
<h3>Blue ocean rock</h3>
<p>$12.00</p>
<button onclick="addToCart('Blue ocean rock', 12, 'decor4.jpg');scrollToOrderSummary();">Add to Cart</button>
</div>
</div>
</div>
<div class="product-category" id="bands">
<h2>Bands</h2>
<div class="product-grid">
<div class="product">
<img src="images/bands1.jpg" alt="bands 1">
<h3>Ocean Band</h3>
<p>$10.00</p>
<button onclick="addToCart('Ocean Band', 10, 'bands1.jpg');scrollToOrderSummary();">Add to Cart</button>
</div>
</div>
</div>
<!-- Mugs -->
<div class="product-category" id="mugs">
<h2>Mugs</h2>
<div class="product-grid">
<div class="product">
<img src="images/mug1.jpg" alt="Mug 1">
<h3>Ocean Waves Mug</h3>
<p>$10.00</p>
<button onclick="addToCart('Ocean Waves Mug', 10, 'mug1.jpg');scrollToOrderSummary();">Add to Cart</button>
</div>
<div class="product">
<img src="images/mug2.jpg" alt="Mug 2">
<h3>Sea Life Mug</h3>
<p>$12.00</p>
<button onclick="addToCart('Sea Life Mug', 12, 'mug2.jpg');scrollToOrderSummary();">Add to Cart</button>
</div>
</div>
</div>
</div>
<div id="notification" class="notification"></div>
<div id="order-summary">
<div id="order-summary-heading">
<h2>Order Summary</h2>
</div>
<div id="cart-summary">
<p>No items in cart.</p>
</div>
<div id="checkout-btn">
<button onclick="checkout()">Checkout</button>
</div>
</div>
<section id="funds-usage">
<h2>How We Use Your Money</h2>
<p>Your purchase directly supports various initiatives aimed at protecting ocean life and preserving marine ecosystems. Here’s how your contributions help:</p>
<ul>
<li>Funding clean-up drives to remove plastic and other pollutants from the ocean.</li>
<li>Supporting research on marine life and ecosystems.</li>
<li>Promoting sustainable fishing practices.</li>
<li>Advocating for stronger ocean protection policies.</li>
<p>Thank you for helping us protect the ocean!</p>
</ul>
</section>
</div>
<footer>
<div class="student-name">
<p>Miuni Weerasinghe <br>
<span class = "role">Student 1</span>
</p>
</div>
<div class="editor">
<a href="editor1.html"target="_blank">Editor</a>
</div>
</footer>
<script src="shop.js"></script>
</body>
</html>