-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (91 loc) · 4.94 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
<!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>Document</title>
<script src="https://unpkg.com/tailwindcss-jit-cdn"></script>
<!-- <script src="https://cdn.tailwindcss.com"></script> -->
<link rel="stylesheet" href="./assets/css/style.css" />
</head>
<body class="bg-[#f5f5f5] overflow-overlay">
<div class="min-h-screen py-5">
<div class="w-[1200px] mx-auto bg-white h-[55px] flex items-center text-[#888] text-sm rounded-lg sticky top-0 shadow-header px-5">
<div class="w-1/12"></div>
<div class="w-4/12 ">Sản Phẩm</div>
<div class="w-2/12 text-center">Đơn giá</div>
<div class="w-2/12 text-center">Số lượng</div>
<div class="w-2/12 text-center">Số tiền</div>
<div class="w-1/12 text-center">Thao tác</div>
</div>
<div class="w-[1200px] mx-auto rounded-lg overflow-hidden cart-list"></div>
<div class="sticky bottom-0 flex items-center mt-2 px-5 bg-white w-[1200px] h-20 mx-auto rounded-lg overflow-hidden shadow-style">
<div class="w-1/12 text-center">
<input type="checkbox" name="" id="" class="border-[#00000024] rounded-sm focus:outline-0 select-all-js"
onchange="checkAllProduct(this)" />
</div>
<p class="w-2/12">Chọn tất cả</p>
<div class="flex items-center flex-grow justify-end">
Tổng thanh toán
<p class="ml-8 text-2xl text-[#ee4d2d] total-price"></p>
</div>
<div class="w-3/12 h-10 flex items-center justify-center bg-[#ee4d2d] text-white ml-8 rounded cursor-pointer order-btn-js">
Mua hàng
</div>
</div>
</div>
<div class="modal-overlay hidden fixed top-0 bottom-0 left-0 right-0 bg-[#00000066] z-50 items-center justify-center">
<div class="modal-user hidden bg-white p-8 rounded w-[500px]">
<p class="text-xl">Địa chỉ nhận hàng</p>
<p class="text-xs mt-3 mb-6 opacity-80">Để đặt hàng, vui lòng thêm địa chỉ nhận hàng</p>
<form action="" id="user-form" novalidate>
<div class="flex text-sm">
<div class="relative w-1/2 pr-2">
<label class="absolute -top-2 bg-white px-1 left-3 text-xs" for="fullname">
Họ và tên
<span class="text-red-500">*</span>
</label>
<input onfocus="delErrorMessage(this)" class="w-full rounded border-[#00000024] focus:ring-0 focus:border-2 focus:border-green-400 " type="text" id="fullname" required/>
<p class="text-red-500 mt-1 text-xs ml-2"></p>
</div>
<div class="relative w-1/2 pl-2">
<label class="absolute -top-2 bg-white px-1 left-5 text-xs" for="phone">
Số điện thoại
<span class="text-red-500">*</span>
</label>
<input onfocus="delErrorMessage(this)" type="tel" pattern="[0-9]*" class="w-full rounded border-[#00000024] focus:ring-0 focus:border-2 focus:border-green-400" id="phone" required minlength="10" />
<p class="text-red-500 mt-1 text-xs ml-2"></p>
</div>
</div>
<div class="relative w-full my-6 text-sm">
<label class="absolute -top-2 bg-white px-1 left-3 text-xs" for="address">
Địa chỉ chi tiết
<span class="text-red-500">*</span>
</label>
<input onfocus="delErrorMessage(this)" class="w-full rounded border-[#00000024] focus:ring-0 focus:border-2 focus:border-green-400" type="text" id="address" required />
<p class="text-red-500 mt-1 text-xs ml-2"></p>
</div>
</form>
<div class="flex justify-end text-sm">
<div class="w-[140px] h-9 flex items-center justify-center bg-[#e7e7e7] rounded hover:opacity-80 cursor-pointer mr-4 close-modal-btn">
Trở lại
</div>
<input class="w-[140px] h-9 flex items-center justify-center bg-[#ee4d2d] text-white rounded hover:opacity-90 cursor-pointer" type="submit"
value="Hoàn tất" form="user-form" />
</div>
</div>
<div class="modal-alert hidden bg-white p-4 rounded w-[320px]">
<p class=" mb-8 flex items-start text-left">
<img class="mr-2" src="./assets/img/alert.svg" alt="alert">
Bạn chưa chọn sản phẩm nào để mua</p>
<div class="flex justify-end">
<div class="w-[140px] h-9 flex items-center justify-center bg-[#ee4d2d] text-white rounded hover:opacity-80 cursor-pointer close-modal-btn">
OK, đã hiểu
</div>
</div>
</div>
</div>
<script src="./script.js"></script>
</body>
</html>