Skip to content

Commit aadbdae

Browse files
committed
Added text boxes
1 parent 6b223d9 commit aadbdae

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ <h1 id="title">Car Dependency Index</h1>
2828
</div>
2929
<div id="cityList" class="cities"></div>
3030
<div class="muted" style="margin-top:.75rem">Click a city name or a map pin to open its layers.</div>
31+
<div id="info-landing" class="info-box">
32+
<b>What you’re seeing</b><br>
33+
Check out how car-dependent is one city by clicking on it.<br>
34+
The CDI quantifies the accessibility gap between car travel and public transport.
35+
</div>
3136
</div>
3237
<div id="mapLanding"></div>
3338
</div>
@@ -39,6 +44,11 @@ <h1 id="title">Car Dependency Index</h1>
3944
<div id="cityBreadcrumb" class="muted"></div>
4045
</div>
4146
<div id="map"></div>
47+
<div id="info-city" class="info-box">
48+
<b>City view</b><br>
49+
Hexagons are colored by CDI (Car Dependency Index), ranging from -1 (blue, car-free) to 1 (red, car-dependent).
50+
Hover a hexagon to see its CDI value.
51+
</div>
4252
</div>
4353
</div>
4454

style.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,15 @@ header .repo { margin-left:auto }
6666
font-size: 0.8rem;
6767
color: #475569;
6868
}
69-
69+
.info-box{
70+
margin: .75rem 0;
71+
padding: .65rem .75rem;
72+
background: #f8fafc;
73+
border: 1px solid #e2e8f0;
74+
border-radius: .6rem;
75+
color: #0f172a;
76+
font-size: .9rem;
77+
}
7078
#homeLink {
7179
display: flex;
7280
align-items: center;

0 commit comments

Comments
 (0)