-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
235 lines (217 loc) · 9.78 KB
/
Copy pathindex.html
File metadata and controls
235 lines (217 loc) · 9.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Library Explorer</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body id="top">
<!-- Header -->
<header id="site-header" aria-label="Site header">
<div class="container">
<h1><span>Library Explorer</span></h1>
<!-- Navigation -->
<nav aria-label="Main navigation">
<ul>
<li><a href="#book-list-section">Books</a></li>
<li><a href="#recommendations-section">Recommendations</a></li>
<li><a href="#favorites-section">Favorites</a></li>
</ul>
</nav>
<!-- Search Bar -->
<form id="search-form" role="search" aria-label="Search books">
<input type="text" id="search-input" name="search" placeholder="Search by title or author" aria-label="Search by title or author" />
<button type="submit">Search</button>
<button type="reset">Reset</button>
</form>
</div>
</header>
<!-- Main Content -->
<main id="main-content">
<!-- Book List by Genre inside one Section -->
<section id="book-list-section" aria-labelledby="book-results-heading">
<h2 id="book-results-heading"><span>Available Books</span></h2>
<!-- Fiction Genre -->
<h3 id="fiction-genre"><span>Fiction</span></h3>
<div class="book-grid">
<article class="book-card" role="group" aria-labelledby="book-title-1">
<img src="Image/Where The Crawdads Sing.jpg"Cover of 'Where the Crawdads Sing' by Delia Owens" />
<div class="book-info">
<h3 id="book-title-1">Where the Crawdads Sing</h3>
<p class="book-author">by Delia Owens</p>
</div>
<div class="book-actions">
<button aria-label="Add 'Where the Crawdads Sing' to favorites">Favorite</button>
<button aria-label="More details about 'Where the Crawdads Sing'">Details</button>
</div>
</article>
<article class="book-card" role="group" aria-labelledby="book-title-2">
<img src="Image/Night circus.jpg" alt="Cover of 'The Night Circus' by Erin Morgenstern" />
<div class="book-info">
<h3 id="book-title-2">The Night Circus</h3>
<p class="book-author">by Erin Morgenstern</p>
</div>
<div class="book-actions">
<button aria-label="Add 'The Night Circus' to favorites">Favorite</button>
<button aria-label="More details about 'The Night Circus'">Details</button>
</div>
</article>
</div>
<!-- Mystery Genre -->
<h3 id="mystery-genre"><span>Mystery</span></h3>
<div class="book-grid">
<article class="book-card" role="group" aria-labelledby="book-title-3">
<img src="Image/The girl with the dragon tattoo.jpg" alt="Cover of 'The Girl with the Dragon Tattoo' by Stieg Larsson" />
<div class="book-info">
<h3 id="book-title-3">The Girl with the Dragon Tattoo</h3>
<p class="book-author">by Stieg Larsson</p>
</div>
<div class="book-actions">
<button aria-label="Add 'The Girl with the Dragon Tattoo' to favorites">Favorite</button>
<button aria-label="More details about 'The Girl with the Dragon Tattoo'">Details</button>
</div>
</article>
<article class="book-card" role="group" aria-labelledby="book-title-4">
<img src="Image/gone girl.jpg" alt="Cover of 'Gone Girl' by Gillian Flynn" />
<div class="book-info">
<h3 id="book-title-4">Gone Girl</h3>
<p class="book-author">by Gillian Flynn</p>
</div>
<div class="book-actions">
<button aria-label="Add 'Gone Girl' to favorites">Favorite</button>
<button aria-label="More details about 'Gone Girl'">Details</button>
</div>
</article>
</div>
<!-- Sci-Fi Genre -->
<h3 id="scifi-genre"><span>Sci-Fi</span></h3>
<div class="book-grid">
<article class="book-card" role="group" aria-labelledby="book-title-5">
<img src="Image/Project hail mary.jpg" alt="Cover of 'Project Hail Mary' by Andy Weir" />
<div class="book-info">
<h3 id="book-title-5">Project Hail Mary</h3>
<p class="book-author">by Andy Weir</p>
</div>
<div class="book-actions">
<button aria-label="Add 'Project Hail Mary' to favorites">Favorite</button>
<button aria-label="More details about 'Project Hail Mary'">Details</button>
</div>
</article>
<article class="book-card" role="group" aria-labelledby="book-title-6">
<img src="Image/Dune.jpg" alt="Cover of 'Dune' by Frank Herbert" />
<div class="book-info">
<h3 id="book-title-6">Dune</h3>
<p class="book-author">by Frank Herbert</p>
</div>
<div class="book-actions">
<button aria-label="Add 'Dune' to favorites">Favorite</button>
<button aria-label="More details about 'Dune'">Details</button>
</div>
</article>
</div>
<!-- Romance Genre -->
<h3 id="romance-genre"><span>Romance</span></h3>
<div class="book-grid">
<article class="book-card" role="group" aria-labelledby="book-title-7">
<img src="Image/The hating game.jpg" alt="Cover of 'The Hating Game' by Sally Thorne" />
<div class="book-info">
<h3 id="book-title-7">The Hating Game</h3>
<p class="book-author">by Sally Thorne</p>
</div>
<div class="book-actions">
<button aria-label="Add 'The Hating Game' to favorites">Favorite</button>
<button aria-label="More details about 'The Hating Game'">Details</button>
</div>
</article>
<article class="book-card" role="group" aria-labelledby="book-title-8">
<img src="Image/Pride and Prejudice.jpg" alt="Cover of 'Pride and Prejudice' by Jane Austen" />
<div class="book-info">
<h3 id="book-title-8">Pride and Prejudice</h3>
<p class="book-author">by Jane Austen</p>
</div>
<div class="book-actions">
<button aria-label="Add 'Pride and Prejudice' to favorites">Favorite</button>
<button aria-label="More details about 'Pride and Prejudice'">Details</button>
</div>
</article>
</div>
<!-- Historical Genre -->
<h3 id="historical-genre"><span>Historical</span></h3>
<div class="book-grid">
<article class="book-card" role="group" aria-labelledby="book-title-9">
<img src="Image/The book theif.jpg" alt="Cover of 'The Book Thief' by Markus Zusak" />
<div class="book-info">
<h3 id="book-title-9">The Book Thief</h3>
<p class="book-author">by Markus Zusak</p>
</div>
<div class="book-actions">
<button aria-label="Add 'The Book Thief' to favorites">Favorite</button>
<button aria-label="More details about 'The Book Thief'">Details</button>
</div>
</article>
<article class="book-card" role="group" aria-labelledby="book-title-10">
<img src="Image/All the light we cannot see.jpg" alt="Cover of 'All the Light We Cannot See' by Anthony Doerr" />
<div class="book-info">
<h3 id="book-title-10">All the Light We Cannot See</h3>
<p class="book-author">by Anthony Doerr</p>
</div>
<div class="book-actions">
<button aria-label="Add 'All the Light We Cannot See' to favorites">Favorite</button>
<button aria-label="More details about 'All the Light We Cannot See'">Details</button>
</div>
</article>
</div>
<!-- "No Books Found" Placeholder (still inside this section) -->
<section id="no-results" class="empty-state" hidden aria-label="No results found">
<img src="images/no-books.png" alt="No books found illustration" class="empty-image" />
<p>Sorry, no books matched your search. Try a different title or author.</p>
</section>
</section>
<!-- Recommendations Section -->
<section id="recommendations-section" aria-labelledby="recommendations-heading">
<h2 id="recommendations-heading"><span>Recommended Reads</span></h2>
<!-- Placeholder recommendation cards or message -->
<p>Recommended books will appear here.</p>
</section>
<!-- Favorites Section -->
<section id="favorites-section" aria-labelledby="favorites-heading">
<h2 id="favorites-heading"><span>Your Favorites</span></h2>
<div id="favorites-list" class="book-grid">
<!-- Example favorite book card -->
<article class="book-card" role="group" aria-labelledby="fav-book-title-1">
<img src="Image/mid night library.jpg" alt="Cover of 'The Midnight Library' by Matt Haig" class="book-cover" />
<div class="book-info">
<h3 id="fav-book-title-1">The Midnight Library</h3>
<p class="book-author">by Matt Haig</p>
</div>
<div class="book-actions" aria-label="Favorite book actions">
<button aria-label="Remove 'The Midnight Library' from favorites"> Remove</button>
<button aria-label="More details about 'The Midnight Library'"> Details</button>
</div>
</article>
</div>
<!-- Empty Favorites Message -->
<section id="no-favorites" class="empty-state" hidden aria-label="No favorite books yet">
<img src="images/no-favorites.png" alt="Illustration showing no favorite books" class="empty-image" />
<p>You haven't added any favorite books yet. Click the button on a book to save it here.</p>
<button aria-label="Browse available books">Browse Books</button>
</section>
</section>
</main>
<!-- Footer -->
<footer id="site-footer" aria-label="Website Footer">
<div class="container">
<nav aria-label="Footer navigation">
<ul>
<li><a href="#top">Home</a></li>
<li><a href="#book-list-section">Book List</a></li>
<li><a href="#favorites-section">Favorites</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<small>© 2025 Library Explorer. All rights reserved.</small>
</div>
</footer>
</body>
</html>