-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathindex.html
308 lines (283 loc) · 14.1 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
<!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>
<!-- Language-selector Toggle -->
<div class="language-selector">
<select
id="language"
onchange="changeLanguage()"
style="background-color: #1db954; color: #fff"
>
<option value="en">English</option>
<option value="fr">Français</option>
<option value="es">Español</option>
<option value="zh">简体中文</option>
<!-- Ajoutez d'autres langues ici -->
</select>
</div>
<!-- Ensure language sync in iframe-->
<script>
function changeLanguage() {
const language = document.getElementById('language').value;
const iframe = document.getElementById('gd-iframe');
if (iframe && iframe.contentWindow) {
//set up postMessage to send the selected language to iframe
iframe.contentWindow.postMessage({ type: 'changeLanguage', language: language }, '*');
}
}
// Add event listener for dropdown change to trigger the function
document.getElementById('language').addEventListener('change', changeLanguage);
</script>
<!-- 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" data-book="paleBlueDot">
<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 h6 page-title" data-translate="title">Pale Blue Dot</h4>
<p class="card-text" data-translate="author">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" data-book="frankenstein">
<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" data-translate="title">Frankestine</h4>
<p class="card-text" data-translate="author">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" data-book="sherlock">
<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" data-translate="title">Adventures of Sherlock Holmes</h4>
<p class="card-text" data-translate="author">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" data-book="sapiens">
<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" data-translate="title">Sapiens: A Brief History of Humankind</h4>
<p class="card-text" data-translate="author">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>
<!-- Embed gd.html -->
<section class="row rounded-5 p-5 mt-5">
<iframe id="gd-iframe" src="gd.html" width="150%" height="850px" frameborder="0"></iframe>
</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="./translation.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>