forked from Grace2102/192-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathniftythrifty.html
297 lines (271 loc) · 16.4 KB
/
niftythrifty.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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<meta name="description" content="Nifty Thrifty offers quality food from our online food outlet store. Providing nutritional and affordable produce to people of low socioeconomic classes as well as to reduce food wastage">
<meta name="keywords" content="Afforable, Outlet, Food, Environment, Shopping">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
<title>Nifty Thrifty</title>
</head>
<body>
<nav>
<div class="navbar">
<span class="title-box"><h1 class="title">Nifty Thrifty</h1></span>
<span class="buttons">
<a class="link_buttons" href="niftythrifty-order.html" onclick="displayCart()"><i class="fa fa-shopping-cart"></i></a>
<a class="link_buttons" href="niftythrifty.html"><i class="fa fa-fw fa-home"></i></a>
</span>
</div>
</nav>
<nav>
<ul class="nav-in-page">
<li><a href="#deals">Deals</a></li> |
<li><a href="#products">Products</a></li> |
<li><a href="#feedback">Feedback</a></li> |
<li><a href="#about">About Us</a></li> |
<li><a href="#contact">Contact Us</a></li>
</ul>
</nav>
<hr>
<main>
<!---DEALS OF THE DAY--->
<h1 id="deals">Deals of the Day</h1>
<section>
<article>
<table class="deals">
<tr>
<td class="product"><img src="images/blackbeans.jpg" alt="Black Beans"/><figcaption>Black Beans<br>$2.00<br><button type="button" onclick="addToCart('Black Beans')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/bodylotion.jpg" alt="Body Lotion"/><figcaption>Body Lotion<br>$5.00<br><button type="button" onclick = "addToCart('Body Lotion')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/shampoo.jpg" alt="Shampoo"/><figcaption>Shampoo<br>$6.90<br><button type="button" onclick = "addToCart('Shampoo')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/toothpaste.jpg" alt="Toothpaste"/><figcaption>Toothpaste<br>$3.00<br><button type="button" onclick = "addToCart('Toothpaste')">Add to Cart</button></figcaption></td>
</tr>
</table>
</article>
</section>
<!---OUR PRODUCTS--->
<hr>
<section id="products" class="product-section">
<h1>Our Products</h1>
<form class="search">
<input type="text" id="searches" placeholder="Search for a product" name="search">
<button type="submit"><i class="fa fa-close"></i></button>
</form>
<br>
<article>
<h3>Pantry</h3>
<table>
<tr>
<td class="product"><img src="images/blackbeans.jpg" alt="Black Beans"/><figcaption>Black Beans<br>$2.00<br><button type="button" onclick="addToCart('Black Beans')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/pasta.jpg" alt="Pasta"/><figcaption>Pasta<br>$1.00<br><button type="button" onclick="addToCart('Pasta Pasta')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/wattiesspaghetti.jpg" alt="Watties Spaghetti"/><figcaption>Watties Spaghetti<br>$2.00<br><button type="button" onclick="addToCart('Watties Spaghetti')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/cannedpeaches.jpg" alt="Canned Peaches"/><figcaption>Canned Peaches<br>$2.50<br><button type="button" onclick="addToCart('Canned Peaches')">Add to Cart</button></figcaption></td>
</tr>
<tr>
<td class="product"><img src="images/chickensoup.jpg" alt="Chicken Soup"/><figcaption>Chicken Soup<br>$2.80<br><button type="button" onclick="addToCart('Chicken Soup')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/cornsoup.jpg" alt="Corn Soup"/><figcaption>Corn Soup<br>$2.80<br><button type="button" onclick = "addToCart('Corn Soup')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/mushroomsoup.jpg" alt="Mushroom Soup"/><figcaption>Mushroom Soup<br>$2.80<br><button type="button" onclick = "addToCart('Mushroom Soup')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/tomatosoup.jpg" alt="Tomato Soup"/><figcaption>Tomato Soup<br>$2.80<br><button type="button" onclick = "addToCart('Tomato Soup')">Add to Cart</button></figcaption></td>
</tr>
</table>
</article>
<article>
<h3>Chilled, Frozen & Desserts</h3>
<table>
<tr>
<td class="product"><img src="images/magnumicecream.jpg" alt="Magnum Ice-Cream"/><figcaption>Magnum Ice-Cream<br>$5.90<br><button type="button" onclick="addToCart('Magnum Ice-Cream')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/cadburychocolate.jpg" alt="Cadbury Chocolate"/><figcaption>Cadbury Chocolate<br>$3.50<br><button type="button" onclick="addToCart('Cadbury Chocolate')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/kitkat.jpg" alt="Kit Kat"/><figcaption>Kit Kat<br>$3.50<br><button type="button" onclick="addToCart('Kit Kat')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/shapes.jpg" alt="Shapes"/><figcaption>Shapes<br>$2.50<br><button type="button" onclick="addToCart('Shapes')"> Add to Cart</button></figcaption></td>
</tr>
<tr>
<td class="product"><img src="images/frozenpizza.jpg" alt="Frozen Pizza"/><figcaption>Frozen Pizza<br>$4.99<br><button type="button" onclick="addToCart('Frozen Pizza')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/frozenvege.jpg" alt="Frozen Vege"/><figcaption>Frozen Vege<br>$3.50<br><button type="button" onclick="addToCart('Frozen Vege')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/nuggets.jpg" alt="Chicken Nuggets"/><figcaption>Chicken Nuggets<br>$10.80<br><button type="button" onclick="addToCart('Nuggets')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/fries.jpg" alt="Fries"/><figcaption>Fries<br>$3.50<br><button type="button" onclick = "addToCart('Fries')">Add to Cart</button></figcaption></td>
</tr>
</table>
</article>
<article>
<h3>Drinks</h3>
<table>
<tr>
<td class="product"><img src="images/heinekenbeer.jpg" alt="Heineken Beer"/><figcaption>Heineken Beer<br>$20.90<br><button type="button" onclick = "addToCart('Heineken Beer')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/beveragebeer.jpg" alt="Beverage Beer"/><figcaption>Beverage Beer<br>$8.90<br><button type="button" onclick = "addToCart('Beverage Beer')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/fanta.jpg" alt="Fanta"/><figcaption>Fanta<br>$2.00<br><button type="button" onclick = "addToCart('Fanta',2)">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/coffee.jpg" alt="Coffee"/><figcaption>Coffee<br>$5.70<br><button type="button" onclick = "addToCart('Coffee',5.7)">Add to Cart</button></figcaption></td>
</tr>
<tr>
<td class="product"><img src="images/cola.jpg" alt="Cola"/><figcaption>Cola<br>$2.00<br><button type="button" onclick = "addToCart('Cola')";>Add to Cart</button></figcaption></td>
<td class="product"><img src="images/milo.jpg" alt="Milo"/><figcaption>Milo<br>$4.90<br><button type="button" onclick = "addToCart('Milo')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/sprite.jpg" alt="Sprite"/><figcaption>Sprite<br>$2.00<br><button type="button" onclick = "addToCart('Sprite')">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/nescafe.jpg" alt="Nescafe"/><figcaption>Nescafe<br>$4.50<br><button type="button" onclick = "addToCart('Nescafe')">Add to Cart</button></figcaption></td>
</tr>
</table>
</article>
<article>
<h3>Personal Care</h3>
<table>
<tr>
<td class="product"><img src="images/toothpaste.jpg" alt="Toothpaste"/><figcaption>Toothpaste<br>$3.00<br><button type="button" onclick = "addToCart('Toothpaste',3)">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/shampoo.jpg" alt="Shampoo"/><figcaption>Shampoo<br>$6.90<br><button type="button" onclick = "addToCart('Shampoo',6.9)">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/bodylotion.jpg" alt="Body Lotion"/><figcaption>Body Lotion<br>$5.00<br><button type="button" onclick = "addToCart('Body Lotion',5)">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/sanitizer.jpg" alt="Hand Sanitizer"/><figcaption>Hand Sanitizer<br>$2.50<br><button type="button" onclick = "addToCart('Hand Sanitizer',2.5)">Add to Cart</button></figcaption></td>
</tr>
<tr>
<td class="product"><img src="images/deodorant.jpg" alt="Deodorant"/><figcaption>Deodorant<br>$4.00<br><button type="button" onclick = "addToCart('Deodorant',4)">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/conditioner.jpg" alt="Conditioner"/><figcaption>Conditioner<br>$6.00<br><button type="button" onclick = "addToCart('Conditioner',6)">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/toothbrush.jpg" alt="Toothbrush"/><figcaption>Toothbrush<br>$2.00<br><button type="button" onclick = "addToCart('Toothbrush',2)">Add to Cart</button></figcaption></td>
<td class="product"><img src="images/perfume.jpg" alt="Perfume"/><figcaption>Perfume<br>$7.00<br><button type="button" onclick = "addToCart('Perfume',7)">Add to Cart</button></figcaption></td>
</tr>
</table>
<br>
<center><a href="niftythrifty-order.html"><button class="cart-btn" type="button">Go to Shopping Cart</button></a></center>
<br>
</article>
</section>
<hr>
<!---FEEDBACK-SLIDER--->
<section id="feedback">
<article>
<h1>Feedback</h1>
<br>
<div class="slideshow-container">
<div class="mySlides">
<q>The products are cheap and quality are ensured.</q>
<p class="author">- John</p>
</div>
<div class="mySlides">
<q>Delivery is quick.</q>
<p class="author">- Sam</p>
</div>
<div class="mySlides">
<q>Very convenient.</q>
<p class="author">- Thomas</p>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<div class="dot-container">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</div>
<script>
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
</script>
</article>
<!---FEEDBACK-MODAL--->
<article>
<div class="feedback-section">
<p>Click the following button if you wish to write your own feedback:</p>
<button class="modal-btn" type="button">Feedback</button>
</div>
<div class="modal-bg">
<div class="modal">
<h2>Write your own Feedback</h2><br>
<table class="modal">
<tr>
<td><label for="name">Name: </label></td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td><label for="email">Email: </label></td>
<td><input type="email" name="email"></td>
</tr>
<tr>
<td><label for="feedback">Feedback: </label></td>
<td><textarea name="feedback" rows="4" cols="50"></textarea></td>
</tr>
</table>
<button type="submit">Submit</button>
<span class="modal-close">✕</span>
</div>
</div>
<script>
var modalBtn = document.querySelector('.modal-btn');
var modalBg = document.querySelector('.modal-bg');
var modalClose = document.querySelector('.modal-close');
modalBtn.addEventListener('click', function(){
modalBg.classList.add('bg-active');
});
modalClose.addEventListener('click', function(){
modalBg.classList.remove('bg-active');
});
</script>
</article>
</section>
<hr>
<!---ABOUT US--->
<section id="about">
<article>
<div class="intro">
<h1 class="blurb-title">About Us</h1>
<p class="blurb">At Nifty Thrifty we offer quality food from our online food outlet store. Our mission is to provide nutritional and affordable produce to people of low socioeconomic classes as well as to reduce food wastage, which has a direct negative impact on the environment. Food that ends up in landfills negatively impacts biodiversity, builds up methane through the decomposition of food without oxygen which ends up releasing greenhouse gasses into the atmosphere, and wastes millions of gallons of drinkable water through the production of food and livestock. We are beneficial to our customers and the environment because we use produce that is already available to you, myself, and the general public. Nifty Thrifty promotes sustainable consumption through green living while ensuring that the high quality food is available to people and families of low socioeconomic classes.</p>
</div>
<br>
</article>
</section>
</main>
<!---FOOTER--->
<footer>
<div class="footer">
<table class="footer-table">
<tr>
<td><h3>Photo Credits</h3></td>
<td><h3>Contact Us</h3></td>
</tr>
<tr>
<td>
<ul>
<li><a href="https://www.flickr.com/" target="_blank">Flickr</a></li>
<li><a href="https://pixabay.com/" target="_blank">Pixabay</a></li>
<li><a href="https://www.pxfuel.com/" target="_blank">Pxfuel</a></li>
<li><a href="https://world.openfoodfacts.org/" target="_blank">World Open Food Facts</a></li>
</ul>
</td>
<td>
<table id="contact" class="contact-table">
<tr>
<td>Phone:</td>
<td>999-999-9999</td>
</tr>
<tr>
<td>Email:</td>
<td><a href="https://mail.google.com/" target="_blank">[email protected]</a></td>
</tr>
<tr>
<td>FaceBook:</td>
<td><a href="https://www.facebook.com/" target="_blank">https://www.facebook.com/</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</footer>
<script type="text/javascript" src="storing.js"></script>
</body>
</html>