-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
174 lines (169 loc) · 6.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height">
<title>Brew Hikers</title>
<link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="grid.css">
<link rel="stylesheet" type="text/css" href="main.css">
<script>
FontAwesomeConfig = { searchPseudoElements: true };
</script>
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
</head>
<body>
<main role="main">
<div class="center">
<section class="js-location-view">
<header role = "banner" class="top-banner">
<div class="top-banner-grey">
<div class="logo">Brew Hikers</div>
<div class="select-form-container">
<div class="select-form">
<h1>Plan your hiking and beer tasting road trip today.</h1>
<div class="form-styles">
<form role="form">
<fieldset>
<legend class="help-text" id="search_label">Type in a starting location:</legend>
<div class="align-container">
<div class="align-this">
<input type="text" name="search" class="search" id="search" placeholder="Example: Boston" aria-labelledby="search_label" required>
</div>
<div class="align-this">
<button type="submit" class="choose-loc-button js-pick-location-button" id="js-pick-loc-button">Go!</button></div>
</div>
<p class="error-messsage hide">Lost? Please enter a location like a town, city or a park to search for hikes.</p>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</header>
<section class="js-featured-hikes">
<div class="choose-hike-view">
<div class="row">
<div class="col-12">
<h2>Featured Locations to Brew Hike</h2>
</div>
<div class="col-6">
<ul>
<li><a href="#" class="feature-link">Charlottesville, VA</a></li>
<li><a href="#" class="feature-link">White Mountains, NH</a></li>
<li><a href="#" class="feature-link">Shenandoah National Park</a></li>
<li><a href="#" class="feature-link">Portland, OR</a></li>
<li><a href="#" class="feature-link">Austin, TX</a></li>
</ul>
</div>
<div class="col-6">
<ul>
<li><a href="#" class="feature-link">Flagstaff, AZ</a></li>
<li><a href="#" class="feature-link">Bend, OR</a></li>
<li><a href="#" class="feature-link">Fort Collins, CO</a></li>
<li><a href="#" class="feature-link">Asheville, NC</a></li>
<li><a href="#" class="feature-link">Johnson City, TN</a></li>
</ul>
</div>
</div>
</div>
</section>
</section>
<section class="js-hike-view hide" aria-live="assertive" hidden>
<section>
<div class="row-full-width-background">
<div class="js-progress-section progress-row row" aria-live="polite">
</div>
</div>
<div class="row">
<div class="col-12">
<form>
<fieldset>
<legend class="js-pick-hike-directions legend-hikes">Pick a hike:</legend>
<ul id="js-hike-list" aria-live="assertive">
<li><img src="https://cdn-files.apstatic.com/hike/7041455_small_1512517042.jpg" alt="Jeremys Run Loop">
<p class="hike-name">Neighbor Mountain - Jeremys Run Loop</p><button class="small-right">Select</button>
<p class="hike-summary">A moderately strenuous loop above and through the canyon of Jeremys Run.</p>
<p class="hike-info">Distance: 8.8 miles Difficulty: Moderate Rating: 5/5</p>
</li>
<li><p class="hike-name">Neighbor Mountain - Jeremys Run Loop</p>
<p class="hike-summary">A moderately strenuous loop above and through the canyon of Jeremys Run.</p>
<button>Select</button></li>
</ul>
</fieldset>
</form>
</div>
</div>
</section>
</section>
<section id='js-pick-brew-section' class='js-brewery-view hide' aria-live="assertive" hidden>
<div class="row-full-width-background">
<div class="js-progress-section progress-row row" aria-live="polite">
</div>
</div>
<div class="row">
<h1 class="js-pick-breweries legend-hikes">Pick 1 or more breweries:</h1>
</div>
<div class="row add-some-padding" id="js-brewery-list" >
<img src="http://badgerheadgames.com/wp-content/uploads/2018/02/beer-2370783_1920-e1519612752761-1.jpg" alt="Loading Breweries">
<p class="brewery-name">Finding some breweries near your hike</p>
<p class="brewery-summary">Just a few seconds...</p>
</div>
</section>
<section id="show-map" class='hide' aria-live="assertive" hidden>
<section>
<div class="row-full-width-background">
<div class="js-progress-section progress-row row" aria-live="polite">
</div>
</div>
<div class="row">
<div class="col-6">
<h2>Your Trip Map</h2>
<div class="map-container">
<div id="final-map" ></div>
</div>
<div class="directions-button-container">
<button class="js-directions-button directions-button">Click for directions</button>
</div>
<div id="directions-panel" aria-live="assertive">
</div>
</div>
<div class="col-6">
<h2>Hike and Breweries to Visit</h2>
<ul class="map-intinerary trip-plan">
</ul>
</div>
</div>
</section>
</section>
<section class="js-green-go-button">
<div class="generate-trip hide" aria-live="polite">
<div class="row">
<div class="col-6m trip-summary"></div>
<div class="col-6m ">
<button class="generate-trip-button"><span class="fa-lg hide-on-mobile"><i class="far fa-compass fa-spin"></i></span> Map your trip!</button>
</div>
</div>
</div>
</section>
<section>
<div class = "modal hide" aria-live="assertive" hidden>
<div class = "modal-content">
<p class="modal-text">Loading potential hike choices...</p>
<div class="compass">
<span class="fa-5x"><i class="far fa-compass fa-spin"></i></span>
</div>
<div id="modal-button-container" class="hide">
<button class="brew-button modal-button ">Okay</button>
</div>
</div>
</div>
</section>
</div>
</main>
<!---Script needed to set up Google Maps/Places API-->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQYbpeVxvc5FeK2hbOUjCOv9J8coUz180&libraries=places"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="index.js"></script>
</body>
</html>