-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
398 lines (357 loc) · 21.3 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Quicksand:wght@300;400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/font/fontawesome-free-5.15.4-web/css/all.min.css">
<link rel="shortcut icon" href="./assets/img/ShortCutIcon.jpg">
<link rel="stylesheet" href="./assets/css/Base.css"> <!-- CSS Base -->
<link rel="stylesheet" href="./assets/css/Grid.css"> <!-- Grid System -->
<link rel="stylesheet" href="./assets/css/Header.css">
<link rel="stylesheet" href="./assets/css/Introduce.css">
<link rel="stylesheet" href="./assets/css/Product.css">
<link rel="stylesheet" href="./assets/css/Cart.css">
<link rel="stylesheet" href="./assets/css/Responsive.css">
<link rel="stylesheet" href="./assets/css/LoginRegister.css">
<link rel="stylesheet" href="./assets/css/Footer.css">
<link rel="stylesheet" href="./assets/css/Toast.css">
<link rel="stylesheet" href="./assets/css/DetailProduct.css">
<script src="./assets/scripts/LocalStorage.js"></script> <!-- Tạo LocalStorage cho Web -->
<!-- import src tạo hiệu ứng chuyển động cho banner sản phẩm (tham khảo w3schools) -->
<script src="https://www.w3schools.com/lib/w3.js"></script>
<title>KingFastFood - Cửa hàng thức ăn nhanh số 1</title>
</head>
<body>
<div class="main_body">
<!-- toast message -->
<div id="toast"></div>
<!-- Phần Header -->
<div class="header js-OpenHeaderForMobile">
<div class="grid wide">
<div class="header-content">
<div class="header-logo">
<a href="#" class="header-logo--link">KingFastFood</a>
</div>
<div class="header-navbar--list">
<div class="header-navbar--item js-TabHeader headerActive">Trang chủ</div>
<div class="header-navbar--item js-TabHeader">Sản phẩm</div>
<div class="header-navbar--item js-TabHeader">Giỏ hàng</div>
<div class="header-navbar--item js-HandlerLR is-relatived">
<i class="header-user--icon far fa-user"></i>
Tài khoản
</div>
<div class="line"></div>
</div>
<div class="header-mobile--btn js-mobile-bars">
<i class="fas fa-bars"></i>
</div>
</div>
</div>
</div>
<!-- Phần Container -->
<div class="container">
<!-- phần giới thiệu sản phẩm (Trang chủ) -->
<div class="container-Introduce js-Container headerActive">
<img class="slides" src="./assets/img/introduce/b2.jpg" alt="banner1" width="100%">
<img class="slides" src="./assets/img/introduce/b3.jpg" alt="banner2" width="100%">
<img class="slides" src="./assets/img/introduce/b4.jpg" alt="banner3" width="100%">
<div class="product-introduces">
<div class="grid wide">
<div class="product-introduces--title">
Menu
</div>
<div class="product-introduce">
<img class="product-introduce-image"
src="./assets/img/introduce/Hamburger-phô-mai-combo-350x277.png"/>
<div class="product-introduce-content">
<p class="product-introduce--content-title">Set Combo Gà rán & Hamburger</p>
<p class="product-introduce--content-contents">
<strong>Set Combo Gà rán & Hamburger</strong> là set combo gồm 1 suất gà rán , 1
Hamburger, 1 nước ngọt tuỳ chọn
mang lại sự đầy đủ trong bữa ăn cho thực khách và cùng với đó là hương vị thơm ngon
tuyệt hảo của món gà rán với
độ giòn và độ tươi ngon của Hamburger
</p>
</div>
</div>
<div class="product-introduce">
<img class="product-introduce-image"
src="./assets/img/introduce/hoan-thanh-va-thuong-thuc-hamburger-ca.jpg"/>
<div class="product-introduce-content">
<p class="product-introduce--content-title">Hamburger</p>
<p class="product-introduce--content-contents">
<strong>Hamburger</strong> là một món ăn nhanh không thể thiếu với những con người
bận rộng.
Hamburger bao gồm 2 lớp bánh dày kẹp vớI phần nhân thịt cùng với rau salat và nước
sốt thịt và ngoài ra còn
có nhiều tuỳ chọn hương vị khác, chắc chắn sẽ mang lại cho bạn một hương vị mới, một
khởi đầu tươi đẹp cho một ngày mới.
</p>
</div>
</div>
<div class="product-introduce">
<img class="product-introduce-image"
src="./assets/img/introduce/gioi-thieu-8-diem-ban-kfc-da-nang-cuc-ngon-1.jpg"/>
<div class="product-introduce-content">
<p class="product-introduce--content-title">Gà rán</p>
<p class="product-introduce--content-contents">
<strong>Gà rán</strong> là một món ăn xuất xứ từ miền Nam
Hoa Kỳ. Nguyên liệu chính là những miếng thịt gà đã được lăn bột rồi chiên trên
chảo, chiên ngập dầu, chiên áp suất hoặc chiên chân không. Lớp bột chiên xù sẽ giúp
cho miếng gà có một lớp vỏ ngoài giòn rụm, còn phần thịt bên trong vẫn mềm và mọng
nước.
</p>
</div>
</div>
</div>
</div>
</div>
<!-- phần bán sản phẩm (Sản Phẩm) -->
<div class="container-Product js-Container">
<div class="grid wide">
<div class="row sm-gutter">
<div class="col l-2 m-0 c-0">
<div class="category">
<h3 class="category-header">Tìm kiếm</h3>
<form class="category-search" method="get" onsubmit="return false">
<input type="text" class="category-search--input" placeholder="Tìm kiếm">
<button id="search-btn" type="button" class="category-search--btn" maxlength="40">
<i class="fas fa-search"></i>
</button>
</form>
</div>
<div class="category">
<h3 class="category-header">Danh Mục</h3>
<ul class="category-list"></ul>
</div>
</div>
<div class="col l-10 m-12 c-12">
<!-- search mobile -->
<form class="mobile-search" method="get" onsubmit="return false">
<input type="text" class="mobile-search--input" placeholder="Tìm kiếm">
<button id="search-btn--mobile" type="button" class="mobile-search--btn" maxlength="40">
<i class="fas fa-search"></i>
</button>
</form>
<!-- category mobile -->
<div class="mobile-category">
<ul class="mobile-category-list"></ul>
</div>
<!-- show Product -->
<div id="show-Product" class="main-product">
<div id="js-product-list" class="row sm-gutter"></div>
<ul id="page-num" class="pagination home-product__pagination"></ul>
</div>
</div>
</div>
</div>
</div>
<!-- Phần giỏ hàng (Giỏ hàng) -->
<div class="container-Cart js-Container">
<div class="grid wide">
<div class="row sm-gutter">
<div class="cart">
<!-- Khi không có sản phẩm hoặc chưa add sản phẩm -->
<img class="no-cart" src="./assets/img/empty-cart.png" alt="">
<!-- Sau khi đăng nhập và mua hàng thì tự động Inner đè lên Form -->
</div>
<div class="cartPayment"></div>
</div>
</div>
</div>
</div>
<!-- Phần Footer -->
<div class="footer">
<div class="grid wide">
<div class="row sm-gutter">
<div class="col l-6 m-8 c-12">
<h3 class="footer__heading">KingFastFood</h3>
<p class="footer__content">KingFastFood là chuỗi cửa hàng thức ăn nhanh số 1 Việt Nam chuyên về
các sản phẩm gà rán và nướng, với các món ăn kèm theo và các loại sandwiches chế biến từ
thịt gà tươi. Hiện nay đang có hơn 20.000 nhà hàng KFF tại 67 quốc gia và vùng lãnh thổ trên
toàn thế giới.</p>
</div>
<div class="col l-2 m-6 c-6">
<h3 class="footer__heading">Giới thiệu</h3>
<ul class="footer-list">
<li class="footer__list-item">
<a href="#" class="footer-item_link">Giới thiệu</a>
</li>
<li class="footer__list-item">
<a href="#" class="footer-item_link">Điều khoản</a>
</li>
<li class="footer__list-item">
<a href="#" class="footer-item_link">Tuyển dụng</a>
</li>
</ul>
</div>
<div class="col l-2 m-4 c-6">
<h3 class="footer__heading">Trợ giúp</h3>
<ul class="footer-list">
<li class="footer__list-item">
<a href="#" class="footer-item_link">Thực đơn</a>
</li>
<li class="footer__list-item">
<a href="#" class="footer-item_link">Trung tâm trợ giúp</a>
</li>
<li class="footer__list-item">
<a href="#" class="footer-item_link">Hướng dẫn mua hàng Online</a>
</li>
</ul>
</div>
<div class="col l-2 m-6 c-12">
<h3 class="footer__heading">Liên hệ</h3>
<ul class="footer-list-icon">
<li class="footer__list-item">
<a href="#" class="footer-item_link"><i class="footer-item_icon fab fa-facebook"></i>
Facebook
</a>
</li>
<li class="footer__list-item">
<a href="#" class="footer-item_link"><i class="footer-item_icon fab fa-instagram"></i>
Instagram
</a>
</li>
<!-- <li class="footer__list-item">
<a href="#" class="footer-item_link"><i class="footer-item_icon fab fa-github"></i>
Github
</a>
</li> -->
</ul>
</div>
</div>
</div>
<div class="footer__bottom">
<p class="footer__text">© 2021 - Copyright KingFastFood Vietnam.</p>
</div>
</div>
</div>
<!-- Form đăng kí - đăng nhập -->
<div id="LR-form" class="LR-wrap">
<div class="LR-main">
<!-- close btn -->
<div class="reg-btn__close js-close-btn">
<i class="fas fa-times"></i>
</div>
<!-- header-select Login or Register -->
<div class="LR-header">
<div class="LR-header--item isActive isHoverBG">Đăng nhập</div>
<div class="LR-header--item">Đăng kí</div>
<div class="line"></div>
</div>
<div class="LR-container">
<!-- Login -->
<form id="login" class="LR-container--item isActive" method="post" action="">
<div class="LR-body">
<div class="login-group">
<div class="form-group">
<input id="js-LG_account" name="js-LG_account" type="text" class="form-control input-field" placeholder="Tên Đăng Nhập" rules="required|max:24" maxlength="24">
<span class="form-message"></span>
</div>
<div class="form-group">
<input id="js-LG_password" name="js-LG_password" type="password" class="form-control input-field" placeholder="Mật khẩu" rules="required|max:12" maxlength="12">
<span class="form-message"></span>
</div>
<div class="checkbox-form">
<input type="checkbox" class="check-box"><span>Ghi nhớ mật khẩu</span>
</div>
<button id="js-btn-login" type="button" class="sumbit-btn">Đăng Nhập</button>
</div>
</div>
<div class="LR-footer">
<div class="border-div">
<div class="border-line"></div>
<div class="border-name">Hoặc</div>
<div class="border-line"></div>
</div>
<ul class="supLogin-list">
<li class="supLogin--item">
<a class="supLogin--item-link" href="">
<i class="supLogin--icon fab fa-facebook"></i>
Facebook
</a>
</li>
<li class="supLogin--item">
<a class="supLogin--item-link" href="">
<i class="supLogin--icon fab fa-google"></i>
Google
</a>
</li>
</ul>
</div>
</form>
<!-- Register -->
<form id="register" class="LR-container--item" method="post" action="">
<div class="LR-body">
<div class="login-group">
<div class="RG_flexParrent">
<div class="RG_flexItem">
<div class="form-group">
<input id="js-RG_gmail" name="js-RG_gmail" type="email" class="input-field form-control" rules="required|email" placeholder="Nhập vào gmail">
<span class="form-message"></span>
</div>
<div class="form-group">
<input id="js-RG_account" name="js-RG_account" type="text" class="input-field form-control" rules="required|max:24" placeholder="Tên đăng nhập" maxlength="24">
<span class="form-message"></span>
</div>
<div class="form-group">
<input id="js-RG_password" name="js-RG_password" type="password" class="input-field form-control" rules="required|max:12" placeholder="Nhập mật khẩu" maxlength="12">
<span class="form-message"></span>
</div>
<div class="form-group">
<input id="js-RG_RePassword" name="js-RG_RePassword" type="password" class="input-field form-control" rules="required|max:12" placeholder="Nhập lại mật khẩu" maxlength="12">
<span class="form-message"></span>
</div>
</div>
<div class="RG_flexItem">
<div class="form-group">
<input id="js-RG_name" name="js-RG_name" type="text" class="input-field form-control" rules="required|max:30" placeholder="Họ và tên người dùng" maxlength="30">
<span class="form-message"></span>
</div>
<div class="form-group">
<input id="js-RG_phonenumber" name="js-RG_phonenumber" type="text" class="input-field form-control" rules="required|max:13" placeholder="Nhập số điện thoại" maxlength="13">
<span class="form-message"></span>
</div>
<div class="form-group">
<input id="js-RG_address" name="js-RG_address" type="text" class="input-field form-control" rules="required|max:50" placeholder="Nhập địa chỉ liên lạc" maxlength="50">
<span class="form-message"></span>
</div>
</div>
</div>
<div class="checkbox-form">
<input id="js-RG_radio" type="checkbox" class="check-box">
<span>Tôi đã đồng ý với <a href="#">điều khoản</a> và <a href="#">dịch vụ</a>.</span>
</div>
<button id="js-btn-register" type="button" class="sumbit-btn">Đăng Kí</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- form chi tiết sản phẩm -->
<div class="DetailProduct_Wrap">
<div class="Detail_Product_main">
<div class="Detail_Product_header">Thông tin sản phẩm</div>
<div class="deltail-btn__close js-D-close-btn">
<i class="fas fa-times"></i>
</div>
<div class="Detail_Product_main_form"></div>
</div>
</div>
<script src="./assets/scripts/EventHandler.js"></script>
<script src="./assets/scripts/Products.js"></script>
<script src="./assets/scripts/Cart.js"></script>
<script src="./assets/scripts/validateForm.js"></script>
<script src="./assets/scripts/LoginRegister.js"></script>
</body>
<script>
Validator("#login", ".form-group", ".form-message");
Validator("#register", ".form-group", ".form-message");
</script>
</html>