Skip to content

Commit a04cc88

Browse files
committed
update website
1 parent 0323e2d commit a04cc88

2 files changed

Lines changed: 175 additions & 70 deletions

File tree

website/index.html

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -144,32 +144,29 @@ <h2>Which body type excels in a particular discipline?</h2>
144144
</div>
145145

146146
<div class="section" data-anchor="geopolitics">
147-
<div class="slide" data-anchor="geopolitics-map">
148-
<h2>How do geopolitical conflicts affect the Olympic Games?</h2>
149-
<p>Select a year and swipe right for the statistics.</p>
150-
151-
<div class="geo-layout">
152-
<div class="geo-map-column">
153-
<div class="geo-select-row">
154-
<label for="geo-year-select">Year:</label>
155-
<select id="geo-year-select"></select>
156-
</div>
147+
<h2>How do geopolitical conflicts affect the Olympic Games?</h2>
157148

158-
<div id="geopolitics-map-viz"></div>
159-
</div>
149+
<p class="geo-intro">
150+
Click an event to explore its Olympic context. For boycott years, open a participation comparison.
151+
Click on a highlighted country to compare its medal performance across nearby Games.
152+
</p>
160153

161-
<div id="geo-event-list"></div>
162-
</div>
163-
</div>
154+
<div class="geo-layout">
155+
<div class="geo-map-column">
156+
<div id="geopolitics-map-viz"></div>
164157

165-
<div class="slide" data-anchor="geopolitics-graphs">
166-
<h2>How do geopolitical conflicts affect the Olympic Games?</h2>
167-
<p>Statistics around the selected geopolitical event.</p>
158+
<div class="geo-action-area">
159+
<button id="geo-participation-button" class="geo-action-button">
160+
Click to see how this boycott influenced participation
161+
</button>
168162

169-
<div class="geo-stats-grid">
170-
<div id="geo-medals-chart"></div>
171-
<div id="geo-countries-chart"></div>
163+
<p id="geo-country-hint" class="geo-country-hint">
164+
Click on a highlighted country to see how many medals it won around this year.
165+
</p>
166+
</div>
172167
</div>
168+
169+
<div id="geo-event-list"></div>
173170
</div>
174171
</div>
175172

website/styles.css

Lines changed: 157 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ p {
250250
}
251251

252252
.gender-controls button.active {
253-
background: #aeeaf2;
253+
background: #f4b400;
254254
color: black;
255-
border-color: #aeeaf2;
255+
border-color: #f4b400;
256256
}
257257

258258
/* sunbursts */
@@ -305,7 +305,7 @@ p {
305305

306306
#gender-year {
307307
width: 300px;
308-
accent-color: #aeeaf2;
308+
accent-color: #f4b400;
309309
}
310310

311311
#gender-current-year {
@@ -404,55 +404,69 @@ p {
404404
color: #fff;
405405
}
406406

407+
.geo-intro {
408+
max-width: 1100px;
409+
margin: 0 auto 18px;
410+
text-align: center;
411+
font-size: 20px;
412+
line-height: 1.35;
413+
color: rgba(255, 255, 255, 0.88);
414+
}
415+
407416
.geo-layout {
408417
display: grid;
409-
grid-template-columns: 1.35fr 1fr;
410-
gap: 28px;
418+
grid-template-columns: 1.35fr 0.9fr;
419+
gap: 34px;
411420
align-items: start;
412-
margin-top: 18px;
421+
margin-top: 12px;
413422
}
414423

415424
.geo-map-column {
416425
width: 100%;
417426
}
418427

419-
.geo-select-row {
420-
display: flex;
421-
align-items: center;
422-
gap: 14px;
423-
margin-bottom: 14px;
428+
#geopolitics-map-viz {
429+
width: 100%;
424430
}
425431

426-
.geo-select-row label {
427-
color: #fff;
428-
font-size: 22px;
429-
font-weight: 700;
432+
.geo-map-svg,
433+
.geo-bar-svg {
434+
width: 100%;
435+
height: auto;
436+
display: block;
437+
background: transparent;
438+
}
439+
440+
.geo-action-area {
441+
margin-top: 10px;
442+
text-align: center;
430443
}
431444

432-
#geo-year-select {
433-
background: #aeeaf2;
445+
.geo-action-button {
446+
display: none;
447+
background: #ffd166;
434448
color: #111;
435-
border: 3px solid #222;
449+
border: 2px solid white;
436450
border-radius: 12px;
437451
padding: 10px 18px;
438-
font-size: 24px;
439-
font-weight: 700;
452+
font-size: 16px;
453+
font-weight: 800;
440454
cursor: pointer;
441-
min-width: 140px;
442455
}
443456

444-
#geopolitics-map-viz,
445-
#geo-medals-chart,
446-
#geo-countries-chart {
447-
width: 100%;
457+
.geo-action-button.visible {
458+
display: inline-block;
448459
}
449460

450-
.geo-map-svg,
451-
.geo-bar-svg {
452-
width: 100%;
453-
height: auto;
454-
display: block;
455-
background: transparent;
461+
.geo-action-button:hover {
462+
filter: brightness(1.06);
463+
}
464+
465+
.geo-country-hint {
466+
margin: 10px auto 0;
467+
text-align: center;
468+
font-size: 15px;
469+
color: rgba(255, 255, 255, 0.72);
456470
}
457471

458472
#geo-event-list {
@@ -474,7 +488,7 @@ p {
474488

475489
#geo-event-list p,
476490
#geo-event-list li {
477-
color: rgba(255,255,255,0.92);
491+
color: rgba(255, 255, 255, 0.92);
478492
font-size: 16px;
479493
line-height: 1.35;
480494
}
@@ -484,6 +498,10 @@ p {
484498
margin-bottom: 8px;
485499
}
486500

501+
.geo-highlight-event strong {
502+
color: #f4b400;
503+
}
504+
487505
.geo-event-description {
488506
margin-bottom: 12px;
489507
}
@@ -499,40 +517,109 @@ p {
499517

500518
.geo-events-list li {
501519
margin-bottom: 4px;
520+
cursor: pointer;
521+
transition: color 0.15s ease;
522+
}
523+
524+
.geo-events-list li:hover {
525+
color: #ffd166;
502526
}
503527

504528
.geo-events-list li.active {
505-
color: #ff8c7f;
529+
color: #f4b400;
506530
font-weight: 700;
507531
}
508532

509-
.geo-stats-grid {
510-
display: grid;
511-
grid-template-columns: 1fr 1fr;
512-
gap: 28px;
513-
align-items: start;
514-
margin-top: 28px;
533+
.geo-events-list li.active strong,
534+
.geo-events-list li.active span {
535+
color: #f4b400;
515536
}
516537

517538
.geo-tooltip {
518-
position: absolute;
539+
position: fixed;
519540
pointer-events: none;
520-
background: rgba(20, 20, 20, 0.96);
541+
background: rgba(20, 20, 20, 0.98);
521542
color: white;
522-
border: 1px solid rgba(255, 255, 255, 0.18);
543+
border: 1px solid rgba(255, 255, 255, 0.28);
523544
border-radius: 10px;
524545
padding: 10px 12px;
525546
font-size: 14px;
526547
line-height: 1.35;
527-
max-width: 280px;
528-
z-index: 9999;
529-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
548+
max-width: 340px;
549+
z-index: 1000000;
550+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
530551
transition: opacity 0.12s ease;
531552
}
532553

554+
.geo-popup-overlay {
555+
position: fixed;
556+
inset: 0;
557+
z-index: 99999;
558+
background: rgba(0, 0, 0, 0.94);
559+
display: flex;
560+
align-items: center;
561+
justify-content: center;
562+
padding: 34px;
563+
box-sizing: border-box;
564+
}
565+
566+
.geo-popup-box {
567+
width: min(980px, 94vw);
568+
max-height: 88vh;
569+
overflow: auto;
570+
background: #050505;
571+
border: 1px solid rgba(255, 255, 255, 0.22);
572+
border-radius: 18px;
573+
padding: 24px;
574+
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
575+
}
576+
577+
.geo-popup-header {
578+
display: flex;
579+
justify-content: space-between;
580+
align-items: flex-start;
581+
gap: 18px;
582+
margin-bottom: 12px;
583+
}
584+
585+
.geo-popup-title-block {
586+
text-align: left;
587+
}
588+
589+
.geo-popup-title {
590+
color: white;
591+
font-family: Arial, sans-serif;
592+
font-size: 24px;
593+
font-weight: 800;
594+
text-align: left;
595+
}
596+
597+
.geo-popup-note {
598+
margin-top: 6px;
599+
color: #ffd166;
600+
font-family: Arial, sans-serif;
601+
font-size: 14px;
602+
line-height: 1.35;
603+
text-align: left;
604+
}
605+
606+
.geo-popup-close {
607+
background: #ffd166;
608+
color: #111;
609+
border: 2px solid white;
610+
border-radius: 10px;
611+
padding: 8px 14px;
612+
font-size: 15px;
613+
font-weight: 800;
614+
cursor: pointer;
615+
}
616+
617+
.geo-popup-close:hover {
618+
filter: brightness(1.06);
619+
}
620+
533621
@media (max-width: 1100px) {
534-
.geo-layout,
535-
.geo-stats-grid {
622+
.geo-layout {
536623
grid-template-columns: 1fr;
537624
}
538625
}
@@ -563,7 +650,7 @@ p {
563650
}
564651

565652
.medal-controls select {
566-
background: #aeeaf2;
653+
background: #f4b400;
567654
color: #111;
568655
border: 3px solid #222;
569656
border-radius: 12px;
@@ -674,7 +761,7 @@ p {
674761
}
675762

676763
.bodytype-control select {
677-
background: #aeeaf2;
764+
background: #f4b400;
678765
color: #111;
679766
border: 3px solid #333;
680767
border-radius: 12px;
@@ -763,4 +850,25 @@ p {
763850

764851
.team-simple p {
765852
margin: 8px 0;
853+
}
854+
855+
/* =============================================
856+
Fair distribution controls
857+
=========================================== */
858+
859+
#fair-viz select,
860+
.fair-wrapper select,
861+
.fair-control select {
862+
background: #f4b400 !important;
863+
color: #111 !important;
864+
border: 3px solid #222 !important;
865+
border-radius: 12px !important;
866+
font-weight: 700 !important;
867+
cursor: pointer !important;
868+
}
869+
870+
#fair-viz select:focus,
871+
.fair-wrapper select:focus,
872+
.fair-control select:focus {
873+
outline: 2px solid white !important;
766874
}

0 commit comments

Comments
 (0)