-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
369 lines (367 loc) · 22.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>E-commerce</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="/assets/css/base.css">
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous">
</head>
<body>
<div class="web">
<div class="header">
<div class="grid">
<div class="navbar">
<ul class="navbar-list">
<li class="navbar-item download text-fade border-right">
<p>Cài đặt ứng dụng trong cửa hàng</p>
<div class="qr-code">
<img src="/assets/img/QR_code/download_app.png" alt="QR code" width="160px" >
<div class="qr-code__icon">
<i class="fab fa-google-play">Google Play</i>
<i class="fab fa-app-store-ios">App Store</i>
</div>
</div>
</li>
<li class="navbar-item">
<p>
Kết nối
<a class="text-decor-none color-white" href="http://www.facebook.com"><i class="fab pd-left-8 fa-facebook-f"></i></a>
<a class="text-decor-none color-white" href="https://www.instagram.com/"><i class="fab pd-left-8 fa-instagram"></i></a>
</p>
</li>
</ul>
<ul class="navbar-list">
<li class="navbar-item notification text-fade">
<p>
<a href="" class="navbar-item__link"><i class="fas pd-right-8 fa-bell"></i>Thông báo</a>
<header class="header__noti">
<div class="arrow-up"></div>
<h3 class="header__noti-head">Thông báo mới nhất</h3>
<ul class="header__noti-list">
<!-- demo notifications -->
<li class="header__noti-item">
<a href="" class="header__noti-link">
<img src="/assets/img/notification/noti_1.jpg" alt="img" width="40px" class="header__noti-img">
<div class="header__noti-info">
<span class="header__noti-title">
Mua ngay con mèo ngu này với giá phải chăng chỉ với giá 10 xu
</span>
<span class="header__noti-desc">
Con mèo ngu ngốc đáng yêu ngọt ngào
</span>
</div>
</a>
</li>
<li class="header__noti-item unseen">
<a href="" class="header__noti-link">
<img src="/assets/img/notification/noti_1.jpg" alt="img" width="40px" class="header__noti-img">
<div class="header__noti-info">
<span class="header__noti-title">
Mua ngay con mèo ngu này với giá phải chăng chỉ với giá 10 xu
</span>
<span class="header__noti-desc">
Con mèo ngu ngốc đáng yêu ngọt ngào
</span>
</div>
</a>
</li>
<li class="header__noti-item">
<a href="" class="header__noti-link">
<img src="/assets/img/notification/noti_1.jpg" alt="img" width="40px" class="header__noti-img">
<div class="header__noti-info">
<span class="header__noti-title">
Mua ngay con mèo ngu này với giá phải chăng chỉ với giá 10 xu
</span>
<span class="header__noti-desc">
Con mèo ngu ngốc đáng yêu ngọt ngào
</span>
</div>
</a>
</li>
</ul>
<a href="" class="header__noti-footer">
Xem tất cả
</a>
</header>
</p>
</li>
<li class="navbar-item text-fade">
<p>
<a href="" class="navbar-item__link"><i class="fas pd-right-8 fa-question-circle"></i>Trợ giúp</a>
</p>
</li>
<li onclick="open_modal({type:'signin'})" class="navbar-item text-fade navbar-item__text-bold border-right js-signin"><p>Đăng ký</p></li>
<li onclick="open_modal({type:'login'})" class="navbar-item text-fade navbar-item__text-bold js-login"><p>Đăng nhập</p></li>
</ul>
</div>
<div class="header-body">
<a class="header-logo" href="#"><img src="/assets/img/logo/ecommerce.png" width="70px" alt=""></a>
<div class="header-search">
<div class="header-search-controll">
<input type="text" class="search-input" placeholder="Search..." tabindex="-1">
<div class="header-search-history">
<ul class="history-list">
<li class="history-item">
<a href="">Thịt chó chấm tương ớt</a>
</li>
<li class="history-item">
<a href="">Trà sữa trân châu đường đen</a>
</li>
<li class="history-item">
<a href="">Phóng lợn</a>
</li>
</ul>
</div>
<a href="#" class="search-icon"> <i class="fa fa-search"></i> </a>
</div>
</div>
<div class="shopping-cart">
<i class="fas fa-cart-arrow-down cart-icon">
<div class="cart-nums">
30
</div>
</i>
<header class="header__cart">
<div class="arrow-up"></div>
<h3 class="header__cart-head">Sản Phẩm Mới Thêm</h3>
<ul class="header__cart-list">
<!-- demo cart -->
<li class="header__cart-item">
<a href="" class="header__cart-link">
<img src="/assets/img/notification/noti_1.jpg" alt="img" width="40px" class="header__noti-img">
<div class="header__cart-info">
<span class="header__cart-title">
Mua ngay con mèo ngu này với giá phải chăng chỉ với giá 10 xu
</span>
</div>
<div class="header__cart-price">
đ123.000
</div>
</a>
</li>
<li class="header__cart-item">
<a href="" class="header__cart-link">
<img src="/assets/img/notification/noti_1.jpg" alt="img" width="40px" class="header__noti-img">
<div class="header__cart-info">
<span class="header__cart-title">
Mua ngay con mèo ngu này với giá phải chăng chỉ với giá 10 xu
</span>
</div>
<div class="header__cart-price">
đ123.000
</div>
</a>
</li>
<li class="header__cart-item">
<a href="" class="header__cart-link">
<img src="/assets/img/notification/noti_1.jpg" alt="img" width="40px" class="header__noti-img">
<div class="header__cart-info">
<span class="header__cart-title">
Mua ngay con mèo ngu này với giá phải chăng chỉ với giá 10 xu
</span>
</div>
<div class="header__cart-price">
đ123.000
</div>
</a>
</li>
</ul>
<div class="header__cart-footer">
<p>Xem thêm trong giỏ hàng</p>
<a href="">
Xem Giỏ Hàng
</a>
</div>
</header>
</div>
</div>
<div class="header-search-suggestions">
<a href="" class="suggestions-item">Chó</a>
<a href="" class="suggestions-item">Mèo</a>
<a href="" class="suggestions-item">Điện thoại</a>
<a href="" class="suggestions-item">Quần áo</a>
<a href="" class="suggestions-item">Váy</a>
<a href="" class="suggestions-item">Gia dụng</a>
</div>
</div>
</div>
<div class="container-body">
<div class="grid">
<div class="hero">
<div class="hero__categories">
<h3>DANH MỤC</h3>
<ul class="hero__categories__list">
<li>
<a href="">Tất Cả Sản Phẩm <i class="fas fa-chevron-right"></i></a>
</li>
<li>
<a href="">Quần Áo <i class="fas fa-chevron-right"></i></a>
</li>
<li>
<a href="">Gia dụng <i class="fas fa-chevron-right"></i></a>
</li>
<li>
<a href="">Đồ Chơi <i class="fas fa-chevron-right"></i></a>
</li>
<li>
<a href="">Skin Care <i class="fas fa-chevron-right"></i></a>
</li>
<li>
<a href="">Điện Tử <i class="fas fa-chevron-right"></i></a>
</li>
<li>
<a href="">Dịch Cụ <i class="fas fa-chevron-right"></i></a>
</li>
</ul>
</div>
<div class="hero__slider">
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="/assets/img/products/slider_1.jpg" alt="First slide" width="100%" height="402px">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="/assets/img/products/slider_2.jpg" alt="Second slide" width="100%" height="402px">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="/assets/img/products/slider_3.jpg" alt="Third slide" width="100%" height="402px">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="hero__image">
<img src="/assets/img/products/product_1.jpg" alt="img" width="100%">
<img src="/assets/img/products/product_2.jpg" alt="img" width="100%">
</div>
</div>
</div>
</div>
<div class="footer">
</div>
</div>
<div class="modal js-modal dp-none ">
<div class="modal-container js-modal-container">
<!-- login -->
<div class="modal-container__login js-login-modal dp-none">
<div class="modal__header pd-left-right-24">
<h2>Đăng Nhập</h2>
<p onclick="open_modal({type:'signin'})" class="switch-tab">Đăng ký</p>
</div>
<form action="">
<div class="modal-info pd-left-right-24">
<input type="text" class=" input-info login-id" placeholder="Email/Số Điện thọai/Tên đăng nhập">
<input type="password" class=" input-info login-pass" placeholder="Mật khẩu">
</div>
<div class="login-assistant pd-left-right-24">
<a href="" class="forgot-pass">Quên Mật Khẩu</a>
<a href="" class="need-help">Cần trợ giúp?</a>
</div>
<div class="modal-submit pd-left-right-24">
<button onclick="close_modal();return false;" class="close-or-submit close-btn">TRỞ LẠI</button>
<input type="submit" class="close-or-submit submit-btn" value="ĐĂNG NHẬP">
</div>
</form>
<div class="modal-option pd-left-right-24 three-option">
<button class="modal-option__btn modal-option__butn--sms">
<i class="fas fa-comment-dots"></i>
<p>SMS</p>
</button>
<button class="modal-option__btn modal-option__butn--facebook">
<i class="fab fa-facebook-square"></i>
<p>Facebook</p>
</button>
<button class="modal-option__btn modal-option__butn--google">
<i class="fab fa-google"></i>
<p>Google</p>
</button>
</div>
</div>
<!-- sign in -->
<div class="modal-container__signin js-signin-modal dp-none">
<div class="modal__header pd-left-right-24">
<h2>Đăng Ký</h2>
<p onclick="open_modal({type:'login'})" class="switch-tab">Đăng nhập</p>
</div>
<form action="">
<div class="modal-info pd-left-right-24">
<input type="text" class=" input-info login-id" placeholder="Số điện thoại">
<div class="two-box">
<input type="text" class=" input-info input-captcha" placeholder="Nhập mã ngẫu nhiên/mã hiển thị ở bên phải">
<div class="captcha input-info"><img src="/assets/img/captcha/captcha.png" alt="captcha" height="22px"></div>
</div>
<div class="two-box">
<input type="text" class=" input-info input-verify" placeholder="Mã xác minh">
<input class="verify input-info" type="submit" value="Gửi Mã xác minh"></input>
</div>
</div>
<div class="modal-policy pd-left-right-24">
<p>Bằng việc đăng ký, bạn đã đồng ý với E-commerce về <a href="">Điều khoản dịch vụ</a> & <a href="">Chính sách bảo mật</a></p>
</div>
<div class="modal-submit pd-left-right-24">
<button onclick="close_modal();return false;" class="close-or-submit close-btn">TRỞ LẠI</button>
<input type="submit" class="close-or-submit submit-btn" value="ĐĂNG KÝ">
</div>
</form>
<div class="modal-option pd-left-right-24 two-option">
<button class="modal-option__btn modal-option__butn--facebook">
<i class="fab fa-facebook-square"></i>
<p>Facebook</p>
</button>
<button class="modal-option__btn modal-option__butn--google">
<i class="fab fa-google"></i>
<p>Google</p>
</button>
</div>
</div>
</div>
</div>
<!-- open-close modal -->
<script>
const modal=document.querySelector(".js-modal")
const login_modal=document.querySelector(".js-login-modal")
const signin_modal=document.querySelector(".js-signin-modal")
const modal_container=document.querySelector(".js-modal-container")
// open modal
function open_modal({type=""}){
if(type=="login"){
modal.classList.remove('dp-none')
signin_modal.classList.add('dp-none')
login_modal.classList.remove('dp-none')
}
if(type=="signin"){
modal.classList.remove('dp-none')
login_modal.classList.add('dp-none')
signin_modal.classList.remove('dp-none')
}
}
// close modal
function close_modal(){
modal.classList.add('dp-none')
login_modal.classList.add('dp-none')
signin_modal.classList.add('dp-none')
}
modal.addEventListener('click',close_modal)
modal_container.addEventListener('click',function(event){
event.stopPropagation()
})
</script>
<!-- slideshow -->
<!-- bootstrap -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>