Skip to content

Commit 9ccbf24

Browse files
committed
add titles
1 parent aca9129 commit 9ccbf24

3 files changed

Lines changed: 63 additions & 3 deletions

File tree

website/index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ <h2>Which body type excels in a particular discipline?</h2>
208208
</div>
209209
<div class="slide" data-anchor="body-types-viz">
210210
<div id="bodytype-viz">
211+
<h2 class="bodytype-viz-title">Olympic body types by discipline</h2>
211212
<div class="bodytype-controls">
212213
<div class="bodytype-control">
213214
<label for="bodytype-season">Season:</label>
@@ -264,10 +265,13 @@ <h2>How do geopolitical conflicts affect the Olympic Games?</h2>
264265
</div>
265266
</div>
266267
<div class="slide" data-anchor="geopolitics-viz">
267-
<p class="geo-intro">
268+
<h2 class="geo-viz-title">Geopolitical disruptions in the Olympic Games</h2>
269+
<p class="geo-viz-subtitle">
268270
Click on a year in the timeline to explore its Olympic context. For boycott years, open a participation comparison.
269271
</p>
270272

273+
<p class="geo-intro">
274+
271275
<div class="geo-layout">
272276
<div class="geo-map-column">
273277
<div id="geopolitics-map-viz"></div>
@@ -315,9 +319,18 @@ <h2>What would a fair distribution of Olympic medals look like?</h2>
315319
</div>
316320
</div>
317321
<div class="slide" data-anchor="fair-viz">
322+
<h2 class="fair-viz-title">Actual medals vs. fair medals</h2>
323+
<p class="fair-viz-subtitle">
324+
Compare two countries and see how medal counts change when population and GDP are taken into account.
325+
</p>
326+
318327
<div id="fair-viz"></div>
319328
</div>
320329
<div class="slide" data-anchor="fair-ranking">
330+
<h2 class="fair-viz-title">Fair ranking of countries</h2>
331+
<p class="fair-viz-subtitle">
332+
See how countries rank when medal counts are adjusted for population and GDP.
333+
</p>
321334
<div id="fair-ranking-viz"></div>
322335
</div>
323336
</div>

website/js/geopolitics-conflicts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
if (boycottYears.has(selected.year)) {
362362
button
363363
.classed("visible", true)
364-
.text("Click to see how this boycott influenced participation")
364+
.text("Click here to see how this boycott influenced participation")
365365
.on("click", () => {
366366
const participationData = addNeighborValues(
367367
computeParticipationAroundYear(selected.year, 16)

website/styles.css

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,11 +788,31 @@ p {
788788

789789
.geo-hover-text {
790790
margin: 0 0 4px;
791+
font-size: 18px;
791792
}
792793

793794
.geo-country-hint {
794795
margin: 4px 0 0;
795-
font-size: 24px;
796+
font-size: 18px;
797+
}
798+
799+
.geo-viz-title {
800+
font-family: "Elms Sans", sans-serif;
801+
font-size: 28px;
802+
font-weight: 700;
803+
width: 100%;
804+
padding-bottom: 6px;
805+
margin: 0 auto;
806+
}
807+
808+
.geo-viz-subtitle {
809+
font-family: "Elms Sans", sans-serif;
810+
width: 75%;
811+
margin: 0 auto 10px;
812+
text-align: center;
813+
font-size: 16px;
814+
line-height: 1.25;
815+
color: rgba(255,255,255,0.75);
796816
}
797817

798818
/* =============================================
@@ -1039,6 +1059,14 @@ p {
10391059
}
10401060
}
10411061

1062+
.bodytype-viz-title {
1063+
font-family: "Elms Sans", sans-serif;
1064+
font-size: 28px;
1065+
font-weight: 700;
1066+
width: 100%;
1067+
padding-bottom: 6px;
1068+
margin: 0 auto;
1069+
}
10421070

10431071
/* =============================================
10441072
Fair distribution controls
@@ -1285,6 +1313,25 @@ p {
12851313
max-width: 360px;
12861314
}
12871315

1316+
.fair-viz-title {
1317+
font-family: "Elms Sans", sans-serif;
1318+
font-size: 28px;
1319+
font-weight: 700;
1320+
width: 100%;
1321+
padding-bottom: 6px;
1322+
margin: 0 auto;
1323+
}
1324+
1325+
.fair-viz-subtitle {
1326+
font-family: "Elms Sans", sans-serif;
1327+
width: 75%;
1328+
margin: 0 auto 14px;
1329+
text-align: center;
1330+
font-size: 16px;
1331+
line-height: 1.25;
1332+
color: rgba(255,255,255,0.75);
1333+
}
1334+
12881335
/* =============================================
12891336
Footer
12901337
=========================================== */

0 commit comments

Comments
 (0)