-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
512 lines (498 loc) · 18.4 KB
/
index.html
File metadata and controls
512 lines (498 loc) · 18.4 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
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
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="google-signin-client_id"
content="89277626811-pduv17ui5npi4krosbe5tctcoqcqul11.apps.googleusercontent.com"
/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-4Q6Gf2aSP4eDXB8Miphtr37CMZZQ5oXLH2yaXMJ2w8e2ZtHTl7GptT4jmndRuHDT"
crossorigin="anonymous"
/>
<title>BookVerse - Your Digital Library</title>
<meta name="description"
content="Nitin Gupta ka personal developer portfolio. Frontend Web Developer skilled in HTML, CSS, JavaScript, React.">
<meta property="og:type" content="website">
<meta name="robots" content="index, follow">
<meta property="og:url" content="https://nitin-codehub.github.io/E-Book-Project/">
<meta property ="og:image" content="https://nitin-codehub.github.io/E-Book-Project/">
<link rel="stylesheet" href="my-ebook/index.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
/>
<link rel="shortcut icon" href="my-ebook/1222.PNG" type="image/x-icon">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-container">
<div class="nav-logo">
<h2><i class="fas fa-book-open"></i> BookVerse</h2>
</div>
<ul class="nav-menu">
<li><a href="#home" class="nav-link">Home</a></li>
<li><a href="#library" class="nav-link">Library</a></li>
<li><a href="#categories" class="nav-link">Categories</a></li>
<li><a href="#about" class="nav-link">About</a></li>
<li><a href="#contact" class="nav-link">Contact</a></li>
<li>
<a href="#reading-list" class="nav-link reading-list-btn"
>Reading List (<span id="reading-count">0</span>)</a
>
</li>
<li><a href="#login" class="nav-link login-btn">Login</a></li>
</ul>
<div class="hamburger" id="hamburger">
<span></span>
<span></span>
<span></span>
</div>
</div>
</nav>
<!-- Home Section -->
<section id="home" class="hero">
<div class="hero-content">
<h1>Discover Your Next Great Read</h1>
<p>
Access thousands of e-books across all genres. Read anywhere, anytime
on any device
</p>
<div class="search-container">
<input
type="text"
id="book-search"
placeholder="Search for books, authors, or genres..."
/>
<button onclick="searchBooks()"><i class="fas fa-search"></i></button>
</div>
<div class="hero-buttons">
<button class="cta-btn" onclick="scrollToSection('library')">
Browse Library
</button>
<button
class="cta-btn secondary"
onclick="scrollToSection('categories')"
>
Explore Categories
</button>
</div>
</div>
</section>
<!-- Featured Books Section -->
<section id="featured" class="featured-books">
<div class="container">
<h2>Featured Books</h2>
<div class="books-slider">
<div class="book-card featured">
<img
src="https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=200&h=300&fit=crop"
alt="Classic Literature"
/>
<div class="book-info">
<h3>Pride and Prejudice</h3>
<p class="author">Jane Austen</p>
<p class="genre">Classic Literature</p>
<div class="rating">★★★★★ (4.2)</div>
<button
class="read-btn"
onclick="addToReadingList('Pride and Prejudice', 'Jane Austen')"
>
Add to List
</button>
</div>
</div>
<div class="book-card featured">
<img
src="https://images.unsplash.com/photo-1543002588-bfa74002ed7e?w=200&h=300&fit=crop"
alt="Science Fiction"
/>
<div class="book-info">
<h3>Dune</h3>
<p class="author">Frank Herbert</p>
<p class="genre">Science Fiction</p>
<div class="rating">★★★★★ (4.5)</div>
<button
class="read-btn"
onclick="addToReadingList('Dune', 'Frank Herbert')"
>
Add to List
</button>
</div>
</div>
<div class="book-card featured">
<img
src="https://images.unsplash.com/photo-1512820790803-83ca734da794?w=200&h=300&fit=crop"
alt="Mystery"
/>
<div class="book-info">
<h3>The Girl with the Dragon Tattoo</h3>
<p class="author">Stieg Larsson</p>
<p class="genre">Mystery & Thriller</p>
<div class="rating">★★★★☆ (4.1)</div>
<button
class="read-btn"
onclick="addToReadingList('The Girl with the Dragon Tattoo', 'Stieg Larsson')"
>
Add to List
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Library Section -->
<section id="library" class="library">
<div class="container">
<h2>Digital Library</h2>
<div class="library-filters">
<select id="genre-filter">
<option value="">All Genres</option>
<option value="fiction">Fiction</option>
<option value="non-fiction">Non-Fiction</option>
<option value="mystery">Mystery</option>
<option value="romance">Romance</option>
<option value="sci-fi">Science Fiction</option>
<option value="biography">Biography</option>
</select>
<select id="format-filter">
<option value="">All Formats</option>
<option value="epub">EPUB</option>
<option value="pdf">PDF</option>
<option value="audiobook">Audiobook</option>
</select>
<input
type="text"
id="author-search"
placeholder="Search by author..."
/>
</div>
<div class="books-grid" id="books-grid">
<!-- Books will be populated by JavaScript -->
</div>
</div>
</section>
<!-- Categories Section -->
<section id="categories" class="categories">
<div class="container">
<h2>Browse by Category</h2>
<div class="category-grid">
<div class="category-card" onclick="filterByCategory('fiction')">
<i class="fas fa-book"></i>
<h3>Fiction</h3>
<p>2,450 books</p>
</div>
<div class="category-card" onclick="filterByCategory('non-fiction')">
<i class="fas fa-lightbulb"></i>
<h3>Non-Fiction</h3>
<p>1,823 books</p>
</div>
<div class="category-card" onclick="filterByCategory('mystery')">
<i class="fas fa-search"></i>
<h3>Mystery & Thriller</h3>
<p>967 books</p>
</div>
<div class="category-card" onclick="filterByCategory('romance')">
<i class="fas fa-heart"></i>
<h3>Romance</h3>
<p>1,245 books</p>
</div>
<div class="category-card" onclick="filterByCategory('sci-fi')">
<i class="fas fa-rocket"></i>
<h3>Science Fiction</h3>
<p>756 books</p>
</div>
<div class="category-card" onclick="filterByCategory('biography')">
<i class="fas fa-user"></i>
<h3>Biography</h3>
<p>543 books</p>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="about">
<div class="container">
<h2>About BookVerse</h2>
<div class="about-content">
<div class="about-text">
<h3>Your Gateway to Infinite Stories</h3>
<p>
BookVerse is a comprehensive digital library platform that brings
you access to thousands of e-books across all genres. Whether
you're a casual reader or a book enthusiast, our platform offers
an immersive reading experience.
</p>
<div class="platform-features">
<div class="feature">
<h4><i class="fas fa-mobile-alt"></i> Multi-Device Reading</h4>
<p>
Read seamlessly across all your devices with automatic sync of
reading progress, bookmarks, and notes.
</p>
</div>
<div class="feature">
<h4><i class="fas fa-palette"></i> Customizable Reader</h4>
<p>
Adjust font size, background color, and line spacing for the
perfect reading experience.
</p>
</div>
<div class="feature">
<h4><i class="fas fa-download"></i> Offline Reading</h4>
<p>
Download books for offline reading and never miss a chapter,
even without internet connection.
</p>
</div>
</div>
</div>
<div class="about-image">
<img
src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=500&h=400&fit=crop"
alt="Digital reading"
/>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="contact">
<div class="container">
<h2>Contact Us</h2>
<div class="contact-content">
<div class="contact-info">
<h3>Get in Touch</h3>
<div class="contact-item">
<h4><i class="fas fa-map-marker-alt"></i> Address</h4>
<p>123 Digital Avenue<br />Tech District, CA 94105</p>
</div>
<div class="contact-item">
<h4><i class="fas fa-phone"></i> Phone</h4>
<p>+1 (555) READ-BOOK</p>
</div>
<div class="contact-item">
<h4><i class="fas fa-envelope"></i> Email</h4>
<p>support@bookverse.com</p>
</div>
<div class="contact-item">
<h4><i class="fas fa-clock"></i> Support Hours</h4>
<p>24/7 Customer Support<br />Live Chat Available</p>
</div>
</div>
<div class="contact-form">
<h3>Send us a message</h3>
<form id="contact-form">
<input type="text" id="name" placeholder="Your Name" required />
<input
type="email"
id="email"
placeholder="Your Email"
required
/>
<select id="inquiry-type">
<option value="">Select Inquiry Type</option>
<option value="technical">Technical Support</option>
<option value="account">Account Issues</option>
<option value="billing">Billing Questions</option>
<option value="general">General Inquiry</option>
</select>
<textarea
id="message"
placeholder="Your Message"
rows="5"
required
></textarea>
<button type="submit">Send Message</button>
</form>
</div>
</div>
</div>
</section>
<!-- Reading List Modal -->
<div id="reading-list-modal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2><i class="fas fa-list"></i> My Reading List</h2>
<div id="reading-list-items"></div>
<div class="reading-actions">
<button id="clear-list">Clear List</button>
<button id="start-reading">Start Reading</button>
</div>
</div>
</div>
<!-- Login Modal -->
<div id="login-modal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2><i class="fas fa-user"></i> Login to BookVerse</h2>
<div class="auth-tabs">
<button class="tab-btn active" onclick="showTab('login')">
Login
</button>
<button class="tab-btn" onclick="showTab('register')">
Register
</button>
</div>
<div id="login-tab" class="auth-tab active">
<form id="login-form">
<input type="email" placeholder="Email" required />
<input type="password" placeholder="Password" required />
<button type="submit">Login</button>
<p><a href="#" onclick="showTab('forgot')">Forgot Password?</a></p>
</form>
<div class="social-login">
<button class="social-btn google">
<i class="fab fa-google"></i> Continue with Google
</button>
<button class="social-btn facebook">
<i class="fab fa-facebook-f"></i> Continue with Facebook
</button>
</div>
</div>
<div id="register-tab" class="auth-tab">
<form id="register-form">
<input type="text" placeholder="Full Name" required />
<input type="email" placeholder="Email" required />
<input type="password" placeholder="Password" required />
<input type="password" placeholder="Confirm Password" required />
<label class="checkbox-label">
<input type="checkbox" required />
I agree to the Terms of Service and Privacy Policy
</label>
<button type="submit">Create Account</button>
</form>
</div>
</div>
</div>
<!-- E-book Reader Modal -->
<div id="reader-modal" class="modal reader-modal">
<div class="reader-container">
<div class="reader-header">
<h3 id="reader-title">Book Title</h3>
<div class="reader-controls">
<button onclick="adjustFontSize(-1)">
<i class="fas fa-minus"></i>
</button>
<button onclick="adjustFontSize(1)">
<i class="fas fa-plus"></i>
</button>
<button onclick="toggleTheme()">
<i class="fas fa-adjust"></i>
</button>
<button onclick="closeReader()">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div class="reader-content" id="reader-content">
<p>
This is a sample e-book reader. In a real implementation, this would
display the actual book content with navigation controls,
bookmarking capabilities, and reading progress tracking.
</p>
<p>Features would include:</p>
<ul>
<li>Chapter navigation</li>
<li>Bookmarks and highlights</li>
<li>Notes and annotations</li>
<li>Reading progress sync</li>
<li>Customizable display settings</li>
</ul>
</div>
<div class="reader-footer">
<div class="reading-progress">
<div class="progress-bar">
<div class="progress-fill" style="width: 15%"></div>
</div>
<span>Page 45 of 300 (15%)</span>
</div>
</div>
</div>
</div>
<!-- User Reviews Section -->
<section class="reviews">
<div class="container">
<h2>What Our Readers Say</h2>
<div class="review-grid">
<div class="review">
<div class="stars">★★★★★</div>
<p>
"BookVerse has transformed my reading habits. The sync feature is
incredible!"
</p>
<span>- Sarah M., Book Enthusiast</span>
</div>
<div class="review">
<div class="stars">★★★★★</div>
<p>
"Huge selection and the reader is so customizable. Perfect for
night reading."
</p>
<span>- John D., Student</span>
</div>
<div class="review">
<div class="stars">★★★★★</div>
<p>
"Finally, a platform that works seamlessly across all my devices!"
</p>
<span>- Emily R., Professional</span>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer-content">
<div class="footer-section">
<h3><i class="fas fa-book-open"></i> BookVerse</h3>
<p>Your gateway to infinite stories and knowledge.</p>
<div class="social-links">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
</div>
</div>
<div class="footer-section">
<h4>Quick Links</h4>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#library">Library</a></li>
<li><a href="#categories">Categories</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
<div class="footer-section">
<h4>Support</h4>
<ul>
<li><a href="#">Help Center</a></li>
<li><a href="#">Reading Guide</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms of Service</a></li>
<li><a href="#">Accessibility</a></li>
</ul>
</div>
<div class="footer-section">
<h4>Newsletter</h4>
<p>Get updates on new releases and exclusive offers</p>
<div class="newsletter">
<input type="email" placeholder="Your email" />
<button>Subscribe</button>
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 BookVerse. All rights reserved.</p>
</div>
</div>
</footer>
<script src="my-ebook/index.js" defer></script>
</body>
</html>