-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooktracker.html
65 lines (61 loc) · 2.23 KB
/
booktracker.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dreamy Book Tracker</title>
<link rel="stylesheet" href="booktracker.css">
</head>
<body>
<header>
<h1>🌙 Book Tracker</h1>
<nav>
<button onclick="showDashboard()">Dashboard</button>
<button onclick="showLog()">Book Log</button>
<button onclick="showFilters()">Filters</button>
</nav>
</header>
<main>
<section id="dashboard">
<h2>Your Dashboard</h2>
<div class="progress-overview">
<div>
<h3>Books Read by Genre</h3>
<canvas id="genreChart"></canvas>
</div>
<div>
<h3>Reading Time Spent (Daily Progress)</h3>
<div class="progress-bar-container">
<div id="dailyProgressBar" class="progress-bar">
<span id="progressLabel">0%</span>
</div>
</div>
<canvas id="timeChart"></canvas>
</div>
</div>
</section>
<section id="log" style="display:none;">
<h2>Book Log</h2>
<div id="bookEntries" class="book-cards-container"></div>
</section>
<section id="filters" style="display:none;">
<h2>Filters & Search</h2>
<input type="text" id="searchInput" placeholder="🔍 Search by title or author...">
<select id="genreFilter">
<option value="">Select Genre</option>
</select>
<select id="statusFilter">
<option value="">Completion Status</option>
<option value="read">Read</option>
<option value="wishlist">Wishlist</option>
<option value="reading">Currently Reading</option>
</select>
<button onclick="applyFilters()">Apply Filters</button>
</section>
</main>
<footer>
<p>© 2024 Book Tracker</p>
</footer>
<script src="booktracker.js"></script>
</body>
</html>