-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgioithieu.html
More file actions
285 lines (259 loc) · 15.3 KB
/
gioithieu.html
File metadata and controls
285 lines (259 loc) · 15.3 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link href="https://getbootstrap.com/docs/5.3/assets/css/docs.css" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<link rel="stylesheet" href="gioithieu.css">
<title>VinaBook</title>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body class="p-3 m-0 border-0 bd-example m-0 border-0">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<img src="img/image-removebg-preview (1).png" alt="" width="200px">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">Kết nối tri thức Việt</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="gioithieu.html">Giới Thiệu</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sanpham.html">Sản phẩm</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
Thể loại
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="khoahoc.html">Khoa học</a></li>
<li><a class="dropdown-item" href="tunhien.html">Tự nhiên</a></li>
<li><a class="dropdown-item" href="#">Lịch sử</a></li>
<li><a class="dropdown-item" href="#">Văn học</a></li>
<li><a class="dropdown-item" href="#">Tiểu thuyết</a></li>
<li><a class="dropdown-item" href="#">Công nghệ</a></li>
<li><a class="dropdown-item" href="#">Khác</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link dangnhap" href="#" data-bs-toggle="modal" data-bs-target="#authModal">Tài
khoản</a>
</li>
</ul>
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
<li class="nav-item position-relative list-unstyled">
<a class="nav-link" href="giohang.html">
<i class="bi bi-cart" id="cart-icon"></i>
<span id="cart-count"
class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">0</span>
</a>
</li>
<script>
document.addEventListener("DOMContentLoaded", function () {
let cartCount = localStorage.getItem("cartCount") || 0;
document.getElementById("cart-count").textContent = cartCount;
});
</script>
</script>
<li class="nav-item list-unstyled">
<a href="#" id="logout-btn" class="btn btn-outline-danger d-none">Logout</a>
</li>
</div>
</div>
</nav>
<div class="modal fade" id="authModal" tabindex="-1" aria-labelledby="authModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="authModalLabel">Đăng nhập</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div id="loginForm">
<form>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" id="email" placeholder="Nhập email">
</div>
<div class="mb-3">
<label for="password" class="form-label">Mật khẩu</label>
<input type="password" class="form-control" id="password" placeholder="Nhập mật khẩu">
</div>
<button type="submit" class="btn btn-primary w-100">Đăng nhập</button>
</form>
<p class="mt-3 text-center">
Bạn chưa có tài khoản? <a href="#" id="showRegister">Đăng ký</a>
</p>
</div>
<div id="registerForm" style="display: none;">
<form>
<div class="mb-3">
<label for="registerName" class="form-label">Họ và tên</label>
<input type="text" class="form-control" id="registerName" placeholder="Nhập họ và tên">
</div>
<div class="mb-3">
<label for="registerEmail" class="form-label">Email</label>
<input type="email" class="form-control" id="registerEmail" placeholder="Nhập email">
</div>
<div class="mb-3">
<label for="registerPassword" class="form-label">Mật khẩu</label>
<input type="password" class="form-control" id="registerPassword"
placeholder="Tạo mật khẩu">
</div>
<button type="submit" class="btn btn-success w-100">Đăng ký</button>
</form>
<p class="mt-3 text-center">
Đã có tài khoản? <a href="#" id="showLogin">Đăng nhập</a>
</p>
</div>
</div>
</div>
</div>
</div>
<script>
document.getElementById("showRegister").addEventListener("click", function () {
document.getElementById("loginForm").style.display = "none";
document.getElementById("registerForm").style.display = "block";
document.getElementById("authModalLabel").textContent = "Đăng ký";
});
document.getElementById("showLogin").addEventListener("click", function () {
document.getElementById("loginForm").style.display = "block";
document.getElementById("registerForm").style.display = "none";
document.getElementById("authModalLabel").textContent = "Đăng nhập";
});
</script>
<div class="container my-5">
<div class="row">
<!-- Cột trái: Vì sao lựa chọn chúng tôi -->
<div class="col-md-6">
<h2>Vì sao lựa chọn chúng tôi?</h2>
<ul class="list-unstyled">
<li><i class="fa fa-check-circle text-success"></i> Kho sách phong phú với hàng nghìn đầu sách</li>
<li><i class="fa fa-check-circle text-success"></i> Cập nhật liên tục những tựa sách mới nhất</li>
<li><i class="fa fa-check-circle text-success"></i> Giao diện thân thiện, dễ sử dụng</li>
<li><i class="fa fa-check-circle text-success"></i> Hỗ trợ tìm kiếm thông minh, tiết kiệm thời gian
</li>
<li><i class="fa fa-check-circle text-success"></i> Dịch vụ khách hàng tận tình, hỗ trợ 24/7</li>
</ul>
<img src="img/pexels-tatyana-doloman-728740365-30752778.jpg" alt="VinaBook - Lựa chọn của bạn"
class="img-fluid rounded shadow">
</div>
<!-- Cột phải: Dẫn dắt về sách -->
<div class="col-md-6">
<h2>Hành trình khám phá tri thức</h2>
<p>
Sách không chỉ là những trang giấy vô hồn, mà còn là cánh cửa mở ra một thế giới vô tận của tri
thức,
cảm xúc và sáng tạo. Mỗi cuốn sách là một cuộc hành trình, nơi bạn có thể đắm chìm vào những câu
chuyện
kỳ thú, học hỏi từ những bộ óc vĩ đại, và khám phá những ý tưởng có thể thay đổi cuộc sống của bạn.
</p>
<p>
Đọc sách giúp chúng ta mở mang tư duy, nuôi dưỡng tâm hồn và kích thích sự sáng tạo. Dù bạn đam mê
khoa học, yêu thích lịch sử hay muốn đắm chìm trong những tiểu thuyết kinh điển, sách luôn là người
bạn
đồng hành đáng tin cậy. Nhưng giữa vô vàn đầu sách, làm sao để chọn được cuốn sách phù hợp nhất?
</p>
<p>
Đó chính là lý do VinaBook ra đời – một nền tảng giúp bạn dễ dàng tiếp cận kho tàng tri thức rộng
lớn,
nơi bạn có thể tìm kiếm, đánh giá và lựa chọn những cuốn sách hay nhất phù hợp với sở thích và nhu
cầu của mình.
Hãy để VinaBook trở thành người dẫn đường trên hành trình chinh phục tri thức của bạn!
</p>
<p>
Không chỉ vậy, VinaBook còn mang đến cho bạn những bài viết chuyên sâu, đánh giá sách chất lượng từ
các chuyên gia và cộng đồng yêu sách. Chúng tôi tin rằng, với một cuốn sách phù hợp, bạn không chỉ
học được
điều mới mẻ mà còn tìm thấy niềm cảm hứng và động lực để vươn xa hơn trong cuộc sống.
</p>
</div>
</div>
</div>
<footer class="footer w-100">
<div class="container text-center text-light">
<div class="social-icons mb-3">
<a href="#" class="text-light mx-3"><i class="fab fa-facebook fa-lg"></i></a>
<a href="#" class="text-light mx-3"><i class="fab fa-instagram fa-lg"></i></a>
<a href="#" class="text-light mx-3"><i class="fab fa-twitter fa-lg"></i></a>
<a href="#" class="text-light mx-3"><i class="fab fa-youtube fa-lg"></i></a>
</div>
<ul class="nav justify-content-center border-bottom border-light pb-3 mb-3">
<li class="nav-item"><a href="#" class="nav-link px-3 text-light">Trang chủ</a></li>
<li class="nav-item"><a href="#" class="nav-link px-3 text-light">Giới thiệu</a></li>
<li class="nav-item"><a href="#" class="nav-link px-3 text-light">Sản phẩm</a></li>
<li class="nav-item"><a href="#" class="nav-link px-3 text-light">Tài khoản</a></li>
<li class="nav-item"><a href="#" class="nav-link px-3 text-light">Pháp lý</a></li>
</ul>
<div class="nguoicode">
<p class="text-light">📧 Email: <a href="mailto:lvhaoktpm2211050@ctuet.edu.vn"
class="text-light">lvhaoktpm2211050@ctuet.edu.vn</a></p>
<p class="text-light">📧 Email: <a href="mailto:cngdatktpm2211077@ctuet.edu.vn"
class="text-light">cngdatktpm2211077@ctuet.edu.vn</a></p>
</div>
<p class="text-light">© 2025 Can Tho University of Technology</p>
</div>
</footer>
<script>
document.addEventListener("DOMContentLoaded", function () {
let cartCount = sessionStorage.getItem("cartCount") ? parseInt(sessionStorage.getItem("cartCount")) : 0;
let isLoggedIn = sessionStorage.getItem("isLoggedIn") === "true";
document.getElementById("cart-count").textContent = cartCount;
let logoutBtn = document.getElementById("logout-btn");
function updateUI() {
if (isLoggedIn) {
logoutBtn.classList.remove("d-none");
} else {
logoutBtn.classList.add("d-none");
}
}
updateUI();
document.querySelectorAll(".add-to-cart").forEach(button => {
button.addEventListener("click", function (event) {
event.preventDefault();
if (!isLoggedIn) {
let authModal = new bootstrap.Modal(document.getElementById("authModal"));
authModal.show();
return;
}
cartCount++;
document.getElementById("cart-count").textContent = cartCount;
sessionStorage.setItem("cartCount", cartCount);
alert("Sản phẩm đã được thêm vào giỏ hàng!");
});
});
document.getElementById("loginForm").addEventListener("submit", function (event) {
event.preventDefault();
sessionStorage.setItem("isLoggedIn", "true");
let authModal = bootstrap.Modal.getInstance(document.getElementById("authModal"));
authModal.hide();
alert("Đăng nhập thành công!");
isLoggedIn = true;
updateUI();
});
logoutBtn.addEventListener("click", function () {
sessionStorage.setItem("isLoggedIn", "false");
sessionStorage.setItem("cartCount", "0");
document.getElementById("cart-count").textContent = "0";
isLoggedIn = false;
updateUI();
alert("Bạn đã đăng xuất!");
window.scrollTo(0, 0); // Quay về đầu trang
});
});
</script>
</body>
</html>