-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (107 loc) · 5.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<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>Book Buddy</title>
<link rel="shortcut icon" type="image/jpg"
href="./assets/transparent-books-icon-book-icon-back-to-school-icon-5f7af3a0674d92.1799403916018932804231.jpg">
<!-- bulma -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
<!-- our css -->
<link rel="stylesheet" href="./assets/css/styles.css">
</head>
<body>
<!-- header -->
<header class="has-background-warning hero is-small has-text-centered is-info">
<div class="hero-body">
<h1 class="is-size-2 has-text-grey-darker title">
Book Buddy
</h1>
</div>
</header>
<!-- section -->
<section class="container has-text-grey-darker mt-3 subtitle">
<p class="is-size-4 title">
Welcome to your next reading adventure!
</p>
<p class="subtitle">
Use this handy search engine to find your next book. To begin, select your desired genre from the dropdown
menu, then filter your results
by page number
</p>
</section>
<!-- main -->
<main class="container">
<div id="genreBox" class="is-ancestor tile">
<div id="genreSearches" class="is-4 is-parent is-vertical tile">
<!-- genre dropdown, left -->
<div class="box field has-addons is-child tile">
<div class="control is-expanded">
<div class="select is-fullwidth">
<select name="genres" id="genres" class="is-hovered">
<option value="" disabled selected>Select Genre</option>
<option value="biography">Biography</option>
<option value="childrens-literature">Children's Literature</option>
<option value="classic-literature">Classic Literature</option>
<option value="fantasy">Fantasy</option>
<option value="historical-fiction">Historical Fiction</option>
<option value="horror">Horror</option>
<option value="mystery">Mystery</option>
<option value="poetry">Poetry</option>
<option value="science-fiction">Science Fiction</option>
</select>
</div>
</div>
<div class="control">
<button type="submit" class="button is-primary" id="genreBtn">Go!</button>
</div>
</div>
</div>
<!-- results section, right -->
<!-- results filter: page number -->
<div class="box is-parent is-vertical tile">
<div id="pageNumberFilter" class="is-child field has-addons tile is-hidden">
<div class="control">
<div class="select">
<select name="filter" id="filter">
<option disabled selected>Filter Results</option>
<option data-value="100" data-compare="under">under 100 pages</option>
<option data-value="200" data-compare="under">under 200 pages </option>
<option data-value="300" data-compare="under">under 300 pages</option>
<option data-value="400" data-compare="under">under 400 pages</option>
<option data-value="500" data-compare="under">under 500 pages</option>
<option data-value="500" data-compare="over">over 500 pages</option>
</select>
</div>
</div>
</div>
<!-- display results -->
<div class="is-child tile">
<!-- search results -->
<h3 class="subtitle">Your Search Results:</h3>
<div id="results"></div>
<div id="pages"></div>
<!-- pagination -->
<nav class="is-rounded pagination" role="navigation" aria-label="pagination">
<a id="previous" data-type="previous" class="pagination-previous is-hidden"
title="This is the first page">Previous</a>
<a id="next" data-type="next" class="pagination-next is-hidden">Next page</a>
</nav>
</div>
</div>
</div>
</main>
<!-- footer -->
<footer class="footer has-background-warning-light mt-6">
<div class="content has-text-centered">
<p class="has-text-grey-darker">
<strong>Book Finder</strong> made with ❤️ by Brett Gould, Heather Stevens, and Sarah Williams
</p>
</div>
</footer>
<script src="./assets/js/script.js"></script>
</body>
</html>