-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathindex.html
More file actions
241 lines (215 loc) · 9.7 KB
/
Copy pathindex.html
File metadata and controls
241 lines (215 loc) · 9.7 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- fontawesome icons -->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" /> -->
<link rel="stylesheet" href="style.css" />
<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/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous" />
<script type="text/javascript" data-cmp-ab="1"
src="https://cdn.consentmanager.net/delivery/autoblocking/1dae96c2c2031.js"
data-cmp-host="a.delivery.consentmanager.net" data-cmp-cdn="cdn.consentmanager.net" data-cmp-codesrc="16">
</script>
<title>My Favorite Books Music App</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
/>
</head>
<body class="bg-gray-900 text-gray-300 d-flex flex-column min-vh-100">
<script>
// Initialize theme with fallback (no localStorage dependency)
(function() {
try {
const saved = localStorage.getItem('theme');
const theme = saved === 'light' ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', theme);
if (document.body) {
document.body.classList.remove('light-theme', 'dark-theme');
document.body.classList.add(theme + '-theme');
}
} catch (e) {
// Fallback to dark theme if localStorage fails
document.documentElement.setAttribute('data-theme', 'dark');
if (document.body) {
document.body.classList.add('dark-theme');
}
console.warn('Theme init error, using default dark theme', e);
}
})();
</script>
<!-- Animated Circles -->
<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>
<!-- Loader -->
<div id="loader">
<div class="pacman-container">
<div class="pacman">
<div class="pacman-top"></div>
<div class="pacman-bottom"></div>
</div>
</div>
<div class="dot dot-1"></div>
<div class="dot dot-2"></div>
<div class="dot dot-3"></div>
<div class="dot dot-4"></div>
<div class="dot dot-5"></div>
<div class="dot dot-6"></div>
</div>
<!-- Dynamic Navbar Placeholder -->
<div id="navbar-placeholder"></div>
<!-- Hero Section -->
<section class="hero-section bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900 text-center py-20 px-4 relative overflow-hidden">
<div class="hero-bg-element hero-book-icon absolute top-10 left-10 opacity-20 animate-float">📚</div>
<div class="hero-bg-element hero-headphone-icon absolute top-20 right-20 opacity-20 animate-float-delayed">🎧</div>
<div class="hero-bg-element hero-star-icon absolute bottom-20 left-20 opacity-20 animate-float">⭐</div>
<div class="hero-bg-element hero-music-icon absolute bottom-10 right-10 opacity-20 animate-float-delayed">🎵</div>
<div class="container mx-auto max-w-4xl relative z-10">
<h1 class="text-5xl md:text-6xl font-bold text-white mb-6 animate-fade-in-up">Welcome to <span
class="text-green-400 animate-pulse">Lisbook</span></h1>
<div class="text-xl md:text-2xl text-gray-300 mb-8 max-w-2xl mx-auto animate-fade-in-up-delayed">
<span id="typed-text"></span>
</div>
<div class="animate-fade-in-up-delayed-2">
<a href="./explore.html"
class="inline-block bg-green-500 hover:bg-green-600 text-white font-semibold py-3 px-8 rounded-full transition duration-300 ease-in-out transform hover:scale-105 hover:shadow-lg focus:outline-none focus:ring-4 focus:ring-green-300 animate-bounce-subtle">
Explore Books
</a>
<p class="text-sm text-gray-400 mt-4 animate-fade-in">Discover amazing stories and knowledge</p>
</div>
</div>
<div class="absolute bottom-8 left-1/2 transform -translate-x-1/2 animate-bounce">
<svg class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"></path>
</svg>
</div>
</section>
<!-- Main Content -->
<main class="container my-5">
<!-- Top Audio Books Section -->
<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 cards will be populated here -->
</div>
</section>
<!-- Embed gd.html -->
<section class="row rounded-5 p-5 mt-5">
<iframe id="gd-iframe" src="gd.html" class="w-full" height="850px" frameborder="0"></iframe>
</section>
<!-- Book Navigation Buttons -->
<section class="d-flex justify-content-evenly align-items-stretch rounded-5 p-4 my-5 gx-5 text-center">
<a href="./index.html"><i class="fa-solid fa-arrow-left text-green-500 text-5xl"></i></a>
<a href="./pbd.html"><i class="fa-solid fa-arrow-right text-green-500 text-5xl"></i></a>
</section>
<!-- Comments Section -->
<section class="rounded-5 p-5 mt-5 w-full max-w-3xl mx-auto shadow-md shadow-green-400">
<div class="container mx-auto p-4 sm:p-6 rounded-lg flex flex-col items-center justify-center w-full">
<h2 class="text-lg sm:text-xl md:text-2xl page-title fw-semibold mb-6 text-center" id="share">
Share Your Comments
</h2>
<form id="comment-form" class="space-y-4 w-full">
<div>
<input type="text" id="username" class="form-control w-full mt-2 rounded-md text-green-300 p-2 text-sm sm:text-base" placeholder="UserName" />
</div>
<div>
<textarea id="comment" class="form-control w-full mt-2 rounded-md bg-body-tertiary border p-2 text-sm sm:text-base" placeholder="Comment What You felt" rows="3" required></textarea>
</div>
<div class="text-center">
<button type="submit" class="bg-green-500 text-white py-2 px-4 sm:px-6 rounded-md hover:bg-green-600 text-sm sm:text-base" id="share2">
Share comment
</button>
</div>
</form>
<div id="comments-list" class="mt-10 space-y-4 w-full"></div>
</div>
</section>
</main>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<!-- Language sync in iframe -->
<script>
function changeLanguage() {
const language = document.getElementById('language').value;
const iframe = document.getElementById('gd-iframe');
if (iframe && iframe.contentWindow) {
iframe.contentWindow.postMessage({ type: 'changeLanguage', language: language }, '*');
}
}
document.getElementById('language').addEventListener('change', changeLanguage);
</script>
<!-- Footer Placeholder -->
<div id="footer-placeholder" class="mt-auto"></div>
<!-- Chatbot Floating Button and Window -->
<div id="chatbot-button">
<i class="bi bi-chat-dots" style="font-size: 2rem; color: white;"></i>
</div>
<div id="chatbot-window">
<div id="chat-header">
<span style="font-weight: bold; font-size: 1.2rem;">Assistant <i class="bi bi-robot"
style="font-size: 1.2rem; color: white;"></i></span>
<button id="chatbot-close">×</button>
</div>
<div id="chatbot-messages"></div>
<form id="chatbot-form">
<input id="chatbot-input" type="text" placeholder="Ask about audiobooks..." autocomplete="off">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<script src="script.js"></script>
<script src="app.js"></script>
<script src="explore.js"></script>
<script src="translation.js"></script>
<script src="marked.min.js"></script>
<script src="share.js"></script>
<script src="dynamic-components.js"></script>
<!-- Hero Section Typing Animation -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const typedTextElement = document.getElementById('typed-text');
const text = "Discover and enjoy amazing audio books from around the world. Immerse yourself in captivating stories and knowledge at your fingertips.";
let index = 0;
function typeWriter() {
if (index < text.length) {
typedTextElement.innerHTML += text.charAt(index);
index++;
setTimeout(typeWriter, 50);
}
}
setTimeout(typeWriter, 1000);
});
</script>
<script src="scripts.js"></script>
</body>
</html>