-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
218 lines (182 loc) · 9.91 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Connecting people with e-Books and coffee shops.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Books 'n Brew</title>
<link rel="icon" href="img/favicon.png" type="image/x-icon" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Dancing+Script|Merienda+One|Oswald" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<!-- header -->
<header>
<h1 class="title">Books 'n Brew</h1>
<p class="subtitle">Bringing together two things you love- books and coffee.</p>
</header>
<main>
<!-- landing page -->
<div class="container landing-page">
<div class="instructions row">
<div class="col-md-12">
<ol class="list-unstyled">
<!-- user instructions -->
<li class="step-1">
<span class="instruction-merienda">Step 1:</span>
<span class="instruction-helvetica">Find an e-Book to download.</span>
</li>
<li class="step-2">
<span class="instruction-merienda">Step 2:</span>
<span class="instruction-helvetica">Find a coffee shop to read at.</span>
</li>
<li class="step-3">
<span class="instruction-merienda">Step 3:</span>
<span class="instruction-helvetica">Purchase and get directions.</span>
</li>
</ol>
<div id="landing-btn-container">
<button class="btn btn-primary" type="button" id="landingBtn" onclick="goToBooks()" value="go-to-books">let's get started!</button>
</div>
</div>
</div>
</div>
<!-- book search page -->
<div class="container find-book-page hide">
<div class="row">
<div class="col-md-10 book-page-inner-container">
<form class="form-inline" id="book-search-form">
<span id="book-search-tagline">What would you like to read today?</span>
<br />
<div class="form-group">
<input class="form-control" type="text" id="book-input" placeholder="e.g. author, topic, genre" autofocus />
<button class="btn btn-primary" type="submit" id="booksBtn" value="search-for-books">submit</button>
</div>
</form>
<div class="book-results-container">
<span class="hidden-tagline" id="book-select-tagline">select an e-book</span>
<br />
<div class="book-results">
<!-- results from google books API get inserted here -->
</div>
</div>
</div>
</div>
</div>
<!-- coffee shop search page -->
<div class="container find-coffee-shop-page hide-map">
<div class="row">
<div class="container">
<div class="hide">
<!-- wrapped in a hidden div to prevent it from appearing on the page before the map renders -->
<form id="coffee-shop-search">
<input type="text" id="coffee-shop-input" placeholder="e.g. coffee in seattle" />
</form>
</div>
</div>
<div class="col-md-8">
<div class="coffee-shop-results-container">
<span class="coffee-shop-search-tagline-1">Where would you like to read today?</span>
<br />
<span class="coffee-shop-search-tagline-2 hidden-tagline">select a coffee shop</span>
<br />
<div id="map" class="coffee-shop-results">
<!-- google map gets inserted here -->
</div>
</div>
</div>
<div class="col-md-4">
<div class="side-panel-wrap">
<button class="btn btn-primary" type="button" id="coffeeShopBtn" value="go-to-final" disabled>select this coffee shop</button>
<div id="coffee-shop-reviews">
</div>
</div>
</div>
</div>
</div>
<!-- final page -->
<div class="container final-page hide-map">
<div class="row">
<div class="col-md-12">
<div class="selected-results">
<div class="selected-book">
<span class="final-page-book-name">The e-Book you selected is: </span>
<div class="selected-book-name"></div>
<span class="final-page-book-url">You can purchase and download the e-Book here:</span>
<br />
<div class="selected-book-url"></div>
</div>
<div class="selected-coffee-shop">
<span class="final-page-shop-name">The coffee shop you selected is: </span>
<div class="selected-coffee-shop-name"></div>
<span class="final-page-shop-address">At:</span>
<div class="selected-coffee-shop-vicinity"></div>
<br />
<!-- <div class="final-page-guide">
<span>If your location was not detected:</span>
<br />
<span>use the input fields to get directions to the coffee shop you selected.</span>
</div> -->
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="final-page-results-container">
<div class="col-md-6">
<div id="final-map" class="final-page-results">
<!-- google map w/ directions gets inserted here -->
</div>
</div>
<div class="col-md-3" id="text-directions-panel-container">
<div id="text-directions-panel">
<!-- google directions in text form gets inserted here -->
</div>
</div>
<div class="col-md-3" id="address-input-panel-container">
<div class="address-input-panel">
<!-- user inputs their location here, if not auto-detected -->
<!-- <p class="address-instructions">Enter in your address to get directions to the coffee shop you selected.</p> -->
<p class="address-instructions"></p>
<form id="final-form">
<div class="form-group" id="start-container">
<label for="start" id="startLabel">Start</label>
<input class="form-control" type="text" id="start" placeholder="e.g. street, city, state or zip" />
</div>
<div class="form-group">
<label for="travel-mode" id="travelModeLabel">Select your travel mode:</label>
<select class="form-control" id="travel-mode">
<!-- the select options need to be uppercase in order for google API to work properly -->
<option value="1" selected>DRIVING</option>
<option value="2">WALKING</option>
</select>
</div>
<div class="form-group" id="end-container">
<label for="end" id="endLabel">End</label>
<input class="form-control" type="text" id="end" />
<br />
<!-- <button class="btn btn-primary" type="button" id="finalBtn" value="get-directions">submit</button> -->
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
</footer>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBxDHNB-00Dm6piLxF8CBmFyPTXBrkYRis&libraries=places" async></script>
<script src="js/index.js"></script>
<script src="js/bookResults.js"></script>
<script src="js/coffeeShops.js"></script>
<script src="js/final.js"></script>
</body>
</html>