Restore L6 stack with scroll stop; add folder, paper, trace variants.
Fix card stacking with scroll-section drivers; expand Spec iliadobkin.com docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
:root {
|
||||
--nav: 2.5rem; --stick: 1rem; --step: 1.1rem; --unit: 56vh;
|
||||
--mono: 'IBM Plex Mono', monospace; --sans: 'Instrument Sans', system-ui, sans-serif;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: var(--sans); background: #2a2824; color: #1a1814; }
|
||||
.nav {
|
||||
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
|
||||
display: flex; gap: 1rem; padding: 0.5rem 1rem; font-family: var(--mono); font-size: 0.62rem;
|
||||
background: rgba(42,40,36,0.95); color: #c4b8a8;
|
||||
}
|
||||
.nav a { color: #8a8278; text-decoration: none; }
|
||||
.depth { margin-left: auto; color: #d4a574; font-weight: 600; }
|
||||
.mount { max-width: 520px; margin: 0 auto; padding-top: var(--nav); }
|
||||
.scroll-section { height: var(--unit); }
|
||||
.scroll-section--final { height: calc(var(--unit) * 0.5); min-height: 240px; }
|
||||
.stop { height: 1px; margin-bottom: 3rem; }
|
||||
.folder {
|
||||
position: sticky;
|
||||
margin-left: 2.5rem;
|
||||
background: #e8e2d4;
|
||||
border: 1px solid #c4b8a8;
|
||||
border-radius: 0 6px 6px 6px;
|
||||
box-shadow: 4px 4px 0 rgba(0,0,0,0.15), 0 12px 28px rgba(0,0,0,0.25);
|
||||
min-height: 140px;
|
||||
}
|
||||
.tab {
|
||||
position: absolute;
|
||||
left: -2.5rem;
|
||||
top: 0;
|
||||
width: 2.35rem;
|
||||
height: 100%;
|
||||
min-height: 120px;
|
||||
writing-mode: vertical-rl;
|
||||
transform: rotate(180deg);
|
||||
font-family: var(--mono);
|
||||
font-size: 0.55rem;
|
||||
letter-spacing: 0.06em;
|
||||
padding: 0.5rem 0.25rem;
|
||||
border-radius: 6px 0 0 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 500;
|
||||
}
|
||||
.f0 { top: calc(var(--nav) + var(--stick)); z-index: 1; }
|
||||
.f0 .tab { background: #c9a86c; color: #2a2824; }
|
||||
.f1 { top: calc(var(--nav) + var(--stick) + var(--step)); z-index: 2; }
|
||||
.f1 .tab { background: #a8c4d4; }
|
||||
.f2 { top: calc(var(--nav) + var(--stick) + var(--step)*2); z-index: 3; }
|
||||
.f2 .tab { background: #b8d4a8; }
|
||||
.f3 { top: calc(var(--nav) + var(--stick) + var(--step)*3); z-index: 4; }
|
||||
.f3 .tab { background: #d4b8c4; }
|
||||
.f4 { top: calc(var(--nav) + var(--stick) + var(--step)*4); z-index: 5; }
|
||||
.f4 .tab { background: #d4c8a8; }
|
||||
.f5 { top: calc(var(--nav) + var(--stick) + var(--step)*5); z-index: 6; }
|
||||
.f5 .tab { background: #c4c4c4; }
|
||||
.f6 { top: calc(var(--nav) + var(--stick) + var(--step)*6); z-index: 7; }
|
||||
.f6 .tab { background: #2a4a6b; color: #e8e2d4; }
|
||||
.body { padding: 1.1rem 1.25rem; }
|
||||
.body h1, .body h2 { font-size: 1.2rem; margin-bottom: 0.35rem; }
|
||||
.body p { font-size: 0.88rem; color: #4a4844; }
|
||||
.body a { color: #2a4a6b; }
|
||||
.avail { font-family: var(--mono); font-size: 0.65rem; color: #3d6b3d; margin-top: 0.35rem; }
|
||||
.btn { font-family: var(--mono); font-size: 0.68rem; padding: 0.4rem 0.7rem; background: #2a4a6b; color: #fff; text-decoration: none; border-radius: 3px; margin-right: 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; }
|
||||
.foot a { color: #6a6458; text-decoration: none; }
|
||||
@@ -0,0 +1,10 @@
|
||||
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();
|
||||
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<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="./folder.css" />
|
||||
</head>
|
||||
<body>
|
||||
<nav class="nav"><a href="/">← options</a><a href="/stack/">cards</a><span class="depth" id="depth">L0</span></nav>
|
||||
<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>
|
||||
</main>
|
||||
<footer class="foot"><a href="https://git.levkin.ca">git</a><span>levkin.ca</span></footer>
|
||||
<script src="./folder.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user