Skip to content

Commit 85cf288

Browse files
committed
fix: normalise title maj & correct hover label of footer
1 parent 4c9bd2e commit 85cf288

6 files changed

Lines changed: 34 additions & 15 deletions

File tree

website/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h2>How has gender representation evolved across Olympic sports and disciplines
9090
</div>
9191
<div class="slide" data-anchor="gender-container">
9292
<div id="gender-viz">
93-
<h3>Gender representation in Olympic sports</h2>
93+
<h3>Gender Representation in Olympic Sports</h2>
9494
<h4>
9595
Hover over the disciplines to explore how men’s and women’s participation differs across sports and disciplines.
9696
</h4>
@@ -142,7 +142,7 @@ <h2>Which delegations tend to win medals, and which don't?</h2>
142142

143143
<div class="slide" data-anchor="medal-flow">
144144
<div id="medal-viz">
145-
<h3 class="medal-viz-title">Distribution of medals in Summer Olympics</h3>
145+
<h3 class="medal-viz-title">Distribution of Medals in Winter Olympics</h3>
146146

147147
<div class="medal-controls">
148148
<div>
@@ -175,7 +175,7 @@ <h4 class="medal-viz-subtitle"></h4>
175175
</div>
176176

177177
<div class="slide" data-anchor="never-medaled">
178-
<h3 class="never-medaled-viz-title">Countries that have participated without ever winning a medal</h3>
178+
<h3 class="never-medaled-viz-title">Countries That Have Participated Without Ever Winning a Medal</h3>
179179

180180
<div id="never-medaled-viz"></div>
181181

@@ -214,7 +214,7 @@ <h2>Which body type excels in a particular discipline?</h2>
214214
</div>
215215
<div class="slide" data-anchor="body-types-viz">
216216
<div id="bodytype-viz">
217-
<h2 class="bodytype-viz-title">Olympic body types by discipline</h2>
217+
<h2 class="bodytype-viz-title">Olympic Body Types by Discipline</h2>
218218
<div class="bodytype-controls">
219219
<div class="bodytype-control">
220220
<label for="bodytype-season">Season:</label>
@@ -271,7 +271,7 @@ <h2>How do geopolitical conflicts affect the Olympic Games?</h2>
271271
</div>
272272
</div>
273273
<div class="slide" data-anchor="geopolitics-viz">
274-
<h2 class="geo-viz-title">Geopolitical disruptions in the Olympic Games</h2>
274+
<h2 class="geo-viz-title">Geopolitical Disruptions in the Olympic Games</h2>
275275
<p class="geo-viz-subtitle">
276276
Click on a year in the timeline to explore its Olympic context. For boycott years, open a participation comparison.
277277
</p>
@@ -325,15 +325,15 @@ <h2>What would a fair distribution of Olympic medals look like?</h2>
325325
</div>
326326
</div>
327327
<div class="slide" data-anchor="fair-viz">
328-
<h2 class="fair-viz-title">Fair comparison of countries</h2>
328+
<h2 class="fair-viz-title">Fair Comparison of Countries</h2>
329329
<p class="fair-viz-subtitle">
330330
Compare two countries and see how medal counts change when population and GDP are taken into account.
331331
</p>
332332

333333
<div id="fair-viz"></div>
334334
</div>
335335
<div class="slide" data-anchor="fair-ranking">
336-
<h2 class="fair-viz-title">Fair ranking of countries</h2>
336+
<h2 class="fair-viz-title">Fair Ranking of Countries</h2>
337337
<p class="fair-viz-subtitle">
338338
See how countries rank when medal counts are adjusted for population and GDP.
339339
</p>
@@ -342,7 +342,7 @@ <h2 class="fair-viz-title">Fair ranking of countries</h2>
342342
</div>
343343

344344
<div class="section" data-anchor="conclusion">
345-
<h2>Finish line</h2>
345+
<h2>Finish Line</h2>
346346

347347
<div class="text-columns">
348348
<div class="text-column">

website/js/delegations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@
836836
.attr("class", "medal-sankey-svg");
837837

838838
d3.select(selectors.root).select(".medal-viz-title").text(
839-
`Distribution of medals in ${graph.season} Olympics`
839+
`Distribution of Medals in ${graph.season} Olympics`
840840
);
841841

842842
d3.select(selectors.root).select(".medal-viz-subtitle").text(

website/js/fair-distribution.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,8 @@
812812
</div>
813813
814814
<div class="fair-ranking-layout">
815-
${rankingTable("Actual medal ranking", actualRanking, "actual")}
816-
${rankingTable("Fair medal ranking", fairRanking, "fair")}
815+
${rankingTable("Actual Medal Ranking", actualRanking, "actual")}
816+
${rankingTable("Fair Medal Ranking", fairRanking, "fair")}
817817
</div>
818818
`);
819819

website/js/never-medaled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@
676676
const path = d3.geoPath().projection(projection);
677677

678678
d3.select(".never-medaled-viz-title").text(
679-
`Countries that have participated without ever winning a medal`
679+
`Countries That Have Participated Without Ever Winning a Medal`
680680
);
681681

682682
const byCountry = new Map(

website/js/race-navigation.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,12 @@
6767
</div>
6868
6969
<span class="race-anchor-label">FINISH</span>
70-
<button class="race-finish-btn" type="button" title="Go to Finish">
71-
${waterBottleSvg()}
72-
</button>
70+
<div class="race-finish-wrap">
71+
<button class="race-finish-btn" type="button">
72+
${waterBottleSvg()}
73+
</button>
74+
<span class="race-label">Cool Down</span>
75+
</div>
7376
</div>
7477
`;
7578

website/styles.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,22 @@ h4 {
15061506
transform: scale(1.08);
15071507
}
15081508

1509+
.race-finish-wrap {
1510+
position: relative;
1511+
display: flex;
1512+
justify-content: center;
1513+
}
1514+
1515+
.race-finish-wrap .race-label {
1516+
top: 50%;
1517+
transform: translateY(-50%);
1518+
}
1519+
1520+
.race-finish-wrap:hover .race-label {
1521+
opacity: 1;
1522+
transform: translateY(-50%) translateX(4px);
1523+
}
1524+
15091525
.race-track {
15101526
position: relative;
15111527
width: 100%;

0 commit comments

Comments
 (0)