-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
261 lines (251 loc) · 13.2 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
<!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>W3_band</title>
<link rel="stylesheet" href="/assets/css/style.css">
<link rel="stylesheet" href="/assets/css/responsive.css">
<link rel="stylesheet" href="/assets/fonts/themify-icons/themify-icons.css">
</head>
<body>
<div id="main">
<div id="header">
<ul id="nav">
<li class="home-btn"><a href="#">Home</a></li>
<li><a href="#band">Band</a></li>
<li><a href="#tour">Tour</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#">More
<i class="nav-icon-down ti-angle-double-down"></i></a>
<ul class="subnav">
<li><a href="#">Merchandise</a></li>
<li><a href="#">Extras</a></li>
<li><a href="#">Media</a></li>
</ul>
</li>
<li>
<div id="search-btn">
<i class="ti-search-btn ti-search"></i>
</div>
</li>
<li>
<div id="menu-btn">
<i class="menu-mobile ti-menu"></i>
</div>
</li>
</ul>
<!-- <ul class="header-btn">
<li>
<div id="search-btn">
<i class="ti-search-btn ti-search"></i>
</div>
</li>
<li>
<div id="menu-btn">
<i class="menu-mobile ti-menu"></i>
</div>
</li>
</ul> -->
</div>
<div id="slider">
<div class="text-content">
<h1 class="text-heading">Los Angeles</h1>
<div class="text-description">We had the best playing at Venice Beach!</div>
</div>
</div>
<div id="Content">
<!-- About Section -->
<div id="band" class="content-section">
<h1 class="content-heading">THE BAND</h1>
<div class="content-subheading">We love music</div>
<p class="about-content">This Website uses cookies to make the website work, for traffic measurement and optimization of page content. By using our Website, you agree to the use of cookies for these purposes. You can read more about cookies, including how to disable them,This Website uses cookies to make the website work, for traffic measurement and optimization of page content. By using our Website, you agree to the use of cookies for these purposes. You can read more about cookies, including how to disable them</p>
<div id="member-container">
<div class="col-3rd text-center">
<div class="member-name">Name</div>
<img src="/assets/img/slider/img_bandmember.jpg" alt="member1" class="member-img">
</div>
<div class="col-3rd text-center">
<div class="member-name">Name</div>
<img src="/assets/img/slider/img_bandmember.jpg" alt="member1" class="member-img">
</div>
<div class="col-3rd text-center">
<div class="member-name">Name</div>
<img src="/assets/img/slider/img_bandmember.jpg" alt="member1" class="member-img">
</div>
</div>
</div>
<!-- Tour Section -->
<div class="tour-section">
<div id="tour"class="content-section">
<h1 class="content-heading">TOUR DATES</h1>
<div class="content-subheading">Remember tp book your tickets</div>
<div>
<ul class="ticket-list">
<li>September <span class="sold-out">Sold out</span></li>
<li>October <span class="sold-out">Sold out</span></li>
<li>November <span class="quantity">3</span></li>
</div>
<div class="row place ">
<div class="col col-3rd">
<img src="/assets/img/slider/New-York.jpg" alt="New York" class="place-img">
<div class="place-body">
<h3 class="place-name">New York</h3>
<p class="place-date">Fri 27 Nov 2016</p>
<p class="place-description">Praesent tincidunt sed tell us ut retrum sed vitae justo</p>
<button class="place-btn js-buy-tickets">Buy Tickets</button>
</div>
</div>
<div class="col col-3rd">
<img src="/assets/img/slider/Paris.jpg" alt="New York" class="place-img">
<div class="place-body">
<h3 class="place-name">Paris</h3>
<p class="place-date">Fri 28 Nov 2016</p>
<p class="place-description">Praesent tincidunt sed tell us ut retrum sed vitae justo</p>
<button class="place-btn js-buy-tickets">Buy Tickets</button>
</div>
</div>
<div class="col col-3rd">
<img src="/assets/img/slider/San Francisco.jpg" alt="New York" class="place-img">
<div class="place-body">
<h3 class="place-name">San Francisco</h3>
<p class="place-date">Fri 29 Nov 2016</p>
<p class="place-description">Praesent tincidunt sed tell us ut retrum sed vitae justo</p>
<button class="place-btn js-buy-tickets">Buy Tickets</button>
</div>
</div>
</div>
</div>
<!-- Modal-ticket -->
<div class="modal js-modal">
<div class="modal-container js-modal-container">
<i class="ti-close js-ti-close"></i>
<div class="modal-header">
<label for="" class="modal-title">
<i class="ti-bag-icon ti-bag"></i>Tickets
</label>
</div>
<div class="modal-body">
<label for="" class="modal-quantity">
<i class="ti-shopping-cart"></i>Tickets, $15 per person
</label>
<input type="text" placeholder="How many?" class="modal-input">
<label for="" class="modal-email">
<i class="ti-user"></i>Send To
</label>
<input type="text" placeholder="Enter your email address" class="modal-input">
<button class="modal-btn">
PAY <i class="ti-check"></i>
</button>
</div>
<div class="modal-footer">Need <a href="#" class="modal-help">help?</a></div>
</div>
</div>
<!-- Begin Contact Section -->
<div id="contact" class="contact-container">
<div class="content-section text-black">
<h1 class="content-heading">CONTACT</h1>
<div class="content-subheading">Fan?Drop a note!</div>
<div class="contact-info">
<div class="col col-half contact-left">
<p><i class="ti-location-pin"></i>Chicago, US</p>
<p class="contact-mobile"><i class="ti-mobile"></i>Phone: <a href="tel:+00 151515">+00 151515</a></p>
<p><i class="ti-email"></i>Email: <a href="mailto:[email protected]">[email protected]</a></p>
</div>
<div class="contact-right">
<form action="">
<div class="contact-person">
<div class="col-half">
<input type="text" name="" placeholder="Name" required id="name" class="contact-name">
</div>
<div class="col-half">
<input type="email" name="" placeholder="Email" required id="email" class="contact-email">
</div>
</div>
<div class="row-message">
<div class="col-full">
<input type="text" name="" placeholder="Message" required id="" class="contact-message">
</div>
</div>
<input type="submit" value="SEND" class="contact-submit">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Contact Section -->
<!-- Begin Map Section -->
<div id="band" class="map-section">
<img src="/assets/img/slider/map.jpg" alt="map">
<div id="footer">
<div class="social-networks">
<a href="https://facebook.com"><i class="ti-facebook"></i></a>
<a href="https://youtube.com"><i class="ti-youtube"></i></a>
<a href="https://instagram.com"><i class="ti-instagram"></i></a>
<a href="https://pinterest.com"><i class="ti-pinterest"></i></a>
<a href="https://twitter.com"><i class="ti-twitter"></i></a>
<a href="https://linkedin.com"><i class="ti-linkedin"></i></a>
</div>
<p class="copyright">Powered by <a href="#">w3.css</a></p>
</div>
<!-- Begin Map Section -->
</div>
<script>
// Tạo ra biến buyBtns và truy xuất tất cả các thẻ class có tên .js-buy-tickets
// để lưu vào biến buyBtns thông qua document
const buyBtns = document.querySelectorAll('.js-buy-tickets')
const modal = document.querySelector('.js-modal')
const modalContainer = document.querySelector('.js-modal-container')
const modalClose = document.querySelector('.js-ti-close')
// tạo hàm với tên biến là showMedalOpen và hideModalClose thực hiện hành động
// ở bên trong bằng việc thêm class open vào biến showModalOpen (mở Modal)
function showModalOpen() {
modal.classList.add('open')
}
// bỏ class open ra khỏi biến hideModalClose (tắt Modal)
function hideModalClose() {
modal.classList.remove('open')
}
// Nghe hành vi click vào Button Buy Tickets
// Tạo vòng lặp for để đưa dữ liệu của từng nút trong biến buyBtns (chứa dữ liệu của 3 nút bấm)
// để đưa vào biến buyBtn (dữ liệu 1 nút)
// addEventListener là thuộc tính thêm lắng nghe hành động người dùng với hành động
// click vào nút và xuất hiện dữ liệu trong biến showMedalOpen.
for (const buyBtn of buyBtns) {
buyBtn.addEventListener('click', showModalOpen)
}
modalClose.addEventListener('click', hideModalClose)
modalContainer.addEventListener('click', function (event) {
event.stopPropagation()
})
// Tạo hiệu ứng ấn vào nút Menu trên giao diện Mobile
var header = document.getElementById('header');
var menuBtn = document.getElementById('menu-btn');
var headerHeight = header.clientHeight;
menuBtn.onclick = function() {
var menuClosed = header.clientHeight === headerHeight;
if (menuClosed) {
header.style.height = 'auto';
} else {
header.style.height = null;
}
}
// Tự động đóng khi chọn menu
var menuItems = document.querySelectorAll('#nav li a[href*="#"]');
for (var i = 0; i < menuItems.length; i++) {
var menuItem = menuItems[i];
menuItem.onclick = function() {
var isParentMenu = this.nextElementSibling && this.nextElementSibling.classList.contains('subnav')
if (isParentMenu) {
event.preventDefault();
} else {
header.style.height = null;
}
}
}
</script>
</body>
</html>