generated from imd1005-web-development-winter-2023/group-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·336 lines (316 loc) · 11.5 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Set the page title -->
<title>Group Project-TEAOPIA</title>
<!-- Set the charset we're using to UTF-8 -->
<meta charset="UTF-8" />
<!-- Set the screens default zoom / scale to 1 -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- We are using a CSS Reset file to standardize browser default css -->
<link rel="stylesheet" href="./reset.css" />
<!-- This is where all of our awesome CSS code goes -->
<link rel="stylesheet" href="./style.css" />
<!-- This is fonts family we use -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;400&display=swap" rel="stylesheet">
<!-- Set the Favicon -->
<link rel="icon" href="./images/favicon/rocket.svg" type="image/svg+xml" />
</head>
<body>
<header>
<div class="header">
<div class="header--banner">
<img
class="header--banner--img"
src="images/favicon/Logo-Teaopia.png"
alt="LOGO"
/>
<nav class="header--banner--nav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="menu.html">Menu</a></li>
<li><a href="#">Rewards</a></li>
<li><a href="find-us.html">Find-us</a></li>
</ul>
</nav>
<form action="/search" method="get" class="search-container">
<!-- <label for="search"></label> -->
<div>
<input type="text" id="search" name="q" placeholder="Search..." />
</div>
<button class="search-button">
<img src="./images/Search.png" />
</button>
</form>
<div class="cart-container" style="position: relative">
<img src="./images/cart.png" />
<div class="cart-count-container">
<span class="cartCount" id="cartCount">0</span>
</div>
</div>
</div>
</div>
</header>
<main>
<section class="hero-section">
<h1 class="home-title">Teaopia</h1>
<h1>Where Every Cup is A Journey</h1>
<button class="hero-order-button" onclick="window.location.href='menu.html'">Order now</button>
</section>
<!-- <company introduction section> -->
<section class="introduction">
<div class="introduction-container">
<h2 class="introduction-title">Teaopia</h2>
<p>
The bubble tea brand that's all about embracing a cute, motivated,
and energetic lifestyle! Our e-commerce website is specially
designed to appeal to the young generation who are always on-the-go
and looking for an extra boost of energy.
</p>
</div>
</section>
<!-- <products section> -->
<section class="products-container">
<div class="container">
<h2 class="products">Products</h2>
<div class="grid-container">
<div
class="grid-item"
style="background-image: url('./images/favicon/Fruittea1.png')"
>
<span style="display: none; color: rgb(255, 255, 255)" id="productName"
>Fresh Kiwi Fruittea</span
>
</div>
<div
class="grid-item"
style="background-image: url('./images/favicon/fruittea2.png')"
>
<span style="display: none; color: rgb(255, 255, 255)" id="productName"
>Cheese Matcha Milktea
</span>
</div>
<div
class="grid-item"
style="background-image: url('./images/favicon/fruittea3.png')"
>
<span style="display: none; color: rgb(255, 255, 255)" id="productName"
>Signature Boba Milktea
</span>
</div>
<div
class="grid-item"
style="background-image: url('./images/favicon/milkshake1.png')"
>
<span style="display: none; color: rgb(255, 255, 255)" id="productName"
>Redbean Signature Milkshake</span
>
</div>
<div
class="grid-item"
style="background-image: url('./images/favicon/milkshake2.png')"
>
<span style="display: none; color: rgb(255, 255, 255)" id="productName"
>Pink Peach Fruittea</span
>
</div>
<div
class="grid-item"
style="background-image: url('./images/favicon/milkshake2.png')"
>
<span style="display: none; color: rgb(255, 255, 255)" id="productName"
>Jasmine Tea with Cheesemouse</span
>
</div>
</div>
</div>
<button class="view-button" onclick="window.location.href='menu.html'">View more</button>
</section>
<!-- <features section> -->
<section>
<div class="slider">
<div class="slider-title-container">
<img src="./images/Sakura.png" />
<span
style="
font-size: xx-large;
font-weight: bolder;
align-items:center;
display: flex;
font-color: white;
color: white;
padding-left: 30px;
"
>
Our Features
</span>
</div>
<div class="slider-main-content">
<div class="description">
<h2 class="des-title">Eco-friendly cardboard holders for your bubble tea</h2>
<p style="margin-bottom: 40px">
Not only does this decision align with our company's commitment
to sustainability, but it also ensures that our customers can
enjoy their bubble tea drinks without compromising on quality or
convenience.
</p>
<button class="see-more-button">See more</button>
</div>
<div class="cards">
<img
class="slider-img"
id="siOne"
src="images/sliden-one.jpg"
/>
<img
class="slider-img"
id="siTwo"
src="images/slider-two.jpg"
/>
<img
class="slider-img"
id="siThree"
src="images/sliden-three.jpg"
/>
</div>
</div>
<div class="slider-actions">
<button class="slider-button" onclick="previousSlider()"><</button>
<button class="slider-button" onclick="nextSlider()">></button>
</div>
</div>
</section>
<!-- <opening hours section> -->
<section class="operation-hours-container">
<div style="font-size: xx-large; margin-right: 200px">
<h4 class="operation-hours-title">Check Our Opening Hour</h4>
<table style="width: 101%">
<tr>
<td>Mon</td>
<td>7am - 9pm</td>
</tr>
<tr>
<td>Tue</td>
<td>7am - 9pm</td>
</tr>
<tr>
<td>Wed</td>
<td>7am - 9pm</td>
</tr>
<tr>
<td>Thu</td>
<td>7am - 9pm</td>
</tr>
<tr>
<td>Fri</td>
<td>7am - 11pm</td>
</tr>
<tr>
<td>Sat</td>
<td>7am - 10pm</td>
</tr>
<tr>
<td>Sun</td>
<td>7am - 10pm</td>
</tr>
</table>
</div>
<img src="./images/operation.png" />
</section>
</main>
<!-- <contact us section> -->
<section class="contact-container">
<img
class="contact--us--img"
src="images/favicon/Logo-Teaopia.png"
alt="LOGO"
/>
<div class="contact-message-container">
<h3>Stay in touch!</h3>
<p>
Stay up-to-date with our latest news, products, and promotions by
subscribing to our updates
</p>
</div>
<div class="email-input-container">
<input
class="email-input-box"
type="text"
id="search"
name="q"
placeholder="Enter your email address here"
/>
<button class="subscribe-btn">Subscribe</button>
</div>
</section>
<footer class="footer-nav-list">
<div style="display: flex; justify-content: space-around; color: white">
<div>
<ul class="footer-list">
<li class="footer-title-nav"><a href="#">Our Company</a></li>
<li><a href="index.html">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">News</a></li>
</ul>
</div>
<div>
<ul class="footer-list">
<li class="footer-title-nav"><a href="menu.html">Menu</a></li>
<li><a href="#">Trending</a></li>
<li><a href="#">Bubble Tea</a></li>
<li><a href="#">All products</a></li>
<li><a href="#">Gift</a></li>
</ul>
</div>
<div>
<ul class="footer-list">
<li class="footer-title-nav"><a href="find-us.html">Find-us</a></li>
<li><a href="#">Pick-up Location</a></li>
<li><a href="#">Delivery</a></li>
<li><a href="#">FAQs</a></li>
<li><a href="#">Opening Hour</a></li>
</ul>
</div>
<div>
<h2 style="font-size: 64px; font-style: italic">Teaopia</h2>
<h3 style="font-size: 32px; font-style: italic">Since 2000</h3>
<div class="icons">
<a href="#"><img src="./images/fb.png" /></a>
<a href="#"><img src="./images/linkedin.png" /></a>
<a href="#"><img src="./images/twitter.png" /></a>
<a href="#"><img src="./images/ig.png" /></a>
</div>
</div>
</div>
<p class="copy-right-container">
Copyright © 2023 Teaopia. All rights reserved
</p>
</footer>
<!-- This is where we add our awesome JavaScript code -->
<script src="./main.js"></script>
<script>
let productCount = 0;
let cart = {};
let currentIndex = 0;
const slidersId = ["siOne", "siTwo", "siThree"]
let currSliderIndex = 0;
document.addEventListener("DOMContentLoaded", function () {
const hoverableDivs = document.querySelectorAll(".grid-item");
hoverableDivs.forEach((div) => {
div.addEventListener("mouseover", () => {
const nameElement = div.getElementsByTagName("span")[0];
nameElement.style.display = "block";
});
div.addEventListener("mouseout", () => {
const nameElement = div.getElementsByTagName("span")[0];
nameElement.style.display = "none";
});
});
updateSlider();
});
</script>
</body>
</html>