Skip to content

Commit 23133de

Browse files
authored
Website Update
1 parent 6e326e6 commit 23133de

3 files changed

Lines changed: 27 additions & 22 deletions

File tree

docs/assets/css/style.css

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ a {
254254
white-space: nowrap;
255255
color: var(--accent-script-color);
256256
-webkit-text-fill-color: var(--accent-script-color);
257-
-webkit-text-stroke: 0.36px var(--accent-script-color);
257+
-webkit-text-stroke: 0.48px var(--accent-script-color);
258258
top: var(--script-visual-shift-y);
259259
overflow: visible;
260260
vertical-align: baseline;
@@ -1434,6 +1434,12 @@ a {
14341434
min-height: calc(var(--discipline-card-height) + 6.2rem);
14351435
overflow: visible;
14361436
touch-action: pan-y;
1437+
isolation: isolate;
1438+
}
1439+
1440+
.discipline-stack-viewport:not([data-stack-ready="true"]) .discipline-stack-card {
1441+
opacity: 0 !important;
1442+
transition: none !important;
14371443
}
14381444

14391445
.discipline-stack-card,
@@ -1458,9 +1464,7 @@ a {
14581464
transition:
14591465
transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
14601466
opacity 420ms ease,
1461-
filter 680ms cubic-bezier(0.22, 1, 0.36, 1),
14621467
box-shadow 420ms ease;
1463-
will-change: transform, opacity, filter;
14641468
}
14651469

14661470
.discipline-stack-card.is-active {
@@ -1644,36 +1648,31 @@ a {
16441648
.discipline-stack-card[data-stack-pos="0"] {
16451649
z-index: 5;
16461650
opacity: 1;
1647-
filter: none;
1648-
transform: translate3d(-50%, 0, 0) scale(1) rotate(-0.8deg);
1651+
transform: translate(-50%, 0) scale(1) rotate(-0.8deg);
16491652
}
16501653

16511654
.discipline-stack-card[data-stack-pos="1"] {
16521655
z-index: 4;
16531656
opacity: 0.94;
1654-
filter: saturate(0.92) brightness(0.94);
1655-
transform: translate3d(calc(-50% + 10%), 9%, 0) scale(0.95) rotate(2.6deg);
1657+
transform: translate(calc(-50% + 10%), 9%) scale(0.95) rotate(2.6deg);
16561658
}
16571659

16581660
.discipline-stack-card[data-stack-pos="2"] {
16591661
z-index: 3;
16601662
opacity: 0.8;
1661-
filter: saturate(0.84) brightness(0.88);
1662-
transform: translate3d(calc(-50% - 9%), 17%, 0) scale(0.89) rotate(-3.2deg);
1663+
transform: translate(calc(-50% - 9%), 17%) scale(0.89) rotate(-3.2deg);
16631664
}
16641665

16651666
.discipline-stack-card[data-stack-pos="3"] {
16661667
z-index: 2;
16671668
opacity: 0.58;
1668-
filter: saturate(0.74) brightness(0.8);
1669-
transform: translate3d(calc(-50% + 11%), 24%, 0) scale(0.82) rotate(4.4deg);
1669+
transform: translate(calc(-50% + 11%), 24%) scale(0.82) rotate(4.4deg);
16701670
}
16711671

16721672
.discipline-stack-card[data-stack-pos="4"] {
16731673
z-index: 1;
16741674
opacity: 0.38;
1675-
filter: saturate(0.62) brightness(0.72);
1676-
transform: translate3d(calc(-50% - 11%), 30%, 0) scale(0.76) rotate(-4.6deg);
1675+
transform: translate(calc(-50% - 11%), 30%) scale(0.76) rotate(-4.6deg);
16771676
}
16781677

16791678
.discipline-stack-viewport--static .discipline-stack-card {
@@ -1967,23 +1966,23 @@ a {
19671966
}
19681967

19691968
.discipline-stack-card[data-stack-pos="0"] {
1970-
transform: translate3d(-50%, 0, 0) scale(1) rotate(-1.35deg);
1969+
transform: translate(-50%, 0) scale(1) rotate(-1.35deg);
19711970
}
19721971

19731972
.discipline-stack-card[data-stack-pos="1"] {
1974-
transform: translate3d(calc(-50% + 7%), 8%, 0) scale(0.95) rotate(4deg);
1973+
transform: translate(calc(-50% + 7%), 8%) scale(0.95) rotate(4deg);
19751974
}
19761975

19771976
.discipline-stack-card[data-stack-pos="2"] {
1978-
transform: translate3d(calc(-50% - 6%), 17%, 0) scale(0.88) rotate(-4.9deg);
1977+
transform: translate(calc(-50% - 6%), 17%) scale(0.88) rotate(-4.9deg);
19791978
}
19801979

19811980
.discipline-stack-card[data-stack-pos="3"] {
1982-
transform: translate3d(calc(-50% + 8%), 25%, 0) scale(0.81) rotate(5.8deg);
1981+
transform: translate(calc(-50% + 8%), 25%) scale(0.81) rotate(5.8deg);
19831982
}
19841983

19851984
.discipline-stack-card[data-stack-pos="4"] {
1986-
transform: translate3d(calc(-50% - 9%), 31%, 0) scale(0.74) rotate(-4.4deg);
1985+
transform: translate(calc(-50% - 9%), 31%) scale(0.74) rotate(-4.4deg);
19871986
}
19881987
}
19891988

docs/assets/js/shell.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const body = document.body;
55
const base = (body?.getAttribute('data-base') || '.').trim();
6-
const assetVersion = '20260409p';
6+
const assetVersion = '20260410a';
77
const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
88
const SETTLE_PASS_DELAYS = [0, 140, 320, 560];
99

@@ -161,6 +161,7 @@
161161
}
162162

163163
stack.innerHTML = "";
164+
delete stack.dataset.stackReady;
164165

165166
disciplines.forEach((discipline, index) => {
166167
const fragment = template.content.cloneNode(true);
@@ -1574,6 +1575,11 @@
15741575
prevButton?.setAttribute("aria-label", `Show previous discipline, ${previous.title}`);
15751576
nextButton?.setAttribute("aria-label", `Show next discipline, ${next.title}`);
15761577
stack.dataset.swipeEnabled = portraitQuery.matches ? "true" : "false";
1578+
if (portraitQuery.matches) {
1579+
stack.removeAttribute("tabindex");
1580+
} else {
1581+
stack.tabIndex = 0;
1582+
}
15771583
};
15781584

15791585
const applyState = () => {
@@ -1584,6 +1590,7 @@
15841590
card.setAttribute("aria-hidden", position === 0 ? "false" : "true");
15851591
});
15861592

1593+
stack.dataset.stackReady = "true";
15871594
syncLabels();
15881595
};
15891596

@@ -1653,7 +1660,6 @@
16531660
}
16541661
});
16551662

1656-
stack.tabIndex = 0;
16571663
applyState();
16581664

16591665
window.addEventListener("resize", syncWithoutAnimation);

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="preconnect" href="https://fonts.googleapis.com">
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1010
<link href="https://fonts.googleapis.com/css2?family=Rock+Salt&family=Space+Grotesk:wght@400;500;600;700&family=Unbounded:wght@500;700;800&display=swap" rel="stylesheet">
11-
<link rel="stylesheet" href="assets/css/style.css?v=20260409p">
11+
<link rel="stylesheet" href="assets/css/style.css?v=20260410a">
1212

1313
<link rel="icon" type="image/svg+xml" href="favicon.svg">
1414
<link rel="icon" sizes="192x192" href="android-chrome-192x192.png">
@@ -172,6 +172,6 @@ <h2>A <span class="tagline-script">Closer Look</span> At The Path</h2>
172172

173173
<div id="footer-slot"></div>
174174

175-
<script src="assets/js/shell.js?v=20260409p" defer></script>
175+
<script src="assets/js/shell.js?v=20260410a" defer></script>
176176
</body>
177177
</html>

0 commit comments

Comments
 (0)