-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
127 lines (111 loc) · 3.6 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
<!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">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css"
integrity="sha384-Uu6IeWbM+gzNVXJcM9XV3SohHtmWE+3VGi496jvgX1jyvDTXfdK+rfZc8C1Aehk5" crossorigin="anonymous">
<script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Pints & Pixels</title>
</head>
<body>
<nav class="top-bar topbar-responsive">
<div class="top-bar-title">
<a class="topbar-responsive-logo"><strong>🍺 Pints n Pixels</strong>
</div>
<div id="topbar-responsive" class="topbar-responsive-links">
<div class="top-bar-right">
<ul class="menu simple vertical medium-horizontal">
<li><a href="index.html">Home</a></li>
<li><a href="About.html">About</a></li>
</ul>
</div>
</div>
</nav>
<main>
<aside>
<h2>Find a Brewery</h2>
<form class="pure-form">
<input type="text" class="pure-input-rounded" id="city-name">
<button id="fetch-button" type="button" class="pure-button">Search</button>
</form>
<div id="container">
</div>
</aside>
<section class = "brew-cont">
<div class="breweries-container">
<h2>Select Your Brews</h2>
<div class="brewery-deck">
</div>
</div>
</section>
<section class= "saved-brews">
<h2>Ready for Another?</h2>
<p id = "beer">list brews here</p>
<div class="saved-brewery"></div>
</section>
</main>
<!-- <section class = "blank-block">this is a filler block</section> -->
<section id = "map">
<div id='map' style='width: 800px; height: 400px;'></div></section>
<footer>
<p class="copyright">copyright and other info</p>
<ul class="list-no-bullets">
<li><a href="#">Saved Places</a></li>
<li><a href="#">Make it Yourself</a></li>
<li><a href="#">About</a></li>
</ul>
</footer>
<!-- <div id='map' style='width: 800px; height: 600px;'> -->
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoibWFwb25vIiwiYSI6ImNrcmkzeWg5MTRwOXoydnBkcWQyYXAweWMifQ.4vX11iAWvCYoQntike98uw';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapono/ckrwwf96t03hc18oajnsf79gl',
center: [-96, 37.8],
zoom: 5
});
// code from the next step will go here!
// var geojson = {
// type: 'FeatureCollection',
// features: [{
// type: 'Feature',
// geometry: {
// type: 'Point',
// coordinates: [-77.032, 38.913]
// },
// properties: {
// title: 'Mapbox',
// description: 'Washington, D.C.'
// }
// },
// {
// type: 'Feature',
// geometry: {
// type: 'Point',
// coordinates: [-122.414, 37.776]
// },
// properties: {
// title: 'Mapbox',
// description: 'San Francisco, California'
// }
// }]
// };
// add markers to map
//geojson.features.forEach(function(marker) {
// create a HTML element for each feature
// var el = document.createElement('div');
// el.className = 'marker';
// // make a marker for each feature and add to the map
// new mapboxgl.Marker(el)
// .setLngLat(marker.geometry.coordinates)
// .addTo(map);
//});
</script>
<script src="https://use.fontawesome.com/b3b887fd45.js"></script>
<script src="script.js"></script>
</body>
</html>