Skip to content

Commit b6c3d19

Browse files
committed
fix: change water bottle colour to be consistent & correct stickman movements to it
1 parent bb2e1db commit b6c3d19

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

website/js/race-navigation.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,23 @@
9797

9898
function applyFooterRunner() {
9999
nav.classList.add("race-is-footer");
100+
nav.style.setProperty("--race-progress", "100%");
100101
if (runner) {
101102
runner.style.top = "calc(100% + 60px)";
103+
runner.style.setProperty("--runner-x", config.mainRunnerX);
102104
}
105+
updateCheckpoints(state.sections.length - 1, 0);
103106
}
104107

105108
function restoreRunner() {
106109
nav.classList.remove("race-is-footer");
107110
if (runner) {
108111
const progress = getProgressPercent(state.currentSectionIndex);
112+
const lineProgress = state.currentSectionIndex === 0 ? 0 : progress;
113+
nav.style.setProperty("--race-progress", `${lineProgress}%`);
109114
runner.style.top = `${progress}%`;
110115
}
116+
updateCheckpoints(state.currentSectionIndex, state.currentSlideIndex);
111117
}
112118

113119
const observer = new MutationObserver(() => {

website/styles.css

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,16 +1455,17 @@ h4 {
14551455
}
14561456

14571457
/* FINISH: golden by default, white when active */
1458-
#race-nav:not(.race-is-finish) .race-finish-btn {
1458+
#race-nav:not(.race-is-footer) .race-finish-btn {
14591459
color: #f4b400;
14601460
filter: drop-shadow(0 0 6px rgba(244, 180, 0, 0.5));
14611461
}
14621462

1463-
#race-nav.race-is-finish .race-finish-btn {
1463+
#race-nav.race-is-footer .race-finish-btn {
14641464
color: white;
14651465
filter:
1466-
drop-shadow(0 0 8px rgba(255, 255, 255, 0.6))
1467-
drop-shadow(0 0 14px rgba(244, 180, 0, 0.35));
1466+
drop-shadow(0 0 6px rgba(255, 255, 255, 1))
1467+
drop-shadow(0 0 14px rgba(255, 255, 255, 0.85))
1468+
drop-shadow(0 0 28px rgba(244, 180, 0, 0.6));
14681469
}
14691470

14701471
.race-start-btn:hover,
@@ -1575,6 +1576,12 @@ h4 {
15751576
0 0 18px rgba(255, 255, 255, 0.85);
15761577
}
15771578

1579+
#race-nav.race-is-footer .race-checkpoint.is-active .race-dot {
1580+
background: #f4b400;
1581+
border-color: #f4b400;
1582+
box-shadow: none;
1583+
}
1584+
15781585
/* =============================================
15791586
Side path for sections with horizontal slides
15801587
=========================================== */

0 commit comments

Comments
 (0)