-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshop.html
211 lines (181 loc) · 9.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Store | Preserve Life Below Water</title>
<link rel="icon" href="img/favicon.png">
<link rel="stylesheet" href="css/shop.css">
<link rel="stylesheet" href="css/splash.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body class="">
<div id="splash">
<h1 class="splash-header">
<span class="splash-logo">PRESERVE THE BLUE,</span><span class="splash-logo"> PROTECT THE EARTH.</span>
</h1>
<div class="loader splash-header splash-text"></div>
</div>
<div class="container">
<header>
<div class="title">Our products</div>
<div class="cart-icon" title="Show Cart">
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M6 15a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm0 0h8m-8 0-1-4m9 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-9-4h10l2-7H3m2 7L3 4m0 0-.792-3H1" />
</svg>
<span id="cart-count">0</span>
</div>
</header>
<div class="description">
<em>
The store is dedicated to fundraising for the aim of conserving and sustainably use the oceans, seas,
and marine resources for sustainable development. By purchasing products from this store, you are
contributing to the protection and preservation of marine life and ecosystems.
</em>
</div>
<!-- Product Showcase -->
<div class="products-list">
<div class="product" id="tshirt">
<img src="img/t-shirt.png" alt="Image of a Black Oversized T-Shirt" title="Click on image to zoom">
<h2>Oversized Tee</h2>
<p>Black</p>
<div class="product-price">$19.99</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="black-crewneck">
<img src="img/black-crewneck.png" alt="Image of a Black Crewneck T-Shirt" title="Click on image to zoom">
<h2>Crewneck Tee</h2>
<p>Black</p>
<div class="product-price">$89.49</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="white-crewneck">
<img src="img/white-crewneck.png" alt="Image of a White Crewneck T-Shirt" title="Click on image to zoom">
<h2>Crewneck Tee</h2>
<p>White</p>
<div class="product-price">$89.49</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<!-- <div></div> -->
<div class="product" id="black-bottle">
<img src="img/black-bottle.png" alt="Image of a Black Water Bottle" title="Click on image to zoom">
<h2>Water Bottle</h2>
<p>Black</p>
<div class="product-price">$39.99</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="white-bottle">
<img src="img/white-bottle.png" alt="Image of a White Water Bottle" title="Click on image to zoom">
<h2>Water Bottle</h2>
<p>White</p>
<div class="product-price">$39.99</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="black-hydroflask">
<img src="img/black-hydroflask.png" alt="Image of a Black Hydroflask" title="Click on image to zoom">
<h2>Hydroflask</h2>
<p>Black</p>
<div class="product-price">$69.99</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="white-hydroflask">
<img src="img/white-hydroflask.png" alt="Image of a White Hydroflask" title="Click on image to zoom">
<h2>Hydroflask</h2>
<p>White</p>
<div class="product-price">$69.99</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="bracelet">
<img src="img/bracelet.jpeg" alt="Image of a Cyan Bracelet" title="Click on image to zoom">
<h2>Bracelet</h2>
<p>Cyan</p>
<div class="product-price">$3.49</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="bracelet-stack">
<img src="img/bracelet-2.jpeg" alt="Image of a Stack of Blue Bracelets" title="Click on image to zoom">
<h2>Bracelet Stacks</h2>
<p>Blue</p>
<div class="product-price">$6.99</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="bracelet-bead">
<img src="img/bracelet-3.png" alt="Image of a Pink Bracelet with Beads" title="Click on image to zoom">
<h2>Bracelet Beads</h2>
<p>Coral Pink</p>
<div class="product-price">$4.99</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div></div>
<div></div>
<div class="product" id="donation-card-5">
<img src="img/donation-card-5.png" alt="Donation Card for $5" title="Click on image to zoom">
<h2>Donation Card</h2>
<p>Aware the Public</p>
<div class="product-price">$5</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="donation-card-10">
<img src="img/donation-card-10.png" alt="Donation Card for $10" title="Click on image to zoom">
<h2>Donation Card</h2>
<p>Clean the Shores</p>
<div class="product-price">$10</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="donation-card-15">
<img src="img/donation-card-15.jpg" alt="Donation Card for $15" title="Click on image to zoom">
<h2>Donation Card</h2>
<p>Clean the Ocean</p>
<div class="product-price">$15</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
<div class="product" id="donation-card-20">
<img src="img/donation-card-20.png" alt="Donation Card for $20" title="Click on image to zoom">
<h2>Donation Card</h2>
<p>Plant new Corals</p>
<div class="product-price">$20</div>
<button type="button" class="add-to-cart">Add to Cart</button>
</div>
</div>
<div class="back-to-top"><a href="#"><button>↑ Back to Top</button></a></div>
</div>
<!-- Product Card -->
<div class="popup-card">
<span>×</span>
<img src="" alt="" title="All products are made using materials removed from the Ocean.">
</div>
<!-- Shopping Cart -->
<div id="cart">
<h1>Your Cart <span class="close-btn">×</span></h1>
<div id="order"></div>
<p class="final-price">Total: $0.00</p>
<div class="btn">
<button class="checkout"><span>Checkout</span></button>
<button class="continue"><span>Continue Shopping</span></button>
</div>
</div>
<div id="overlay"></div>
<footer>
<p>Developed by : <a href="https://github.com/Chamod07" target="_blank"><button title="a.k.a Batman">Chamod
Karunathilake</button></a>
</p>
</footer>
<script>
document.querySelectorAll('.products-list .product img').forEach(card => {
card.onclick = (event) => {
if (!event.target.classList.contains('add-to-cart')) {
document.querySelector('.popup-card').classList.add('show');
document.querySelector('.popup-card img').src = card.src;
}
}
})
const closePoppup = () => {
document.querySelector('.popup-card').classList.remove('show');
}
document.querySelector('.popup-card span').addEventListener('click', closePoppup);
</script>
<script src="js/shop.js"></script>
<script src="js/splash.js"></script>
</body>
</html>