Fix stack overlap, staggered folder tabs with click-to-jump.

Shared scroll driver for all variants; wider folders; tab rail; trace and rack aligned.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-20 22:55:39 -04:00
co-authored by Cursor
parent 17338fc3b4
commit 07dffaa323
15 changed files with 436 additions and 323 deletions
+113 -58
View File
@@ -1,10 +1,7 @@
@import '../shared/stack-vars.css';
:root {
--nav: 2.5rem;
--stick: 0.5rem;
--step: 1.85rem;
--tab-h: 1.65rem;
--scroll-tick: 26vh;
--overlap: 22vh;
--tab-offset: 2.4rem;
--mono: 'IBM Plex Mono', monospace;
--sans: 'Instrument Sans', system-ui, sans-serif;
}
@@ -14,94 +11,152 @@
body { font-family: var(--sans); background: #2a2824; color: #1a1814; }
.nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 300;
display: flex; gap: 1rem; padding: 0.5rem 1rem;
position: fixed; top: 0; left: 0; right: 0; z-index: 400;
display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.5rem 1rem;
font-family: var(--mono); font-size: 0.62rem;
background: rgba(42,40,36,0.95); color: #c4b8a8;
background: rgba(42,40,36,0.97); color: #c4b8a8;
}
.nav a { color: #8a8278; text-decoration: none; }
.nav a:hover { color: #d4a574; }
.depth { margin-left: auto; color: #d4a574; font-weight: 600; }
.mount {
max-width: 520px;
margin: 0 auto;
padding: calc(var(--nav) + 0.5rem) 1rem 0;
/* Quick-jump rail */
.tab-rail {
position: fixed;
top: 2.5rem;
right: max(0.5rem, calc(50% - 360px));
z-index: 350;
display: flex;
flex-direction: column;
gap: 0.2rem;
padding: 0.35rem;
background: rgba(42,40,36,0.9);
border: 1px solid #4a4844;
border-radius: 6px;
}
.scroll-section { height: var(--scroll-tick); position: relative; }
.scroll-section--final { height: 16vh; min-height: 180px; }
.stop { height: 1px; margin-bottom: 3rem; }
.rail-tab {
font-family: var(--mono);
font-size: 0.55rem;
padding: 0.2rem 0.45rem;
border: none;
border-radius: 3px;
background: transparent;
color: #8a8278;
cursor: pointer;
text-align: left;
}
.rail-tab:hover,
.rail-tab.active {
background: #c9a86c;
color: #2a2824;
}
.mount {
width: min(640px, 100%);
margin: 0 auto;
padding: calc(var(--stack-nav) + 0.25rem) 1rem 0;
}
.scroll-section {
height: var(--stack-tick);
position: relative;
}
.scroll-section--final {
height: 12vh;
min-height: 220px;
}
.stack-stop { height: 1px; margin-bottom: 4rem; }
/* Folder stacks; tab sits above body and stays visible */
.folder {
position: sticky;
margin-bottom: calc(-1 * var(--overlap));
padding-top: 0;
width: 100%;
margin-bottom: calc(-1 * var(--stack-overlap));
}
/* Tab: sticky with layer, offset left so all labels readable when stacked */
.tab {
position: relative;
z-index: 50;
display: inline-block;
position: sticky;
display: block;
width: fit-content;
max-width: calc(100% - 1rem);
font-family: var(--mono);
font-size: 0.58rem;
font-size: 0.62rem;
font-weight: 600;
letter-spacing: 0.05em;
padding: 0.35rem 0.85rem 0.3rem;
border-radius: 6px 6px 0 0;
border: 1px solid rgba(0,0,0,0.12);
letter-spacing: 0.04em;
padding: 0.4rem 1rem 0.35rem;
border: 1px solid rgba(0,0,0,0.15);
border-bottom: none;
margin-left: 0.5rem;
box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
border-radius: 8px 8px 0 0;
cursor: pointer;
text-align: left;
z-index: 50;
box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
transition: filter 0.15s, transform 0.15s;
}
.tab:hover { filter: brightness(1.08); transform: translateY(-1px); }
.body {
position: relative;
z-index: 1;
background: #e8e2d4;
border: 1px solid #c4b8a8;
border-radius: 0 8px 8px 8px;
padding: 1rem 1.2rem 1.1rem;
box-shadow: 3px 6px 20px rgba(0,0,0,0.2);
min-height: 100px;
border-radius: 0 10px 10px 10px;
padding: 1.25rem 1.4rem 1.35rem;
min-height: 200px;
box-shadow: 0 8px 28px rgba(0,0,0,0.22);
position: relative;
z-index: 1;
}
.f0 { top: calc(var(--nav) + var(--stick)); z-index: 1; }
.f0 .tab { background: #c9a86c; color: #2a2824; z-index: 107; }
.f1 { top: calc(var(--nav) + var(--stick) + var(--step)); z-index: 2; }
.f1 .tab { background: #a8c4d4; color: #1a2830; z-index: 108; }
.f2 { top: calc(var(--nav) + var(--stick) + var(--step) * 2); z-index: 3; }
.f2 .tab { background: #b8d4a8; color: #1a2818; z-index: 109; }
.f3 { top: calc(var(--nav) + var(--stick) + var(--step) * 3); z-index: 4; }
.f3 .tab { background: #d4b8c4; color: #2a1820; z-index: 110; }
.f4 { top: calc(var(--nav) + var(--stick) + var(--step) * 4); z-index: 5; }
.f4 .tab { background: #d4c8a8; color: #2a2418; z-index: 111; }
.f5 { top: calc(var(--nav) + var(--stick) + var(--step) * 5); z-index: 6; }
.f5 .tab { background: #c4c4c4; color: #2a2a2a; z-index: 112; }
.f0 { top: calc(var(--stack-nav) + var(--stack-stick)); z-index: 1; }
.f0 .tab { top: calc(var(--stack-nav) + var(--stack-stick)); margin-left: calc(var(--tab-offset) * 0); z-index: 170; background: #c9a86c; color: #2a2824; }
.f1 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step)); z-index: 2; }
.f1 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step)); margin-left: calc(var(--tab-offset) * 1); z-index: 171; background: #a8c4d4; color: #1a2830; }
.f2 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 2); z-index: 3; }
.f2 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 2); margin-left: calc(var(--tab-offset) * 2); z-index: 172; background: #b8d4a8; color: #1a2818; }
.f3 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 3); z-index: 4; }
.f3 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 3); margin-left: calc(var(--tab-offset) * 3); z-index: 173; background: #d4b8c4; color: #2a1820; }
.f4 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 4); z-index: 5; }
.f4 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 4); margin-left: calc(var(--tab-offset) * 4); z-index: 174; background: #d4c8a8; color: #2a2418; }
.f5 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 5); z-index: 6; }
.f5 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 5); margin-left: calc(var(--tab-offset) * 5); z-index: 175; background: #c4c4c4; color: #2a2a2a; }
.f6 {
top: calc(var(--nav) + var(--stick) + var(--step) * 6);
top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 6);
z-index: 7;
margin-bottom: 0;
}
.f6 .tab { background: #2a4a6b; color: #e8e2d4; z-index: 113; }
.f6 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 6); margin-left: calc(var(--tab-offset) * 6); z-index: 176; background: #2a4a6b; color: #e8e2d4; }
.body h1, .body h2 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.body p { font-size: 0.86rem; color: #4a4844; }
.body h1 { font-size: 1.65rem; margin-bottom: 0.35rem; }
.body h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.body p { font-size: 0.92rem; color: #4a4844; line-height: 1.5; }
.body a { color: #2a4a6b; }
.avail { font-family: var(--mono); font-size: 0.62rem; color: #3d6b3d; margin-top: 0.3rem; }
.avail { font-family: var(--mono); font-size: 0.68rem; color: #3d6b3d; margin-top: 0.5rem; }
.btn {
font-family: var(--mono); font-size: 0.65rem; padding: 0.35rem 0.65rem;
background: #2a4a6b; color: #fff; text-decoration: none; border-radius: 3px; margin-right: 0.3rem;
font-family: var(--mono); font-size: 0.7rem; padding: 0.45rem 0.75rem;
background: #2a4a6b; color: #fff; text-decoration: none; border-radius: 4px; margin-right: 0.4rem; display: inline-block; margin-top: 0.35rem;
}
.btn.ghost { background: transparent; color: #2a4a6b; border: 1px solid #2a4a6b; }
.foot {
display: flex; justify-content: space-between; max-width: 520px; margin: 0 auto;
padding: 0 1rem 2rem; font-family: var(--mono); font-size: 0.6rem; color: #6a6458;
display: flex; justify-content: space-between;
width: min(640px, 100%); margin: 0 auto;
padding: 0 1rem 2rem; font-family: var(--mono); font-size: 0.62rem; color: #6a6458;
}
.foot a { color: #6a6458; text-decoration: none; }
@media (max-width: 700px) {
:root { --step: 1.5rem; --overlap: 20vh; --scroll-tick: 24vh; }
@media (max-width: 720px) {
.tab-rail { display: none; }
:root { --tab-offset: 1.5rem; --stack-tick: 12vh; --stack-overlap: 10.5vh; }
.f6 .tab { margin-left: calc(var(--tab-offset) * 3); }
}
-10
View File
@@ -1,10 +0,0 @@
const sections = document.querySelectorAll('.scroll-section');
const depthEl = document.getElementById('depth');
const mid = () => window.innerHeight * 0.42;
function tick() {
let a = 0;
sections.forEach((s) => { const r = s.getBoundingClientRect(); if (r.top <= mid() && r.bottom > mid()) a = +s.dataset.layer; });
depthEl.textContent = `L${a}`;
}
window.addEventListener('scroll', tick, { passive: true });
tick();
+91 -11
View File
@@ -6,21 +6,101 @@
<title>Levkin — Stack Folder</title>
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="../shared/stack-vars.css" />
<link rel="stylesheet" href="./folder.css" />
</head>
<body>
<nav class="nav"><a href="/">← options</a><a href="/stack/">cards</a><a href="/stack-trace/">trace</a><span class="depth" id="depth">L0</span></nav>
<nav class="nav">
<a href="/">← options</a>
<a href="/stack/">cards</a>
<a href="/stack-trace/">trace</a>
<a href="/stack-rack/">rack</a>
<span class="depth" id="depth">L0</span>
</nav>
<div class="tab-rail" aria-label="Jump to layer">
<button type="button" class="rail-tab active" data-goto="0" data-layer="0">L0</button>
<button type="button" class="rail-tab" data-goto="1" data-layer="1">L1</button>
<button type="button" class="rail-tab" data-goto="2" data-layer="2">L2</button>
<button type="button" class="rail-tab" data-goto="3" data-layer="3">L3</button>
<button type="button" class="rail-tab" data-goto="4" data-layer="4">L4</button>
<button type="button" class="rail-tab" data-goto="5" data-layer="5">L5</button>
<button type="button" class="rail-tab" data-goto="6" data-layer="6">L6</button>
</div>
<main class="mount">
<div class="scroll-section" data-layer="0"><article class="folder f0"><div class="tab">L0 · foundation</div><div class="body"><h1>Levkin</h1><p>Software development · Canada · remote · 15+ yrs</p><p class="avail">Taking new engagements</p></div></article></div>
<div class="scroll-section" data-layer="1"><article class="folder f1"><div class="tab">L1 · application</div><div class="body"><h2>Custom software</h2><p>Web apps, APIs, tools — TS · Python · .NET</p></div></article></div>
<div class="scroll-section" data-layer="2"><article class="folder f2"><div class="tab">L2 · automation</div><div class="body"><h2>Automation</h2><p>n8n · CI/CD · LLMs · <a href="https://auto.levkin.ca">auto.levkin.ca</a></p></div></article></div>
<div class="scroll-section" data-layer="3"><article class="folder f3"><div class="tab">L3 · enterprise</div><div class="body"><h2>CaseWare</h2><p>15+ years · MNP · JazzIt · <a href="https://caseware.levkin.ca">caseware.levkin.ca</a></p></div></article></div>
<div class="scroll-section" data-layer="4"><article class="folder f4"><div class="tab">L4 · quality</div><div class="body"><h2>Quality engineering</h2><p>Senior SDET · <a href="https://iliadobkin.com">iliadobkin.com</a></p></div></article></div>
<div class="scroll-section" data-layer="5"><article class="folder f5"><div class="tab">L5 · operations</div><div class="body"><h2>Job Ops</h2><p><a href="https://jobs.levkin.ca">jobs.levkin.ca</a> (auth)</p></div></article></div>
<div class="scroll-section scroll-section--final" data-layer="6"><article class="folder f6"><div class="tab">L6 · interface</div><div class="body"><h2>Engage</h2><p><a class="btn" href="https://cal.levkin.ca/ilia/consult">Book 15 min</a> <a class="btn ghost" href="mailto:hello@levkine.ca">email</a></p></div></article></div>
<div class="stop"></div>
<div class="scroll-section" data-layer="0">
<article class="folder f0" id="layer-0">
<button type="button" class="tab" data-goto="0">L0 · foundation</button>
<div class="body">
<h1>Levkin</h1>
<p>Software development · Canada · remote</p>
<p class="avail">Taking new engagements · 15+ yrs · 8h→2m</p>
</div>
</article>
</div>
<div class="scroll-section" data-layer="1">
<article class="folder f1" id="layer-1">
<button type="button" class="tab" data-goto="1">L1 · application</button>
<div class="body">
<h2>Custom software</h2>
<p>Web apps, APIs, tools — TypeScript · Python · .NET · PostgreSQL</p>
</div>
</article>
</div>
<div class="scroll-section" data-layer="2">
<article class="folder f2" id="layer-2">
<button type="button" class="tab" data-goto="2">L2 · automation</button>
<div class="body">
<h2>Automation</h2>
<p>n8n · Zapier · CI/CD · LLMs · <a href="https://auto.levkin.ca">auto.levkin.ca</a></p>
</div>
</article>
</div>
<div class="scroll-section" data-layer="3">
<article class="folder f3" id="layer-3">
<button type="button" class="tab" data-goto="3">L3 · enterprise</button>
<div class="body">
<h2>CaseWare &amp; CaseView</h2>
<p>15+ years · CaseWare Intl, MNP, JazzIt · <a href="https://caseware.levkin.ca">caseware.levkin.ca</a></p>
</div>
</article>
</div>
<div class="scroll-section" data-layer="4">
<article class="folder f4" id="layer-4">
<button type="button" class="tab" data-goto="4">L4 · quality</button>
<div class="body">
<h2>Quality engineering</h2>
<p>Senior SDET · <a href="https://iliadobkin.com">iliadobkin.com</a></p>
</div>
</article>
</div>
<div class="scroll-section" data-layer="5">
<article class="folder f5" id="layer-5">
<button type="button" class="tab" data-goto="5">L5 · operations</button>
<div class="body">
<h2>Job Ops</h2>
<p>Internal hiring orchestrator · <a href="https://jobs.levkin.ca">jobs.levkin.ca</a></p>
</div>
</article>
</div>
<div class="scroll-section scroll-section--final" data-layer="6">
<article class="folder f6" id="layer-6">
<button type="button" class="tab" data-goto="6">L6 · interface</button>
<div class="body">
<h2>Engage</h2>
<p>Discover → Proposal → Ship → Maintain</p>
<p><a class="btn" href="https://cal.levkin.ca/ilia/consult">Book 15 min</a> <a class="btn ghost" href="mailto:hello@levkine.ca">hello@levkine.ca</a></p>
</div>
</article>
</div>
<div class="stack-stop"></div>
</main>
<footer class="foot"><a href="https://git.levkin.ca">git</a><span>levkin.ca</span></footer>
<script src="./folder.js" type="module"></script>
<footer class="foot"><a href="https://git.levkin.ca">git.levkin.ca</a><span>levkin.ca</span></footer>
<script type="module">
import { initStackScroll } from '../shared/stack-scroll.js';
initStackScroll();
</script>
</body>
</html>