-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
126 lines (108 loc) · 4.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>California Water Challenge</title>
<link href="https://api.mapbox.com/mapbox-assembly/v0.22.0/assembly.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.js"></script>
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.css" rel="stylesheet" />
<script src="https://d3js.org/d3.v5.min.js"></script>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin:0;
padding:0;
font-family: "Noto Sans", sans-serif;
}
#map {
position:absolute;
top:0;
bottom:0;
width:100%;
}
#text {
position: absolute;
top: 0;
left: 0;
width: 30%;
height: 100%;
padding: 15px;
background-color: rgba(69, 87, 96, 0.72);
color: white;
}
#img {
position: absolute;
z-index: 3;
right: 0;
top: 0;
background-color: rgba(255, 255, 255, 0.33);
}
#dashboard {
height: 200px;
text-align: center;
}
.logo {
height: 100px;
width: auto;
}
.center {
text-align: center;
}
.circle {
height: 12px;
width: 12px;
border: 1px solid rgb(69, 69, 69);
border-radius: 50%;
}
.circle-blue {
background-color: #C8D2D3;
}
.circle-yellow {
background-color: #f2d434;
}
.circle-orange {
background-color: #eb980b;
}
.circle-red {
background-color: #eb470b;
}
.icon-credit {
position: absolute;
right: 280px;
bottom: 5px;
font-size: 9px;
line-height: 10px;
}
.credit {
font-size: 12px;
margin-bottom: 12px;
}
</style>
</head>
<body class="prose">
<div id="map"></div>
<div id="img">
<a target="_blank" href="https://calpirg.org/resources/caf/get-lead-out-back-school-toolkit"><img class="logo" src="img/image.png" alt="logo for Get The Lead Out"></a>
</div>
<div class="icon-credit">Icons made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
<div id="text" class="scroll-auto">
<h4>Lead Levels in San Francisco Schools</h4>
<p>San Francisco Unified School District <a target="_blank" href="https://sfwater.org/modules/showdocument.aspx?documentid=11554" class="color-blue-faint">tested</a> the school's drinking water for lead last year.
This map shows the highest lead levels detected at each school based on multiple sample sites and dates.</p>
<p>There is no safe level of lead, especially for children. Even small amounts can lower IQ. Damage from lead exposure is irreversible. Take action with CALPIRG's <a target="_blank" href="https://calpirg.org/resources/caf/get-lead-out-back-school-toolkit" class="color-blue-faint">"Get The Lead Out:Back to School Toolkit."</a></p>
<div class="credit">
<span class="block">Data wrangling: <a target="_blank" href="https://github.com/thesadie" class="color-blue-faint">Sadie Gill</a> @ Flowwest.</span>
<span class="block">Mapping, front-end, data viz: <a target="_blank"href="https://lobenichou.com" class="color-blue-faint">Lo Bénichou </a>@ Mapbox.</span>
</div>
<span class="block"><div class="inline-block circle circle-blue"></div> Lead content < 1 ppb</span>
<span class="block"><span class="inline-block circle circle-yellow"></span> Lead content between 1 and 5 ppb</span>
<span class="block"><span class="inline-block circle circle-orange"></span> Lead content between 5 and 15 ppb</span>
<span class="block"><span class="inline-block circle circle-red"></span> Lead content > 15 ppb</span>
<div id="key" class="py12"></div>
<div id="dashboard">
</div>
</div>
<script src="app.js"></script>
</body>
</html>