-
Notifications
You must be signed in to change notification settings - Fork 51
/
index.html
435 lines (406 loc) · 20.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<!-- Favicon -->
<link rel="icon" href="Images/favicon.jpg" type="image/png" />
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous" />
<title>My Favorite Books Music App</title>
</head>
<body class="dark-theme bg-gray-900 text-gray-300 d-flex flex-column min-vh-100">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div id="loader" class="spinner-container">
<div class="spinner-border" role="status" style="width: 4rem; height: 4rem; color: #1db954">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<!-- Navbar -->
<!-- <div id="header-placeholder" class="sticky top-0 z-20"></div> -->
<header class="sticky top-0 z-20 bg-gray-800 p-4 shadow-sm">
<nav class="">
<div class="container mx-auto flex justify-between items-center">
<!-- Logo -->
<a class="logo-text h3 font-bold d-inline-flex" href="./index.html">
<img src="./Images/lisbook-logo-1.png" alt="Logo" width="40" height="auto" class="align-text-center me-2" />
Lisbook
</a>
<!-- Menu Links and Theme Toggle -->
<div id="menu"
class="fixed inset-0 bg-gray-900 w-full h-full flex flex-col items-center justify-center space-y-8 transform scale-0 transition-transform duration-300 ease-in-out lg:relative lg:flex lg:items-end lg:justify-end lg:space-y-0 lg:bg-transparent lg:scale-100 lg:flex-row lg:space-x-4 z-20">
<div id="menu-close" class="text-gray-300 lg:hidden absolute top-5 right-5 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</div>
<a href="./index.html" class="text-gray-300 hover:text-green-500" id="home">Home</a>
<a href="./explore.html" class="text-gray-300 hover:text-green-500" id="home">Explore</a>
<a href="./about.html" class="text-gray-300 hover:text-green-500" id="about">About</a>
<a href="./contact.html" class="text-gray-300 hover:text-green-500">Contact</a>
<a href="./faq.html" class="text-gray-300 hover:text-green-500">FAQs</a>
<!-- Profile Icon and Theme Toggle -->
<button id="theme-toggle" class="text-gray-300 hover:text-green-500">
<!-- Sun Icon (for dark theme) -->
<svg id="sun-icon" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 hidden" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<circle cx="12" cy="12" r="5" stroke="currentColor" stroke-width="2" />
<line x1="12" y1="1" x2="12" y2="4" stroke="currentColor" stroke-width="2" />
<line x1="12" y1="20" x2="12" y2="23" stroke="currentColor" stroke-width="2" />
<line x1="4.22" y1="4.22" x2="6.34" y2="6.34" stroke="currentColor" stroke-width="2" />
<line x1="17.66" y1="17.66" x2="19.78" y2="19.78" stroke="currentColor" stroke-width="2" />
<line x1="1" y1="12" x2="4" y2="12" stroke="currentColor" stroke-width="2" />
<line x1="20" y1="12" x2="23" y2="12" stroke="currentColor" stroke-width="2" />
<line x1="4.22" y1="19.78" x2="6.34" y2="17.66" stroke="currentColor" stroke-width="2" />
<line x1="17.66" y1="6.34" x2="19.78" y2="4.22" stroke="currentColor" stroke-width="2" />
</svg>
<!-- Moon Icon (for light theme) -->
<svg id="moon-icon" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" />
</svg>
</button>
<a href="./profile.html" class="text-gray-300 hover:text-green-500 me-4">
<i class="bi bi-person-circle h-6 w-6"></i>
</a>
</div>
<!-- Mobile Menu Toggle Button -->
<div id="menu-toggle" title="Menu" class="text-gray-300 lg:hidden cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" />
</svg>
</div>
</div>
</nav>
</header>
<!-- Social Share Modal -->
<div class="modal fade" id="exampleModalToggle" aria-hidden="true" aria-labelledby="exampleModalToggleLabel"
tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalToggleLabel">
Share it on :
</h1>
<button type="button" class="btn-close rounded-5" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- Modale body -->
<div class="modal-body">
<div class="flex justify-center space-x-4 mt-4">
<a href="https://www.facebook.com/sharer/sharer.php?u=http://127.0.0.1:5500/Lisbook/pbd.html&text=Lisbook+god Delusion"
target="_blank">
<img src="https://upload.wikimedia.org/wikipedia/commons/5/51/Facebook_f_logo_%282019%29.svg"
alt="Share on Facebook" style="width: 24px; height: 24px" />
</a>
<a href="https://twitter.com/intent/tweet?url=http://127.0.0.1:5500/Lisbook/pbd.html&text=Lisbook+god Delusion"
target="_blank">
<img src="https://abs.twimg.com/favicons/twitter.2.ico" alt="Share on X" />
</a>
<a href="https://api.whatsapp.com/send?text=http://127.0.0.1:5500/Lisbook/pbd.html" target="_blank">
<img
src="https://cdn3.iconfinder.com/data/icons/social-media-2169/24/social_media_social_media_logo_whatsapp-512.png"
alt="Share on WhatsApp" style="width: 24px; height: 24px" />
</a>
</div>
</div>
<!-- <div class="modal-footer">
<button
class="btn btn-primary"
data-bs-target="#exampleModalToggle2"
data-bs-toggle="modal"
>
Open second modal
</button>
</div> -->
</div>
</div>
</div>
<!-- Social Share Modal end -->
<main class="container my-5">
<!-- Top audio book -->
<section class="rounded-5 p-5 my-5">
<h2 class="display-5 page-title fw-semibold" id="top-audio-books">
Top Audio Books
</h2>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-4 g-4 mt-4 align-items-stretch">
<!-- book card -->
<div class="col">
<div class="features-card border rounded-5 p-4 text-center">
<div class="card-cover-container rounded-4 d-flex align-items-center border">
<img src="./Images/cs.jpg" class="card-img-top img-fluid" alt="Audio book cover" />
</div>
<div class="card-body mt-4">
<h4 class="card-title h-6 page-title">Pale Blue Dot</h4>
<p class="card-text">By Carl Sagan</p>
<a href="pbd.html" class="btn btn-bd-primary btn-sm mt-4 px-5 rounded-5">Discover</a>
</div>
</div>
</div>
<!-- book card -->
<div class="col">
<div class="features-card border rounded-5 p-4 text-center">
<div class="card-cover-container rounded-4 d-flex align-items-center border">
<img src="./Images/Frankestine.jpg" class="card-img-top img-fluid" alt="Audio book cover" />
</div>
<div class="card-body mt-4">
<h4 class="card-title h6 page-title">Frankestine</h4>
<p class="card-text">By Mary Shelby</p>
<a href="fs.html" class="btn btn-bd-primary btn-sm mt-4 px-5 rounded-5">Discover</a>
</div>
</div>
</div>
<!-- book card -->
<div class="col">
<div class="features-card border rounded-5 p-4 text-center">
<div class="card-cover-container rounded-4 d-flex align-items-center border">
<img src="./Images/Adventures_Sherlock_Holmes.jpg" class="card-img-top img-fluid"
alt="Audio book cover" />
</div>
<div class="card-body mt-4">
<h4 class="card-title h6 page-title">
Adventures of Sherlock Holmes
</h4>
<p class="card-text">By Sir Arthur Conan Doyle</p>
<a href="adventures.html" class="btn btn-bd-primary btn-sm mt-4 px-5 rounded-5">Discover</a>
</div>
</div>
</div>
<!-- book card -->
<div class="col">
<div class="features-card border rounded-5 p-4 text-center">
<div class="card-cover-container rounded-4 d-flex align-items-center border">
<img src="./Images/Sapiens.jpg" class="card-img-top img-fluid" alt="Audio book cover" />
</div>
<div class="card-body mt-4">
<h4 class="card-title h6 page-title">
Sapiens: A Brief History of Humankind
</h4>
<p class="card-text">By Yuval Noah Harari</p>
<a href="rdpd.html" class="btn btn-bd-primary btn-sm mt-4 px-5 rounded-5">Discover</a>
</div>
</div>
</div>
</div>
</section>
<!-- Book details playlist -->
<section class="row d-flex align-items-stretch rounded-5 p-5">
<div class="col-12 col-lg-4 mb-5 mb-lg-0">
<div class="features-card border rounded-5 p-4 text-center h-100">
<!-- Cover Image -->
<div class="card-cover-container rounded-4 d-flex align-items-center border" style="height: 16rem">
<img id="img" src="./Images/GD.jpeg" alt="God Delusion Cover" class="card-img-top img-fluid" />
</div>
<!-- Book Details -->
<div class="mt-4">
<h1 class="text-2xl font-bold text-green-500">God Delusion</h1>
<h3 class="text-lg mt-2" id="author-gd1">By Richard Dawkins</h3>
<p class="text-sm mt-2">
The God Delusion is a book by English biologist Richard Dawkins
that argues against the existence of a supernatural creator.
</p>
</div>
<hr class="opacity-50 w-60 mt-4 mx-auto" />
<!-- Favorite Button -->
<div class="mt-3 flex justify-center icon-action-btn-container">
<i class="bi bi-heart mx-4 icon-action-btn tooltip-parent tooltip-bottom" id="favourite-btn"><span
class="tooltip" id="favourite">Save to Favourites</span></i>
<i class="bi bi-share mx-4 icon-action-btn tooltip-parent tooltip-bottom" id="share-btn"
data-bs-target="#exampleModalToggle" data-bs-toggle="modal"><span class="tooltip"
id="share">Share</span></i>
<i class="bi bi-chat mx-4 icon-action-btn tooltip-parent tooltip-bottom" id="view-comments-btn"><span
class="tooltip" id="view">View comments</span></i>
</div>
<button id="share-link"
class="bg-green-500 text-white font-semibold py-2 px-4 rounded hover:bg-green-600 transition duration-200 mt-4">
Share
</button>
</div>
</div>
<div class="col-12 col-lg-8 ps-4">
<!-- playlist -->
<div class="eatures-card border rounded-5 p-4 text-center h-100">
<ul id="playlist" class="playlist list-none text-left overflow-auto m-2 mb-4">
<li class="adiobk-sub-item d-flex justify-content-between flex-column" data-src="audio/part1.mp3">
<div class="d-flex justify-content-between">
<p>Introduction: God Delusion</p>
<a href="audio/part1.mp3" download><i class="bi bi-cloud-arrow-down-fill"></i></a>
</div>
<div class="bg-gray-700 flex-1 rounded-full ring-1">
<div class="progress-bar bg-red bg-white rounded-full"></div>
</div>
</li>
<li class="adiobk-sub-item d-flex justify-content-between flex-column" data-src="audio/part2.mp3">
<div class="d-flex justify-content-between">
<p>Part 2</p>
<a href="audio/part2.mp3" download><i class="bi bi-cloud-arrow-down-fill"></i></a>
</div>
<div class="bg-gray-700 flex-1 rounded-full ring-1">
<div class="progress-bar bg-red bg-white rounded-full"></div>
</div>
</li>
<li class="adiobk-sub-item d-flex justify-content-between flex-column" data-src="audio/part3.mp3">
<div class="d-flex justify-content-between">
<p>Part 3</p>
<a href="audio/part3.mp3" download><i class="bi bi-cloud-arrow-down-fill"></i></a>
</div>
<div class="bg-gray-700 flex-1 rounded-full ring-1">
<div class="progress-bar bg-red bg-white rounded-full"></div>
</div>
</li>
<li class="adiobk-sub-item d-flex justify-content-between flex-column" data-src="audio/part4.mp3">
<div class="d-flex justify-content-between">
<p>Part 4</p>
<a href="audio/part4.mp3" download><i class="bi bi-cloud-arrow-down-fill"></i></a>
</div>
<div class="bg-gray-700 flex-1 rounded-full ring-1">
<div class="progress-bar bg-red bg-white rounded-full"></div>
</div>
</li>
<li class="adiobk-sub-item d-flex justify-content-between flex-column" data-src="audio/part5.mp3">
<div class="d-flex justify-content-between">
<p>Part 5</p>
<a href="audio/part5.mp3" download><i class="bi bi-cloud-arrow-down-fill"></i></a>
</div>
<div class="bg-gray-700 flex-1 rounded-full ring-1">
<div class="progress-bar bg-red bg-white rounded-full"></div>
</div>
</li>
<li class="adiobk-sub-item d-flex justify-content-between flex-column" data-src="audio/part6.mp3">
<div class="d-flex justify-content-between">
<p>Part 6</p>
<a href="audio/part6.mp3" download><i class="bi bi-cloud-arrow-down-fill"></i></a>
</div>
<div class="bg-gray-700 flex-1 rounded-full ring-1">
<div class="progress-bar bg-red bg-white rounded-full"></div>
</div>
</li>
<li class="adiobk-sub-item d-flex justify-content-between flex-column" data-src="audio/part7.mp3">
<div class="d-flex justify-content-between">
<p>Part 7</p>
<a href="audio/part7.mp3" download><i class="bi bi-cloud-arrow-down-fill"></i></a>
</div>
<div class="bg-gray-700 flex-1 rounded-full ring-1">
<div class="progress-bar bg-red bg-white rounded-full"></div>
</div>
</li>
</ul>
<div class="player container rounded-5">
<audio id="audio-player" class="mt-4 mx-auto"></audio>
<span id="currentTime">0:00</span>
<input type="range" id="seekSlider" min="0" value="0" />
<span id="duration">0:00</span>
<!-- Speed control -->
<div class="relative inline-block">
<span id="speedButton"
class="cursor-pointer text-green-300 font-semibold rounded-lg py-1 px-3 hover:text-green-200 transition">1x</span>
<!-- Dropdown Menu -->
<ul id="speedDropdown" class="absolute hidden bg-gray-800 shadow-md rounded-xl mt-2 w-20">
<li class="px-4 py-2 cursor-pointer hover:bg-gray-700 rounded-xl text-green-300" data-speed="0.5">
0.5x
</li>
<li class="px-4 py-2 cursor-pointer hover:bg-gray-700 rounded-xl text-green-300" data-speed="1">
1x
</li>
<li class="px-4 py-2 cursor-pointer hover:bg-gray-700 rounded-xl text-green-300" data-speed="1.5">
1.5x
</li>
<li class="px-4 py-2 cursor-pointer hover:bg-gray-700 rounded-xl text-green-300" data-speed="2">
2x
</li>
</ul>
</div>
</div>
<!-- Audio Players Controls Buttons -->
<div class="ctrl-player mt-4 mx-auto" id="ctrl-player">
<div class="ctrl-buttons d-flex justify-content-evenly align-items-center">
<div class="ctrl-button ctrl-button-small" id="volume-down">
<i class="bi bi-volume-down-fill"></i>
</div>
<div class="ctrl-button ctrl-button-medium" id="fast-backward">
<span>-30</span>
</div>
<div class="ctrl-button ctrl-button-large d-flex justify-center" id="ctrl-play">
<i class="bi bi-play-fill"></i>
</div>
<div class="ctrl-button ctrl-button-medium" id="fast-forward">
<span>+30</span>
</div>
<div class="ctrl-button ctrl-button-small" id="volume-up">
<i class="bi bi-volume-up-fill"></i>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Book buttons navigations -->
<section class="d-flex justify-content-evenly align-items-stretch rounded-5 p-4 my-5 gx-5 text-center">
<div class="flex-item w-auto" style="min-width: 150px;">
<a href="./index.html" class="text-gray-300 hover:text-green-500 border p-3 d-block rounded-start-5">Previous
Book</a>
</div>
<div class="flex-item w-auto" style="min-width: 150px;">
<a href="./pbd.html" class="text-gray-300 hover:text-green-500 p-3 border d-block rounded-end-5">Next Book</a>
</div>
</section>
<section class="row rounded-5 p-5 mt-5">
<!-- Comments Section -->
<div class="container mx-auto p-6 rounded-lg">
<h2 class="display-5 page-title fw-semibold mb-6 text-center" id="share">
Share Your Comments
</h2>
<form id="comment-form" class="space-y-4 mt-5">
<div>
<label for="username" class="form-label" id="yourname">Your Name:</label>
<input type="text" id="username" class="form-control mt-2 rounded-5 bg-body-tertiary border" required />
</div>
<div>
<label for="comment" class="form-label" id="yourcomment">Your Comment:</label>
<textarea id="comment" class="form-control mt-2 rounded-5 bg-body-tertiary border" rows="6"
required></textarea>
</div>
<div class="text-center">
<button type="submit" class="bg-green-500 text-white py-2 px-6 rounded-full hover:bg-green-600" id="share2">
Share comment
</button>
</div>
</form>
<div id="comments-list" class="mt-10 space-y-4"></div>
</div>
</section>
</main>
<!-- Footer -->
<div id="footer-placeholder" class="mt-auto"></div>
<!-- JavaScript -->
<script src="./script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>