-
Notifications
You must be signed in to change notification settings - Fork 146
/
index.html
159 lines (147 loc) · 5.73 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Find the book you want to read next!" />
<title>Book Finder</title>
<link rel="shortcut icon" href="img/book.png" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous" />
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
</head>
<body class="bg">
<script>
const localTheme = localStorage?.getItem("theme");
if (localTheme === "dark") {
document.body.classList.add("dark-theme");
whitecolor();
} else {
document.body.classList.remove("dark-theme");
blackcolor();
}
</script>
<div class="preloader">
<div class="dots-container">
<div></div>
<div></div>
<div></div>
</div>
<div class="preloader-text">
Loading...
</div>
</div>
<nav id="nav">
<div class="container-fluid align-items-center">
<img id="logo" src="./img/book.png" alt="logo">
<a class="navbar-brand" href="index.html">
<span class="text">Book</span><span class="find">Finder</span>
</a>
<div class="mode d-flex align-items-center">
<ul class="nav-menu">
<li class="nav-item">
<a class="nav-link" href="index.html"> <span class="find">Home</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html"> <span class="find">About</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="features.html"> <span class="find">Features</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="contributors.html"> <span class="find">Contributors</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html"> <span class="find">Contact</span></a>
</li>
</ul>
<img class="dark-mode" id="icon" src="img/moon.png" alt="Toggle Dark Mode" />
<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</div>
</div>
</nav>
<header class="header" id="header">
<img src="img/Man-Reading-a-Book-Vector-Illustration.svg" alt="Man Reading a Book" class="illustration" />
<h1 class="title">
Book
<p class="finder">Finder</p>
</h1>
</header>
<div class="search" id="search-bar">
<form class="search-form">
<div class="p-1 rounded rounded-pill shadow-sm mb-5">
<div class="input-group">
<input type="search" id="input" placeholder="Find the book you want to read next!"
aria-describedby="button-addon1" class="form-control border-0 " />
<div class="input-group-append">
<button id="button-addon1" type="submit" class="btn btn-link text-primary" aria-label="Search">
<i class="fa fa-search"></i>
</button>
</div>
</div>
</div>
</form>
</div>
<div class="whirly-loader" style="display: none;"></div>
<div id="results" class="results container"></div>
<a href="#" id="return-to-top" class="scroll-container">
<i class="fa fa-arrow-up"></i>
</a>
<div id="pagination-wrapper" class="pagination-wrapper hidden">
<svg class="dots btn--prev" onclick="prevPage()" id="prev-btn" height="96" viewBox="0 0 24 24" width="96"
xmlns="http://www.w3.org/2000/svg">
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z" />
<path d="M0-.5h24v24H0z" fill="none" />
</svg>
<div class="pagination-container">
<div class="little-dot little-dot--first"></div>
<div class="little-dot">
<div class="big-dot-container">
<div class="big-dot"></div>
</div>
</div>
<div class="little-dot little-dot--last"></div>
</div>
<svg class="dots btn--next" onclick="nextPage()" id="next-btn" height="96" viewBox="0 0 24 24" width="96"
xmlns="http://www.w3.org/2000/svg">
<path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" />
<path d="M0-.25h24v24H0z" fill="none" />
</svg>
</div>
<footer class="foot">
<div>
Made with ❤️ by <a href="https://github.com/wasimreja">Wasim Reja</a>
</div>
<div class="icons">
<a class="twitter" href="https://twitter.com/_wasimreja" target="_blank">
<i class="fa fa-twitter"></i>
</a>
<a class="linkedin" href="https://www.linkedin.com/in/wasimreja" target="_blank">
<i class="fa fa-linkedin"></i>
</a>
<a class="instagram" href="https://www.instagram.com/_wasimreja" target="_blank">
<i class="fa fa-instagram"></i>
</a>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
offset: 200,
duration: 1000
});
</script>
<script src="./js/main.js"></script>
<script src="./js/pagination.js"></script>
<script src="./js/preloader.js"></script>
</body>
</html>