-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
452 lines (444 loc) · 16.3 KB
/
index.js
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
439
440
441
442
443
444
445
446
447
448
449
450
451
452
<!-- Navbar -->
<nav
class="top-0 absolute z-50 w-full flex flex-wrap items-center justify-between px-2 py-3 navbar-expand-lg"
>
<div
class="container px-4 mx-auto flex flex-wrap items-center justify-between"
>
<div
class="w-full relative flex justify-between lg:w-auto lg:static lg:block lg:justify-start"
>
<a
class="text-lg font-bold leading-relaxed inline-block mr-4 py-2 whitespace-no-wrap uppercase text-white"
href="https://www.creative-tim.com/learning-lab/tailwind-starter-kit#/presentation"
>The Power Room</a
><button
class="cursor-pointer text-xl leading-none px-3 py-1 border border-solid border-transparent rounded bg-transparent block lg:hidden outline-none focus:outline-none"
type="button"
onclick="toggleNavbar('example-collapse-navbar')"
>
<i class="text-white fas fa-bars"></i>
</button>
</div>
<div
class="lg:flex flex-grow items-center bg-white lg:bg-transparent lg:shadow-none hidden"
id="example-collapse-navbar"
>
<ul class="flex flex-col lg:flex-row list-none lg:ml-auto">
<!-- Icon 1 -->
<li class="flex items-center">
<a
class="lg:text-white lg:hover:text-gray-300 text-gray-800 px-3 py-4 lg:py-2 flex items-center text-xs uppercase font-bold"
href="#pablo"
><i
class="text-orange-500 fab fa-facebook text-lg leading-lg"
></i
><span class="lg:hidden inline-block ml-2">Share</span></a
>
</li>
<!-- Icon 2 -->
<li class="flex items-center">
<a
class="lg:text-white lg:hover:text-gray-300 text-gray-800 px-3 py-4 lg:py-2 flex items-center text-xs uppercase font-bold"
href="#pablo"
><i
class="text-orange-500 fab fa-twitter text-lg leading-lg"
></i
><span class="lg:hidden inline-block ml-2">Tweet</span></a
>
</li>
<!-- Icon 3 -->
<li class="flex items-center">
<a
class="lg:text-white lg:hover:text-gray-300 text-gray-800 px-3 py-4 lg:py-2 flex items-center text-xs uppercase font-bold"
href="#pablo"
><i
class="text-orange-500 fab fa-linkedin text-lg leading-lg"
></i
><span class="lg:hidden inline-block ml-2">Profile</span></a
>
</li>
</ul>
</div>
</div>
</nav>
<!-- Main Area -->
<main>
<!-- Hero -->
<div
class="relative pt-16 pb-32 flex content-center items-center justify-center"
style="min-height: 95vh"
>
<div
class="absolute top-0 w-full h-full bg-top bg-cover"
style="
background-image: url('https://images.unsplash.com/photo-1526506118085-60ce8714f8c5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2134&q=80');
"
>
<span
id="blackOverlay"
class="w-full h-full absolute opacity-75 bg-black"
></span>
</div>
<div class="container relative mx-auto" data-aos="fade-in">
<div class="items-center flex flex-wrap">
<div class="w-full lg:w-6/12 px-4 ml-auto mr-auto text-center">
<div>
<h1 class="text-white font-semibold text-5xl">
Feel The <span class="text-orange-500">Power</span>
</h1>
<p class="mt-4 text-lg text-gray-300">
Welcome to The Power Room. We are a fitness and training
center that focuses on pushing you to your absolute limit.
Download our complete brochure to get started today!
</p>
<a
href="#"
class="bg-transparent hover:bg-orange-500 text-orange-500 font-semibold hover:text-white p-4 border border-orange-500 hover:border-transparent rounded inline-block mt-5 cursor-pointer"
>Download Brochure</a
>
</div>
</div>
</div>
</div>
<div
class="top-auto bottom-0 left-0 right-0 w-full absolute pointer-events-none overflow-hidden"
style="height: 70px; transform: translateZ(0px)"
>
<svg
class="absolute bottom-0 overflow-hidden"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="none"
version="1.1"
viewBox="0 0 2560 100"
x="0"
y="0"
>
<polygon points="2560 0 2560 100 0 100"></polygon>
</svg>
</div>
</div>
<!-- About Section -->
<section id="about" class="relative py-20 bg-black text-white">
<div class="container mx-auto px-4">
<div class="items-center flex flex-wrap">
<div
class="w-full md:w-4/12 ml-auto mr-auto px-4"
data-aos="fade-right"
>
<img
alt="..."
class="max-w-full rounded-lg shadow-lg"
src="https://images.unsplash.com/photo-1550345332-09e3ac987658?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"
/>
</div>
<div
class="w-full md:w-5/12 ml-auto mr-auto px-4"
data-aos="fade-left"
>
<div class="md:pr-12">
<small class="text-orange-500">About our gym</small>
<h3 class="text-4xl uppercase font-bold">Safe Body Building</h3>
<p class="mt-4 text-lg leading-relaxed">
The extension comes with three pre-built pages to help you get
started faster. You can change the text and images and you're
good to go.
</p>
<ul class="list-none mt-6">
<li class="py-2">
<div class="flex items-center">
<div>
<span
class="font-semibold inline-block py-3 mr-3 text-orange-500"
><i class="fas fa-dumbbell fa-2x"></i
></span>
</div>
<div>
<h4 class="text-xl">
The latest & greatest gym equipment
</h4>
</div>
</div>
</li>
<li class="py-2">
<div class="flex items-center">
<div>
<span
class="font-semibold inline-block py-3 mr-3 text-orange-500"
><i class="fas fa-hard-hat fa-2x"></i
></span>
</div>
<div>
<h4 class="text-xl">
5-inch, quality foam floor padding
</h4>
</div>
</div>
</li>
<li class="py-2">
<div class="flex items-center">
<div>
<span
class="font-semibold inline-block py-3 mr-3 text-orange-500"
><i class="fas fa-users fa-2x"></i
></span>
</div>
<div>
<h4 class="text-xl">3 professional trainers</h4>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- Trainers Section -->
<section class="pt-20 pb-48">
<div class="container mx-auto px-4">
<div class="flex flex-wrap justify-center text-center mb-24">
<div class="w-full lg:w-6/12 px-4">
<h2 class="text-4xl font-semibold uppercase">
Meet Our Trainers
</h2>
<p class="text-lg leading-relaxed m-4">
Our trainers are are here to dedicate the time and effort that
you need to get in the best shape of your life
</p>
</div>
</div>
<!-- Trainer Card Wrapper -->
<div class="flex flex-wrap">
<!-- Card 1 -->
<div
class="w-full md:w-4/12 lg:mb-0 mb-12 px-4"
data-aos="flip-right"
>
<div class="px-6">
<img
alt="..."
src="https://images.unsplash.com/photo-1597347343908-2937e7dcc560?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"
class="shadow-lg rounded max-w-full mx-auto"
style="max-width: 250px"
/>
<div class="pt-6 text-center">
<h5 class="text-xl font-bold">Mr Rogers</h5>
<p class="mt-1 text-sm text-gray-500 uppercase font-semibold">
Neighborhood Watchman
</p>
</div>
</div>
</div>
<!-- Card 2 -->
<div
class="w-full md:w-4/12 lg:mb-0 mb-12 px-4"
data-aos="flip-right"
>
<div class="px-6">
<img
alt="..."
src="https://images.unsplash.com/photo-1594381898411-846e7d193883?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60"
class="shadow-lg rounded max-w-full mx-auto"
style="max-width: 250px"
/>
<div class="pt-6 text-center">
<h5 class="text-xl font-bold">Strawberry Shortcake</h5>
<p class="mt-1 text-sm text-gray-500 uppercase font-semibold">
Cupcake Smasher
</p>
</div>
</div>
</div>
<!-- Card 3 -->
<div
class="w-full md:w-4/12 lg:mb-0 mb-12 px-4"
data-aos="flip-right"
>
<div class="px-6">
<img
alt="..."
src="https://images.unsplash.com/photo-1567013127542-490d757e51fc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"
class="shadow-lg rounded max-w-full mx-auto"
style="max-width: 250px"
/>
<div class="pt-6 text-center">
<h5 class="text-xl font-bold">Ronald McDonald</h5>
<p class="mt-1 text-sm text-gray-500 uppercase font-semibold">
Double Whoopass With Cheese
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Header Section -->
<section class="pb-20 relative block bg-black text-white">
<div
class="bottom-auto top-0 left-0 right-0 w-full absolute pointer-events-none overflow-hidden -mt-20"
style="height: 80px; transform: translateZ(0px)"
>
<svg
class="absolute bottom-0 overflow-hidden"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="none"
version="1.1"
viewBox="0 0 2560 100"
x="0"
y="0"
>
<polygon points="2560 0 2560 100 0 100"></polygon>
</svg>
</div>
<div class="container mx-auto px-4 lg:pt-24 lg:pb-64 pb-20 pt-20">
<div class="flex flex-wrap text-center justify-center">
<div class="w-full lg:w-6/12 px-4">
<h2 class="text-4xl font-semibold text-white uppercase">
Contact Us
</h2>
<p class="text-lg leading-relaxed mt-4 mb-4">
Contact us to ask any questions, aquire a membership, talk to
our trainers or anything else
</p>
</div>
</div>
</div>
</section>
<!-- Contact Form -->
<section class="relative block py-24 lg:pt-0 bg-black">
<div class="container mx-auto px-4">
<div class="flex flex-wrap justify-center lg:-mt-64 -mt-48">
<div class="w-full lg:w-6/12 px-4">
<div
class="relative flex flex-col min-w-0 break-words w-full mb-6 shadow-lg rounded-lg bg-gray-300"
data-aos="fade-up-right"
>
<div class="flex-auto p-5 lg:p-10 bg-orange-500 text-white">
<h4 class="text-2xl font-semibold">Want to work with us?</h4>
<p class="leading-relaxed mt-1 mb-4">
Complete this form and we will get back to you in 24 hours.
</p>
<div class="relative w-full mb-3 mt-8">
<label
class="block uppercase text-xs font-bold mb-2"
for="full-name"
>Full Name</label
><input
type="text"
class="px-3 py-3 placeholder-gray-400 bg-white rounded text-sm shadow focus:outline-none focus:shadow-outline w-full"
placeholder="Full Name"
style="transition: all 0.15s ease 0s"
/>
</div>
<div class="relative w-full mb-3">
<label
class="block uppercase text-xs font-bold mb-2"
for="email"
>Email</label
><input
type="email"
class="px-3 py-3 placeholder-gray-400 bg-white rounded text-sm shadow focus:outline-none focus:shadow-outline w-full"
placeholder="Email"
style="transition: all 0.15s ease 0s"
/>
</div>
<div class="relative w-full mb-3">
<label
class="block uppercase text-xs font-bold mb-2"
for="message"
>Message</label
><textarea
rows="4"
cols="80"
class="px-3 py-3 placeholder-gray-400 bg-white rounded text-sm shadow focus:outline-none focus:shadow-outline w-full"
placeholder="Type a message..."
></textarea>
</div>
<div class="text-center mt-6">
<button
class="bg-gray-900 text-white active:bg-gray-700 text-sm font-bold uppercase px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1"
type="button"
style="transition: all 0.15s ease 0s"
>
Send Message
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="relative bg-gray-300 pt-8 pb-6">
<div
class="bottom-auto top-0 left-0 right-0 w-full absolute pointer-events-none overflow-hidden -mt-20"
style="height: 80px; transform: translateZ(0px)"
>
<svg
class="absolute bottom-0 overflow-hidden"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="none"
version="1.1"
viewBox="0 0 2560 100"
x="0"
y="0"
>
<polygon
class="text-gray-300 fill-current"
points="2560 0 2560 100 0 100"
></polygon>
</svg>
</div>
<div class="container mx-auto px-4">
<div class="flex flex-wrap">
<div class="w-full lg:w-6/12 px-4">
<h4 class="text-3xl font-semibold">Follow us on social media</h4>
<h5 class="text-lg mt-0 mb-2 text-gray-700">
Find us on any of these platforms, we respond 1-2 business days.
</h5>
<div class="mt-6">
<button
class="bg-white text-blue-400 shadow-lg font-normal h-10 w-10 items-center justify-center align-center rounded-full outline-none focus:outline-none mr-2 p-3"
type="button"
>
<i class="flex fab fa-twitter text-orange-500"></i></button
><button
class="bg-white text-blue-600 shadow-lg font-normal h-10 w-10 items-center justify-center align-center rounded-full outline-none focus:outline-none mr-2 p-3"
type="button"
>
<i
class="flex fab fa-facebook-square text-orange-500"
></i></button
><button
class="bg-white text-pink-400 shadow-lg font-normal h-10 w-10 items-center justify-center align-center rounded-full outline-none focus:outline-none mr-2 p-3"
type="button"
>
<i class="flex fab fa-linkedin text-orange-500"></i>
</button>
</div>
</div>
</div>
<hr class="my-6 border-gray-400" />
<div
class="flex flex-wrap items-center md:justify-between justify-center"
>
<div class="w-full md:w-4/12 px-4 mx-auto text-center">
<div class="text-sm text-gray-600 font-semibold py-1">
Copyright © The Power Room
</div>
</div>
</div>
</div>
</footer>
function toggleNavbar(collapseID) {
document.getElementById(collapseID).classList.toggle('hidden')
document.getElementById(collapseID).classList.toggle('block')
}
AOS.init({
delay: 200,
duration: 1200,
once: false,
})