-
Notifications
You must be signed in to change notification settings - Fork 0
/
product-details-2.html
257 lines (220 loc) · 9.74 KB
/
product-details-2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=0.5">
<title>Product detail page</title>
<link href="css/product-details-2.css" rel="stylesheet">
<!-- Font Awesome Icon Library -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<header>
<div class="container-nav">
<div class="logo">
<a href="home.html"><img id="logoimage" src="images/branding/logo.png" alt="logo"></a>
</div>
<nav id="navigation-normal">
<ul>
<li><a href="home.html">Home</a ></li>
<li><a href="shop.html">Shop</a ></li>
<li ><a href="about.html">About<div class="triangle"></div></a >
<ul class="secondary-style">
<li><a href="about.html">About Us</a></li>
<li><a href="news.html">News</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</li>
<li><a href="cart.html">Cart</a ></li>
</ul>
</nav>
<nav id="navigation-hamburger">
<div id="menuToggle">
<input type="checkbox" id="checkbox-hamburger">
<span></span>
<span></span>
<span></span>
<ul id="menu">
<li ><a href="home.html">Home</a ></li>
<li id="hamburger-style-1"><a href="shop.html">Shop</a ></li>
<li id="hamburger-style-2"><a href="about.html">About Us</a></li>
<li><a href="news.html">News</a></li>
<li><a href="contact.html">Contact Us</a></li>
<li id="hamburger-style-3"><a href="cart.html">Cart</a ></li>
</ul>
</div>
</nav>
</div>
</header>
<div class="container-details">
<div class="image-container">
<div id="main-image">
<img id="product-main-image" src="images/product-detail-2/mug5.png" alt="Breakfast Bowl | Stone">
</div>
<div id="thumbnails">
<img id="thumbnails-main-image" src="images/product-detail-2/mug5-1.png" alt="Bowl with a plate">
<img id="thumbnails-second-image" src="images/product-detail-2/mug5-2.png" alt="Side shot of two bowls">
<img id="thumbnails-third-image" src="images/product-detail-2/mug5-3.png" alt="Bowl with food on it">
</div>
</div>
<div class="product-details">
<p class="product-title">BREAKFAST BOWL | STONE</p>
<p class="price">CAD $54</p>
<P id="product-description">
Handmade ceramic bowl in a variegated stoneware clay body and a food safe white glaze.
The variations in the clay make every single piece unique. No two will ever be the same!
Perfect for preparing that healthy breakfast bowl to kickstart your morning.
</P>
<!--Text of product description is retrieved from https://tavceramics.com/collections/all/products/breakfast-bowl-stone-->
<div class="property-description">
<img class="safe-icon" src="images/product-detail/dishwasher-safe.png" alt="dishwasher safe">
<div>Dishwasher safe</div>
</div>
<div class="property-description">
<img class="safe-icon" src="images/product-detail/microwave-safe.png" alt="microwave safe">
<div>Microwave safe</div>
</div>
<div class="quantity-selector">
<span class="minus">-</span>
<span class="num">1</span>
<span class="plus">+</span>
</div>
<script>
const plus = document.querySelector(".plus"),
minus = document.querySelector(".minus"),
num = document.querySelector(".num");
let a = 1;
plus.addEventListener("click",()=>{
a++;
console.log(a);
num.innerText = a;
});
minus.addEventListener("click",()=>{
if(a>1){
a--;
num.innerText = a;
}
});
</script>
<!--Knowledge about js - quantity selector is from https://www.youtube.com/watch?v=uliYkHK3pKg -->
<input type="button" id="add-to-cart-big-button" onclick="location.href='cart.html'" value="Add to Cart">
</div>
</div>
<section class="reviews">
<h4>Customer reviews</h4>
<div class="overall-evaluation">
<div class="mean-stars">
<!--Knowledge about stars is from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_star_rating-->
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
<div class="fa fa-star"></div>
</div>
<p id="review-number">Based on 2 reviews</p>
</div>
<div class="review-list">
<div class="review-details">
<div class="user-details">
<div class="photo-name-star">
<img class="user-photo" src="images/product-detail-2/user2.png" alt="Photo of a customer">
<div class="star-and-name">
<div class="stars">
<!--Knowledge about stars is from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_star_rating-->
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
</div>
<p class="user-name">Candelario Muller</p>
</div>
</div>
<p class="date">02/01/2023</p>
</div>
<div class="comment">
<p class="comment-text">Quality is very good. I will consider buying more items from here.</p>
</div>
</div>
<div class="review-details">
<div class="user-details">
<div class="photo-name-star">
<img class="user-photo" src="images/product-detail-2/user1.png" alt="Photo of a customer">
<div class="star-and-name">
<div class="stars">
<!--Knowledge about stars is from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_star_rating-->
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
<div class="fa fa-star checked"></div>
<div class="fa fa-star"></div>
<div class="fa fa-star"></div>
</div>
<p class="user-name">Lisa Chu</p>
</div>
</div>
<p class="date">08/10/2022</p>
</div>
<div class="comment">
<p class="comment-text">I love the design of this bowl. But the delivery was a bit slow.</p>
</div>
</div>
</div>
<div class="write-review">
<h4>Your review</h4>
<div class="star-text-container">
<div id="star-widget">
<!--Knowledge of writing star rating system is from https://www.youtube.com/watch?v=rw3eZ6XodN8-->
<input type="radio" name="rate" id="rate-5">
<label for="rate-5" class="fa fa-star"></label>
<input type="radio" name="rate" id="rate-4">
<label for="rate-4" class="fa fa-star"></label>
<input type="radio" name="rate" id="rate-3">
<label for="rate-3" class="fa fa-star"></label>
<input type="radio" name="rate" id="rate-2">
<label for="rate-2" class="fa fa-star"></label>
<input type="radio" name="rate" id="rate-1">
<label for="rate-1" class="fa fa-star"></label>
</div>
<textarea name="review-comment" rows="5" placeholder="Write your review here..."></textarea>
<input type="button" id="post-review" value="Post review">
</div>
</div>
</section>
<section class="recommendation">
<h3>YOU MAY ALSO LIKE</h3>
<div class="container1">
<div class="card">
<a href="product-details-1.html">
<img class="mug" src="images/product-detail/mug3.png" alt="Dinner Bowl | Anthracite"></a>
<h4>Dinner Bowl | Anthracite</h4>
<p>$62</p>
<input type="button" class="add_to_cart" onclick="location.href='cart.html'" value="Add to Cart">
</div>
<div class="card">
<a href="product-details-1.html">
<img class="mug" src="images/product-detail/mug4.png" alt="Bud Vase | Stone"></a>
<h4>Bud Vase | Stone</h4>
<p>$50</p>
<input type="button" class="add_to_cart" onclick="location.href='cart.html'" value="Add to Cart">
</div>
<div class="card">
<a href="product-details-1.html">
<img class="mug" src="images/product-detail/mug6.png" alt="Large Vase | Anthracite"></a>
<h4>Large Vase | Anthracite</h4>
<p>$64</p>
<input type="button" class="add_to_cart" onclick="location.href='cart.html'" value="Add to Cart">
</div>
</div>
</section>
<footer>
<div class="footer-container">
<div class="links-container">
<a href="styleguide.html" class="in-text-link">Style Guide</a>
<a href="styleguide.html#citations" class="in-text-link">Citation</a>
<a href="https://github.com/Fangljf/P02-Company.git" class="in-text-link">Git Repository</a>
</div>
<p>© 2023 Fang Ceramics.</p>
</div>
</footer>
</body>
</html>