-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.html
425 lines (377 loc) · 10.1 KB
/
search.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Search Book</title>
<link rel="stylesheet" href="global.css" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./images/favicon/favicon-16x16.png"
/>
<style>
@font-face {
font-family: "FjallaOne";
src: url("./fonts/FjallaOne.ttf");
}
@font-face {
font-family: "exo";
src: url("./fonts/exo.ttf");
}
.mainbg {
width: 100%;
height: 550px;
background-image: url("./images/search_Img/mainBg.jpg");
background-position: center;
background-attachment: fixed;
background-size: cover;
}
.darkBg {
width: 100%;
height: 550px;
position: absolute;
background-color: rgba(0, 0, 0, 0.6);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.search {
margin: 4%;
display: flex;
justify-content: center;
align-items: center;
}
.searchInput {
width: 700px;
padding: 10px;
font-size: 15px;
padding-left: 30px;
color: rgb(105, 96, 96);
height: 30px;
border: 4px solid rgb(104, 96, 96);
background: transparent;
border-radius: 10px;
text-align: center;
padding-right: 70px;
}
.searchicon {
color: #e7f4fc;
}
.SearchImgDiv {
position: absolute;
margin-top: -54px;
width: 60px;
height: 50px;
border-top-right-radius: 30px;
border-bottom-right-radius: 30px;
margin-left: 744px;
display: flex;
align-items: center;
justify-content: center;
transition-duration: 400ms;
}
.SearchImgDiv:hover {
background-color: rgba(255, 255, 255, 0.6);
cursor: pointer;
}
.search-btn {
/* background: #3279ca; */
color: #e7f4fc;
padding: 20px 10px;
border: 1px solid rgb(112, 63, 63);
margin-top: 20px;
width: 150px;
border-radius: 4px;
font-size: 15px;
cursor: pointer;
color: rgb(65, 59, 59);
}
.search-btn:hover {
background-color: rgb(117, 100, 100);
color: #fff;
}
.mainTextPara {
color: white;
line-height: 25px;
margin-top: 40px;
text-align: center;
}
.mainTextheading {
color: white;
font-weight: bold;
font-size: 70px;
margin-bottom: 30px;
}
.navigation {
width: 100%;
height: 70px;
background-color: #343435;
display: flex;
align-items: center;
justify-content: center;
}
.navigation a {
color: white;
text-decoration: none;
font-size: 20px;
}
.activeNacSelect {
background-color: #1569f7;
}
.navSelect {
padding-inline: 40px;
height: 70px;
width: 80px;
display: flex;
align-items: center;
justify-content: center;
}
.navSelect:hover {
background-color: #0b45aa;
}
.navSelect2 {
transition-delay: 100ms;
}
.navSelect3 {
transition-delay: 200ms;
}
.navSelect4 {
transition-delay: 300ms;
}
.navSelect5 {
transition-delay: 400ms;
}
.searchResaults {
margin-left: 5%;
padding-bottom: 50px;
margin-top: 30px;
}
.card {
width: 40%;
padding: 15px;
float: left;
margin-top: 50px;
margin-right: 7%;
box-shadow: 0 5px 15px rgba(65, 64, 64, 0.5);
border-radius: 15px;
background-color: #e7f4fc;
display: flex;
flex-direction: row;
}
.BookImgContainer {
width: 30%;
float: left;
}
.BookImg {
width: 150px;
height: 200px;
}
.details {
width: 60%;
padding-left: 20px;
}
.BookTitle {
font-size: 30px;
font-family: FjallaOne;
}
.BookAuthor {
font-size: 20px;
font-family: exo;
}
.starView {
margin-top: 20px;
margin-bottom: 10px;
}
.star {
width: 20px;
margin-right: 5px;
}
.BookPara {
font-size: 13px;
color: rgb(100, 98, 98);
}
.cardBtnView {
margin-top: 30px;
}
.cardBtn {
text-decoration: none;
padding: 12px;
border-radius: 30px;
color: white;
cursor: pointer;
}
.cardBtn1 {
background-color: #1569f7;
padding-inline: 60px;
}
.cardBtn2 {
background-color: #29a8ef;
padding-inline: 40px;
margin-left: 5px;
}
.NoresaultText {
margin-top: 50px;
width: 95%;
text-align: center;
color: #7a7b7c;
}
.noResaultImg {
width: 80px;
}
.search-your-book {
display: flex;
justify-content: center;
color: #8b8181;
text-align: center;
width: 90%;
}
footer {
margin-top: 200px;
}
</style>
</head>
<body>
<header>
<nav class="mainNav" id="navbar">
<div class="navbar-content" id="navbar-content ">
<ul>
<a href="./index.html" class="navbar-links"> <li>HOME</li></a>
<a href="./aboutus.html" class="navbar-links"> <li>ABOUT US</li></a>
<a href="./index.html#contact" class="navbar-links"
><li>CONTACT US</li></a
>
<a href="./category.html" class="navbar-links">
<li>CATEGORIES</li></a
>
</ul>
<div>
<div>
<a class="btn" href="./login.html" id="login-btn">LOGIN</a>
</div>
<div>
<a class="btn-fill" href="./register.html" id="reg-btn"
>REGISTER</a
>
</div>
</div>
</div>
<hr class="nav-divider" />
</nav>
</header>
<div id="heading"></div>
<div class="mainbg">
<div class="darkBg">
<h1 class="mainTextheading">Search Books</h1>
</div>
</div>
<div class="search">
<form onsubmit="searchBook()">
<input
type="text"
class="searchInput"
id="searchBookInput"
placeholder="Type a Keyword Ex: The Prince "
onkeyup="searchBookOnKeyPress()"
/>
<button class="search-btn" type="submit">SEARCH</button>
</form>
</div>
<div class="searchResaults" id="searchResaults">
<div class="search-your-book">
Check Wheather Your Favourite Book is in Our Library, Type Your Keyword
and NO NEED to PRESS Enter. I will handle it for you :)
</div>
</div>
<!-- footer -->
<footer>
<div class="footer-brand">
<img
src="./images/logo/logo_2.png"
alt="logo"
width="200px"
class="footer-logo"
/>
<div>|</div>
<div class="footer-tagline">
Your personal digital reading companion.
</div>
</div>
<section class="footer-details">
<div class="footer-contact">
<div class="flex">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="icon"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z"
/>
</svg>
(257) 563-7401
</div>
<div class="flex">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="icon"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M8.25 21v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21m0 0h4.5V3.545M12.75 21h7.5V10.75M2.25 21h1.5m18 0h-18M2.25 9l4.5-1.636M18.75 3l-1.5.545m0 6.205l3 1m1.5.5l-1.5-.5M6.75 7.364V3h-3v18m3-13.636l10.5-3.819"
/>
</svg>
<address>Cecilia ChapmanNulla St.Mankato Mississippi</address>
</div>
</div>
<div class="footer-links">
<a href="./index.html">Home Page</a>
<a href="./aboutus.html">About Us</a>
<a href="./login.html">Login </a>
<a href="./register.html">Register </a>
</div>
</section>
<div class="footer-to-top">
<a href="#heading">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-6 h-6"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 19.5v-15m0 0l-6.75 6.75M12 4.5l6.75 6.75"
/>
</svg>
Back to Top</a
>
</div>
</footer>
<script src="./js/navbar.js"></script>
<script src="./js/animationScript.js"></script>
<script src="./js/book.js"></script>
</body>
</html>