-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
338 lines (302 loc) · 12.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Band</title>
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/responsive.css">
<link rel="stylesheet" href="./assets/font-icons/themify-icons/themify-icons.css">
</head>
<body>
<div id="main">
<div id="header">
<ul id="nav" class="hide-small">
<li><a href="#">Home</a></li>
<li><a href="#">Band</a></li>
<li><a href="#">Tour</a></li>
<li><a href="#">Contact</a></li>
<li>
<a href="">
More
<i class="ti-angle-down"></i>
</a>
<ul class="sub-nav">
<li><a href="#">Merchandise</a></li>
<li><a href="#">Extras</a></li>
<li><a href="#">Media</a></li>
</ul>
</li>
</ul>
<div class="search-section white-color hide-small">
<i class="search-btn ti-search"></i>
</div>
<div class="hide-large h-button hover-grey">HOME</div>
<div class="hover-grey white-color hide-large menu-button-js">
<i class="menu-btn ti-menu"></i>
</div>
</div>
<div id="menu-nav" class="menu-nav-js hide-menu-nav">
<div class="h-button hover-grey">BAND</div>
<div class="h-button hover-grey">TOUR</div>
<div class="h-button hover-grey">CONTACT</div>
<div class="h-button hover-grey">MERCH</div>
</div>
<div id="slider">
<div id="slide-content" class="white-color">
<h3 class="slide-heading">New York</h3>
<b class="slide-desc">The atmosphere in New York is lorem ipsum.</b>
</div>
</div>
<div id="content">
<div class="content-section">
<h2 class="section-heading">THE BAND</h2>
<p class="section-desc">We love music</p>
<p class="band-paragraph">We have created a fictional band website. Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<div id="members">
<div class="member">
<p class="member-name">Name</p>
<img class="member-img" src="./assets/imgs/bandmember.jpg" alt="">
</div>
<div class="member">
<p class="member-name">Name</p>
<img class="member-img" src="./assets/imgs/bandmember.jpg" alt="">
</div>
<div class="member">
<p class="member-name">Name</p>
<img class="member-img" src="./assets/imgs/bandmember.jpg" alt="">
</div>
</div>
</div>
<div id="second-section">
<div class="content-section">
<h2 class="section-heading white-color">TOUR DATES</h2>
<p class="section-desc white-color">Remember to book your tickets!</p>
<br>
<ul id="ticket-list">
<li>
September
<span class="sold-out white-color">Sold out</span>
</li>
<li>
October
<span class="sold-out white-color">Sold out</span>
</li>
<li class="month-ticket">
<span>November</span>
<span class="number white-color">3</span>
</li>
</ul>
<div id="place-list">
<div class="place-item">
<img src="./assets/imgs/newyork.jpg" alt="" class="place-img">
<div class="place-body black-color">
<p class="place-name">New York</p>
<p class="place-date">Fri 27 Nov 2016</p>
<div class="place-desc">Praesent tincidunt sed tellus ut rutrum sed vitae justo.</div>
<button class="buy-tickets button">Buy tickets</button>
</div>
</div>
<div class="place-item">
<img src="./assets/imgs/paris.jpg" alt="" class="place-img">
<div class="place-body black-color">
<p class="place-name">Paris</p>
<p class="place-date">Sat 28 Nov 2016</p>
<div class="place-desc">Praesent tincidunt sed tellus ut rutrum sed vitae justo.</div>
<button class="buy-tickets button">Buy tickets</button>
</div>
</div>
<div class="place-item">
<img src="./assets/imgs/sanfran.jpg" alt="" class="place-img">
<div class="place-body black-color">
<p class="place-name">San Francisco</p>
<p class="place-date">Fri 27 Nov 2016</p>
<div class="place-desc">Praesent tincidunt sed tellus ut rutrum sed vitae justo.</div>
<button class="buy-tickets button">Buy tickets</button>
</div>
</div>
</div>
</div>
</div>
<div class="content-section">
<h2 class="section-heading">CONTACT</h2>
<p class="section-desc">Fan? Drop a note!</p>
<div id="contact-section">
<div class="contact-item contact-info margin-bottom">
<i class="contact-icon ti-location-pin"></i>
Chicago, US
<br>
<i class="contact-icon ti-mobile"></i>
Phone: +00 151515
<br>
<i class="contact-icon ti-email"></i>
Email: [email protected]
<br>
</div>
<div class="contact-item">
<div class="personal-info-form">
<input
type="text"
class="band-input personal-info-input name-input"
placeholder="Name"
>
<input
type="email"
class="band-input personal-info-input email-input"
placeholder="Email"
>
</div>
<input
type="text"
class="band-input msg-input"
placeholder="Message"
>
<div id="send-section">
<button class="send-btn button">SEND</button>
</div>
</div>
</div>
</div>
<div id="map"></div>
</div>
<div id="footer">
<i class="brand-icon ti-facebook"></i>
<i class="brand-icon ti-instagram"></i>
<i class="brand-icon ti-skype"></i>
<i class="brand-icon ti-pinterest"></i>
<i class="brand-icon ti-twitter-alt"></i>
<i class="brand-icon ti-linkedin"></i>
<p id="powered-section">
<span class="powered-by">Powered by</span>
<a href="#" class="power-link">w3.css</a>
</p>
</div>
</div>
<div id="modal">
<div id="modal-container">
<div id="modal-header" class="white-color">
<div class="modal-close">
<i class="close-btn ti-close"></i>
</div>
<h2 class="modal-heading">
<i class="ti-bag"></i>
Tickets
</h2>
</div>
<div id="modal-body">
<p class="label">
<i class="ti-shopping-cart"></i>
Tickets, $15 per person
</p>
<input
type="text"
class="band-input width100"
placeholder="How many?"
>
<p class="label">
<i class="ti-user"></i>
Send To
</p>
<input
type="text"
class="band-input width100"
placeholder="Enter email"
>
<button class="pay-button white-color">
PAY
<i class="ti-check"></i>
</button>
<div id="modal-footer">
<button class="second-close-btn">
Close
<i class="icon-close ti-close"></i>
</button>
<p class="help">
Need
<a href="#" class="blue-color">help?</a>
</p>
</div>
</div>
</div>
</div>
<script>
//slide show
const slider = document.getElementById("slider");
const slideContent = slider.querySelector("#slide-content");
const slideHeading = slideContent.querySelector(".slide-heading");
const slideDesc = slideContent.querySelector(".slide-desc");
let slideIndex = 0;
function carousel() {
if (slideIndex === 0) {
slider.style.background = "url(/assets/imgs/ny.jpg) top center / cover no-repeat";
slideHeading.innerHTML = "New York";
slideDesc.innerHTML = "The atmosphere in New York is lorem ipsum.";
}
if (slideIndex === 1) {
slider.style.background = "url(/assets/imgs/chicago.jpg) top center / cover no-repeat";
slideHeading.innerHTML = "Chicago";
slideDesc.innerHTML = "Thank you, Chicago - A night we won't forget.";
}
if (slideIndex === 2) {
slider.style.background = "url(/assets/imgs/la.jpg) top center / cover no-repeat";
slideHeading.innerHTML = "Los Angeles";
slideDesc.innerHTML = "We had the best time playing at Venice Beach!";
}
if (slideIndex > 2) {
slideIndex = -1;
}
slideIndex++;
setTimeout(carousel, 2000);
}
carousel();
// modal script
const buyTicketBtns = document.querySelectorAll(".buy-tickets");
const modal = document.getElementById("modal");
const firstModalClose = modal.querySelector(".modal-close");
const secondModalClose = modal.querySelector(".second-close-btn");
const showModal = () => {
modal.style.display = "block";
};
const hideModal = () => {
modal.style.display = "none";
};
window.onclick = (e) => {
if (e.target === modal) {
hideModal();
}
}
buyTicketBtns.forEach((btn) => {
btn.addEventListener('click', showModal);
});
firstModalClose.addEventListener('click', hideModal);
secondModalClose.addEventListener('click', hideModal);
//contact form script
const sendBtn = document.querySelector(".send-btn");
const nameInput = document.querySelector(".name-input");
const emailInput = document.querySelector(".email-input");
const msgInput = document.querySelector(".msg-input");
const handleSubmit = () => {
if (!nameInput.value.trim() || !emailInput.value.trim() || !msgInput.value.trim()) {
alert('Fields are not empty!');
}
};
sendBtn.addEventListener('click', handleSubmit);
// show menu nav
const menuBtn = document.querySelector(".menu-button-js");
const menuNav = document.querySelector(".menu-nav-js");
menuBtn.addEventListener('click', () => {
if (menuNav.style.display === 'none') {
menuNav.style.display = 'block';
} else {
menuNav.style.display = 'none';
}
})
</script>
</body>
</html>