-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
438 lines (397 loc) · 18.4 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
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redesign Training Studio</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- HEADER -->
<header>
<!-- HAMBURGER -->
<nav class="container menu" >
<div class="hamburger">
<i class="fa-solid fa-bars" data-visible="true"></i>
<i class="fa-solid fa-close" data-visible="false"></i>
</div>
<!-- NAVBAR -->
<!-- logo -->
<h1>Training <span>Studio</span></h1>
<ul class="nav-links" data-visible="false">
<li><a href="#">Home</a></li>
<li><a href="#About">About</a></li>
<li><a href="#Classes">Classes</a></li>
<li><a href="#schedules">Schedules</a></li>
<li><a href="#Contact">Contact</a></li>
<li class="main-btn"><a href="#signup">Sign Up</a></li>
</ul>
</nav>
</header>
<!-- HERO -->
<section class="hero">
<div class="overlay"></div>
<video autoplay loops muted>
<source src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/gym-video.mp4" type="video/mp4">
Your browser doesn't support the video tag.
</video>
<div class="container ">
<h6>WORK HARDER, GET STRONGER</h6>
<h2>EASY WITH OUR <span>GYM</span></h2>
<button class="btn">Become a member</button>
</div>
</section>
<!-- FEATURES -->
<section class="section" id="About">
<div class="container ">
<div class="section-heading">
<h2>CHOOSE <span>PROGRAM</span></h2>
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/line-dec.png" alt="waves">
<p>Training Studio is free CSS template for gyms and fitness centers. You are allowed to use this layout for your business website.</p>
</div>
<div class="all-features">
<div class="features-items">
<div class="feature-item">
<div class="left-icon">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/features-first-icon.png" alt="icon">
</div>
<div class="right-content">
<h4>Basic Fitness</h4>
<p>Please do not re-distribute this template ZIP file on any template collection website. This is not allowed.</p>
<a href=""> Discover More</a>
</div>
</div>
<div class="feature-item">
<div class="left-icon">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/features-first-icon.png" alt="icon">
</div>
<div class="right-content">
<h4>New Gym Training</h4>
<p>If you wish to support TemplateMo website via PayPal, please feel free to contact us. We appreciate it a lot.</p>
<a href=""> Discover More</a>
</div>
</div>
<div class="feature-item">
<div class="left-icon">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/features-first-icon.png" alt="icon">
</div>
<div class="right-content">
<h4>Basic Muscle Course</h4>
<p>Credit goes to <a href="#" class="link">Pexels website</a> for images and video background used in this HTML template.</p>
<a href=""> Discover More</a>
</div>
</div>
</div>
<div class="features-items">
<div class="feature-item">
<div class="left-icon">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/features-first-icon.png" alt="icon">
</div>
<div class="right-content">
<h4>Advanced Muscle Course</h4>
<p>You may want to browse through <a href="#" class="link">Digital Marketing</a> or <a href="#" class="link">Corporate</a> HTML CSS templates on our website.</p>
<a href=""> Discover More</a>
</div>
</div>
<div class="feature-item">
<div class="left-icon">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/features-first-icon.png" alt="icon">
</div>
<div class="right-content">
<h4>Yoga Training</h4>
<p>This template is built on Bootstrap v4.3.1 framework. It is easy to adapt the columns and sections.</p>
<a href=""> Discover More</a>
</div>
</div>
<div class="feature-item">
<div class="left-icon">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/features-first-icon.png" alt="icon">
</div>
<div class="right-content">
<h4>Body Building Course</h4>
<p>Suspendisse fringilla et nisi et mattis. Curabitur sed finibus nisi. Integer nibh sapien, vehicula et auctor.</p>
<a href=""> Discover More</a>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="call-to-action">
<div class="container">
<div class="content">
<h2>DON’T <span>THINK</span>, BEGIN <span>TODAY</span>!</h2>
<p>Ut consectetur, metus sit amet aliquet placerat, enim est ultricies ligula, sit amet dapibus odio augue eget libero. Morbi tempus mauris a nisi luctus imperdiet.</p>
<button class="btn">Become a member</button>
</div>
</div>
</section>
<!-- OUR CLASSES -->
<section class="section" id="Classes">
<div class="container">
<div class="section-heading">
<h2>OUR <span>CLASSES</span></h2>
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/line-dec.png" alt="waves">
<p>Nunc urna sem, laoreet ut metus id, aliquet consequat magna. Sed viverra ipsum dolor, ultricies fermentum massa consequat eu.</p>
</div>
<div class=" all-tabs">
<div class="tab">
<div class="class">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/tabs-first-icon.png" alt="class 1">
<a href="#">First Training Class</a>
</div>
<div class="class">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/tabs-first-icon.png" alt="class 2">
<a href="#">Second Training Class</a>
</div>
<div class="class">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/tabs-first-icon.png" alt="class 3">
<a href="#">Third Training Class</a>
</div>
<div class="class">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/tabs-first-icon.png" alt="class 3">
<a href="#">Fourth Training Class</a>
</div>
<button >View all Schedules</button>
</div>
<div class="article">
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/training-image-01.jpg" alt="first class">
<div class="tab-content">
<h4>First Training Class</h4>
<p>Phasellus convallis mauris sed elementum vulputate. Donec posuere leo sed dui eleifend hendrerit. Sed suscipit suscipit erat, sed vehicula ligula. Aliquam ut sem fermentum sem tincidunt lacinia gravida aliquam nunc. Morbi quis erat imperdiet, molestie nunc ut, accumsan diam.</p>
<button class="btn">View Schedule</button>
</div>
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/training-image-02.jpg" alt="second class">
<div class="tab-content">
<h4>Second Training Class</h4>
<p>Integer dapibus, est vel dapibus mattis, sem mauris luctus leo, ac pulvinar quam tortor a velit. Praesent ultrices erat ante, in ultricies augue ultricies faucibus. Nam tellus nibh, ullamcorper at mattis non, rhoncus sed massa. Cras quis pulvinar eros. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
<button class="btn">View Schedule</button>
</div>
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/training-image-03.jpg" alt="third class">
<div class="tab-content">
<h4>Third Training Class</h4>
<p>Fusce laoreet malesuada rhoncus. Donec ultricies diam tortor, id auctor neque posuere sit amet. Aliquam pharetra, augue vel cursus porta, nisi tortor vulputate sapien, id scelerisque felis magna id felis. Proin neque metus, pellentesque pharetra semper vel, accumsan a neque.</p>
<button class="btn">View Schedule</button>
</div>
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/training-image-04.jpg" alt="f class">
<div class="tab-content">
<h4>Fourth Training Class</h4>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean ultrices elementum odio ac tempus. Etiam eleifend orci lectus, eget venenatis ipsum commodo et.</p>
<button class="btn">View Schedule</button>
</div>
</div>
</div>
</div>
</section>
<!-- SCHEDULES -->
<section id="schedules">
<div class="container">
<div class="section-heading">
<h2>CLASSES <span> SCHEDULE</span> </h2>
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/line-dec.png" alt="waves">
<p>Nunc urna sem, laoreet ut metus id, aliquet consequat magna. Sed viverra ipsum dolor, ultricies fermentum massa consequat eu.</p>
</div>
<ul class="days">
<li><a href="#">Monday /</a></li>
<li><a href="#">Tuesday /</a></li>
<li><a href="#">Wednesday /</a></li>
<li><a href="#">Thursday /</a></li>
<li><a href="#"> Friday</a></li>
</ul>
<div class="table-container">
<table>
<tr>
<th>Class</th>
<th>Time</th>
<th>Instructor</th>
</tr>
<tr>
<td>Fitness Class</td>
<td>10:00AM - 11:30AM</td>
<td>William G. Stewart</td>
</tr>
<tr>
<td>Muscle Training</td>
<td></td>
<td>Paul D. Newman</td>
</tr>
<tr>
<td>Body Building</td>
<td>2:00PM - 3:30PM</td>
<td>Boyd C. Harris</td>
</tr>
<tr>
<td>Yoga Training Class</td>
<td></td>
<td>Hector T. Daigle</td>
</tr>
<tr>
<td>Advanced Training</td>
<td></td>
<td>Bret D. Bowers</td>
</tr>
</table>
</div>
</div>
</section>
<!-- TESTIMONIALS -->
<section class="section" id="trainers">
<div class="container">
<div class="section-heading">
<h2>EXPERT <SPAN>TRAINERS</SPAN></h2>
<img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/line-dec.png" alt="waves">
<p>Nunc urna sem, laoreet ut metus id, aliquet consequat magna. Sed viverra ipsum dolor, ultricies fermentum massa consequat eu.</p>
</div>
<div class="testimonials">
<div class="trainer-item">
<div class="image-thumb"> <img src=" https://templatemo.com/templates/templatemo_548_training_studio/assets/images/first-trainer.jpg" alt="testemonial1"></div>
<div class="down-content">
<span>Strength Trainer</span>
<h4>Bret D. Bowers</h4>
<p>Bitters cliche tattooed 8-bit distillery mustache. Keytar succulents gluten-free vegan church-key pour-over seitan flannel.</p>
</div>
<div class="social-icons">
<i class="fa-brands fa-facebook"></i>
<i class="fa-brands fa-twitter"></i>
<i class="fa-brands fa-linkedin"></i>
<i class="fa-brands fa-behance"></i>
</div>
</div>
<div class="trainer-item">
<div class="image-thumb"> <img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/second-trainer.jpg" alt="testemonial1"></div>
<div class="down-content">
<span>Muscle Trainer</span>
<h4>Hector T. Daigl</h4>
<p>Bitters cliche tattooed 8-bit distillery mustache. Keytar succulents gluten-free vegan church-key pour-over seitan flannel.</p>
</div>
<div class="social-icons">
<i class="fa-brands fa-facebook"></i>
<i class="fa-brands fa-twitter"></i>
<i class="fa-brands fa-linkedin"></i>
<i class="fa-brands fa-behance"></i>
</div>
</div>
<div class="trainer-item">
<div class="image-thumb"> <img src="https://templatemo.com/templates/templatemo_548_training_studio/assets/images/third-trainer.jpg" alt="testemonial1"></div>
<div class="down-content">
<span>Power Trainer</span>
<h4>Paul D. Newman</h4>
<p>Bitters cliche tattooed 8-bit distillery mustache. Keytar succulents gluten-free vegan church-key pour-over seitan flannel.</p>
</div>
<div class="social-icons">
<i class="fa-brands fa-facebook"></i>
<i class="fa-brands fa-twitter"></i>
<i class="fa-brands fa-linkedin"></i>
<i class="fa-brands fa-behance"></i>
</div>
</div>
</div>
</div>
</section>
<!-- CONTACT US -->
<section id="Contact">
<div class="contact-us">
<div class="map">
<iframe src="https://maps.google.com/maps?q=Av.+L%C3%BAcio+Costa,+Rio+de+Janeiro+-+RJ,+Brazil&t=&z=13&ie=UTF8&iwloc=&output=embed" width="100%" height="600px" style="border:0" allowfullscreen=""></iframe>
</div>
<div class="contact-form">
<form>
<div class="inputs">
<div class="info">
<div class="input">
<fieldset>
<input type="text" id="name" placeholder="Your Name*">
</fieldset>
</div>
<div class="input">
<fieldset>
<input type="email" id="email" placeholder="Your Email*">
</fieldset>
</div>
</div>
<div class="input">
<fieldset>
<input type="text" id="subject" placeholder="Subject">
</fieldset>
</div>
<div class="input">
<fieldset>
<textarea name="message" id="message" rows="6" placeholder="Message"></textarea>
</fieldset>
</div>
</div>
<button type="submit" class="btn">Send Message</button>
</form>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="footer">
<p>Copyright © 2024 Training Studio Re-designed by <a href="#">Masud Mohamed</a></p>
</div>
</div>
</footer>
<script>
const header = document.querySelector('header');
const nav = document.querySelector('nav');
const navBar = document.querySelectorAll(' nav a');
const h1 = document.querySelector('header h1');
const h1Span = document.querySelector('header h1 span');
header.style.transition = 'background-color 0.3s, box-shadow 0.3s';
navBar.forEach(link => {
link.style.transition = 'color 0.3s';
link.style.cursor = 'pointer';
});
h1.style.transition = 'color 0.3s';
if (h1Span) {
h1Span.style.transition = 'color 0.3s';
}
function applyScrollStyles() {
if (window.scrollY > window.innerHeight) {
header.style.backgroundColor = '#f2f2f2';
header.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.1)';
h1.style.color = 'black';
if (h1Span) {
h1Span.style.color = '#ed563b';
}
navBar.forEach(link => {
link.style.color = 'black';
});
} else {
// Reset to original styles when not scrolled past 100vh
header.style.backgroundColor = '';
header.style.boxShadow = '';
h1.style.color = '';
if (h1Span) {
h1Span.style.color = '';
}
navBar.forEach(link => {
link.style.color = '';
});
}
}
// Listen for the scroll event
window.addEventListener('scroll', applyScrollStyles);
//
const hamburger = document.querySelector('.hamburger');
const navLinks = document.querySelector(".nav-links");
const icons = document.querySelectorAll("i");
hamburger.addEventListener("click", function (event) {
const isVisible = navLinks.getAttribute('data-visible');
if(isVisible == "true"){
// Hiding
navLinks.setAttribute('data-visible', "false");
icons[0].setAttribute('data-visible', "true");
icons[1].setAttribute('data-visible', "false");
}else if(isVisible == "false"){
// display
navLinks.setAttribute('data-visible', "true");
icons[0].setAttribute('data-visible', "false");
icons[1].setAttribute('data-visible', "true");
}
});
</script>
</body>
</html>