-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.html
More file actions
451 lines (404 loc) · 20.6 KB
/
Copy patharchive.html
File metadata and controls
451 lines (404 loc) · 20.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Soma Earth — Archive</title>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,380;0,8..60,400;0,8..60,500;1,8..60,400&family=IBM+Plex+Sans:wght@300;400;500&family=IBM+Plex+Mono:wght@300;400;500&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="styles.css"/>
<script src="glyph-core.js"></script>
<style>
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; overflow: hidden;
font-family: "IBM Plex Sans", system-ui, sans-serif;
color: #1c1813; background: var(--paper, #ebe3d0);
-webkit-font-smoothing: antialiased; }
/* ── layout shell ── */
.arc-shell {
display: grid;
grid-template-rows: auto auto 1fr auto;
height: 100vh;
}
/* ── header ── */
.arc-header {
display: grid; grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 0 28px; height: 52px;
border-bottom: 1px solid var(--rule);
font-family: var(--mono); font-size: 10px;
letter-spacing: 0.2em; text-transform: uppercase;
background: var(--paper);
}
.arc-header .mark { display: flex; gap: 9px; align-items: center; color: var(--ink-2); }
.arc-header nav { display: flex; gap: 28px; }
.arc-header nav a {
color: var(--ink-3); text-decoration: none;
transition: color .18s;
}
.arc-header nav a:hover { color: var(--ink); }
.arc-header nav a.active { color: var(--ink); }
/* ── heading band ── */
.arc-heading {
padding: 22px 28px 16px;
border-bottom: 1px solid var(--rule);
background: var(--paper);
}
.arc-heading h2 {
font-family: var(--serif); font-weight: 380;
font-size: 38px; line-height: 1.05; margin: 7px 0 0;
letter-spacing: -0.012em;
}
.arc-heading .hd-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--bronze); }
/* ── body: sidebar + list ── */
.arc-body {
display: grid; grid-template-columns: 230px 1fr;
min-height: 0; overflow: hidden;
}
/* sidebar */
.arc-sidebar {
padding: 28px 24px; border-right: 1px solid var(--rule);
display: flex; flex-direction: column; gap: 30px;
overflow-y: auto; background: var(--paper);
}
.sb-section-label {
font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
text-transform: uppercase; color: var(--ink-3);
display: block; margin-bottom: 12px;
padding-bottom: 6px; border-bottom: 1px solid var(--rule-soft);
}
/* search */
.arc-search-box {
display: flex; align-items: center; gap: 8px;
border: 1px solid var(--rule); padding: 8px 10px;
background: var(--mineral);
}
.arc-search-box input {
border: none; background: transparent; outline: none; flex: 1;
font-family: var(--mono); font-size: 11px; color: var(--ink);
letter-spacing: 0.1em;
}
.arc-search-box input::placeholder { color: var(--ink-3); }
.sb-cursor { color: var(--bronze); font-size: 13px; }
/* filter checkboxes */
.filter-list { display: grid; gap: 9px; }
.filter-item {
display: flex; align-items: center; gap: 9px;
font-family: var(--mono); font-size: 10.5px;
letter-spacing: 0.13em; text-transform: uppercase;
color: var(--ink-3); cursor: pointer; user-select: none;
transition: color .15s;
}
.filter-item:hover { color: var(--ink); }
.filter-item.active { color: var(--ink); }
.filter-item.active .fi-box { background: var(--ink); border-color: var(--ink); }
.fi-box {
width: 9px; height: 9px; border: 1px solid var(--rule); flex-shrink: 0;
transition: background .15s;
}
.fi-count { color: var(--ink-3); margin-left: auto; font-size: 9px; }
/* continent list */
.cont-list { display: grid; gap: 7px; }
.cont-item {
display: flex; justify-content: space-between;
font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
color: var(--ink-2); cursor: pointer; padding: 3px 0;
transition: color .15s;
}
.cont-item:hover, .cont-item.active { color: var(--ink); }
.cont-item .ci-n { color: var(--ink-3); font-size: 9.5px; }
/* sort */
.sort-row {
display: flex; gap: 8px; flex-wrap: wrap;
}
.sort-btn {
font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
text-transform: uppercase; color: var(--ink-3);
border: 1px solid var(--rule-soft); padding: 4px 9px;
cursor: pointer; background: transparent; transition: all .15s;
}
.sort-btn:hover, .sort-btn.active { color: var(--ink); border-color: var(--ink); background: var(--mineral); }
/* clear all */
.clear-btn {
font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
text-transform: uppercase; color: var(--bronze);
background: none; border: none; cursor: pointer; padding: 0;
margin-top: auto;
}
.clear-btn:hover { text-decoration: underline; }
/* ── list area ── */
.arc-list { display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.arc-rows { flex: 1; overflow-y: auto; }
.arc-rows::-webkit-scrollbar { width: 4px; }
.arc-rows::-webkit-scrollbar-track { background: transparent; }
.arc-rows::-webkit-scrollbar-thumb { background: var(--rule); }
.arc-row {
display: grid;
grid-template-columns: 92px 76px 1.4fr 1fr 1.1fr 40px;
align-items: center; padding: 14px 20px;
border-bottom: 1px solid var(--rule-soft);
cursor: pointer; position: relative;
transition: background .18s;
}
.arc-row:hover { background: var(--mineral); }
.ar-id { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--bronze); }
.ar-glyph { display: flex; align-items: center; color: var(--ink-2); }
.ar-name { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.ar-region { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; }
.ar-mech { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.ar-arrow { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; transition: color .18s, transform .18s; }
.arc-row:hover .ar-arrow { color: var(--bronze); transform: translateX(4px); }
/* empty state */
.arc-empty {
padding: 60px 20px; text-align: center;
font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
text-transform: uppercase; color: var(--ink-3);
}
/* result count */
.arc-count {
font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
text-transform: uppercase; color: var(--ink-3);
padding: 6px 20px; border-bottom: 1px solid var(--rule-soft);
background: var(--paper); flex-shrink: 0;
}
/* ── footer strip ── */
.arc-foot {
display: flex; justify-content: space-between; align-items: center;
padding: 0 28px; height: 38px;
border-top: 1px solid var(--rule);
font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
text-transform: uppercase; color: var(--ink-3);
background: var(--paper); flex-shrink: 0;
}
</style>
</head>
<body>
<div class="arc-shell">
<!-- header -->
<header class="arc-header">
<div class="mark">
<svg width="13" height="13" viewBox="0 0 14 14">
<circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="0.8"/>
<circle cx="7" cy="7" r="2.2" fill="currentColor"/>
</svg>
Soma Earth
</div>
<nav>
<a href="Landing.html">Home</a>
<a href="atlas.html">Atlas</a>
<a href="archive.html" class="active">Archive</a>
</nav>
</header>
<!-- heading band -->
<div class="arc-heading">
<div class="hd-kicker">◌ Vol. I · Catalogue</div>
<h2>Systems of the body, classified.</h2>
</div>
<!-- body -->
<div class="arc-body">
<!-- sidebar -->
<aside class="arc-sidebar">
<div>
<div class="sb-section-label">Search</div>
<div class="arc-search-box">
<span class="sb-cursor">⌇</span>
<input type="text" id="searchInput" placeholder="practice, region, mechanism…" autocomplete="off"/>
</div>
</div>
<div>
<div class="sb-section-label">Mechanism</div>
<div class="filter-list" id="mechFilters"></div>
</div>
<div>
<div class="sb-section-label">Continent</div>
<div class="cont-list" id="contFilters"></div>
</div>
<div>
<div class="sb-section-label">Sort</div>
<div class="sort-row">
<button class="sort-btn active" data-sort="id">By ID</button>
<button class="sort-btn" data-sort="name">A → Z</button>
<button class="sort-btn" data-sort="region">Region</button>
<button class="sort-btn" data-sort="year">Era</button>
</div>
</div>
<button class="clear-btn" id="clearBtn">✕ Clear all filters</button>
</aside>
<!-- list -->
<div class="arc-list">
<div class="arc-count" id="arcCount">22 practices</div>
<div class="arc-rows" id="arcRows"></div>
</div>
</div>
<!-- footer -->
<div class="arc-foot">
<span>◌ Vitality Archive · Open Access</span>
<span>MMXXVI</span>
</div>
</div>
<script>
(function () {
const ARCHIVE = [
{ id:"BRE-01", name:"Tai Chi", region:"China", continent:"East Asia", mechanism:"breath + flow + balance", year:"c. 12th C.", fam:"BRE", lat:35, lon:104, query:"tai chi beginner tutorial 5 minutes Yang style basic movement" },
{ id:"BRE-02", name:"Baduanjin", region:"China", continent:"East Asia", mechanism:"breath + mobility", year:"c. 12th C.", fam:"BRE", lat:32, lon:110, query:"official baduanjin qigong tutorial beginner 8 movements" },
{ id:"ANI-01", name:"Wuqinxi", region:"China", continent:"East Asia", mechanism:"animal motion + mobility", year:"c. 3rd C.", fam:"ANI", lat:29, lon:116, query:"wuqinxi five animal frolics qigong beginner tutorial" },
{ id:"RHY-01", name:"Radio Taiso", region:"Japan", continent:"East Asia", mechanism:"rhythm + synchronization", year:"1928", fam:"RHY", lat:36, lon:138, query:"radio taiso tutorial beginner 3 minutes japanese morning exercise" },
{ id:"BRE-03", name:"Yoga", region:"India", continent:"South Asia", mechanism:"breath + ritual + balance", year:"c. 5th C. BCE", fam:"BRE", lat:21, lon:80, query:"beginner yoga 10 minute gentle practice breath mobility" },
{ id:"BRE-04", name:"Pranayama", region:"India", continent:"South Asia", mechanism:"breath control + awareness", year:"c. 5th C. BCE", fam:"BRE", lat:26, lon:73, query:"pranayama beginner breathing exercise 5 minutes safe tutorial" },
{ id:"MOB-01", name:"Ruesi Dat Ton", region:"Thailand", continent:"Southeast Asia",mechanism:"healing mobility", year:"c. 17th C.", fam:"MOB", lat:15, lon:101, query:"ruesi dat ton thai hermit exercise beginner tutorial" },
{ id:"RIT-01", name:"Sufi Whirling", region:"Turkey / Egypt", continent:"West Asia", mechanism:"trance + ritual rotation", year:"13th C.", fam:"RIT", lat:39, lon:33, query:"sufi whirling beginner introduction safe tutorial" },
{ id:"RIT-02", name:"Gnawa Trance Dance", region:"Morocco", continent:"Africa", mechanism:"rhythm + trance + ritual", year:"ancestral", fam:"RIT", lat:32, lon:-5, query:"gnawa dance tutorial beginner morocco rhythm movement" },
{ id:"RHY-02", name:"Eskista", region:"Ethiopia", continent:"Africa", mechanism:"shoulder rhythm isolation", year:"ancestral", fam:"RHY", lat:9, lon:38, query:"eskista dance tutorial beginner shoulder movement ethiopian" },
{ id:"GRO-01", name:"Adumu", region:"Kenya / Tanzania", continent:"Africa", mechanism:"grounding + endurance + ritual", year:"ancestral", fam:"GRO", lat:-2, lon:36, query:"maasai adumu jumping dance explanation tutorial beginner" },
{ id:"RHY-03", name:"West African Drum Movement", region:"West Africa", continent:"Africa", mechanism:"collective rhythm", year:"ancestral", fam:"RHY", lat:8, lon:-1, query:"west african dance beginner tutorial drum rhythm basic steps" },
{ id:"COL-01", name:"Gumboot Dance", region:"South Africa", continent:"Africa", mechanism:"collective rhythm", year:"c. 1880", fam:"COL", lat:-29, lon:26, query:"gumboot dance tutorial beginner basic steps south africa" },
{ id:"FLO-01", name:"Capoeira", region:"Brazil", continent:"Americas", mechanism:"combat flow + rhythm", year:"16th C.", fam:"FLO", lat:-13, lon:-38, query:"capoeira ginga tutorial beginner basic movement" },
{ id:"RIT-03", name:"Candomblé Movement", region:"Brazil", continent:"Americas", mechanism:"ritual embodiment", year:"18th C.", fam:"RIT", lat:-12, lon:-43, query:"candomble dance movement explanation afro brazilian ritual" },
{ id:"MOB-02", name:"Swedish Gymnastics", region:"Sweden", continent:"Europe", mechanism:"structural mobility", year:"1814", fam:"MOB", lat:60, lon:18, query:"swedish gymnastics beginner routine mobility posture" },
{ id:"GRO-02", name:"Nordic Walking", region:"Finland", continent:"Europe", mechanism:"grounded endurance + recovery", year:"1966", fam:"GRO", lat:62, lon:25, query:"INWA nordic walking technique beginner tutorial" },
{ id:"STR-01", name:"Turnen", region:"Germany", continent:"Europe", mechanism:"strength + discipline", year:"1811", fam:"STR", lat:51, lon:10, query:"german turnen basic gymnastics beginner movement tutorial" },
{ id:"MOB-03", name:"Pilates", region:"Germany / USA", continent:"Europe", mechanism:"core stability + mobility", year:"1920s", fam:"MOB", lat:52.5, lon:13.5, query:"pilates beginner 10 minute core stability tutorial" },
{ id:"FLO-02", name:"Contemporary Somatics", region:"USA", continent:"Americas", mechanism:"awareness + recovery", year:"1970s", fam:"FLO", lat:40, lon:-98, query:"somatic movement beginner 10 minute nervous system release" },
{ id:"RIT-04", name:"Haka", region:"Aotearoa", continent:"Oceania", mechanism:"collective ritual power", year:"ancestral", fam:"RIT", lat:-41, lon:174, query:"haka tutorial beginner maori cultural explanation" },
{ id:"GRO-03", name:"Aboriginal Ground Dance", region:"Australia", continent:"Oceania", mechanism:"grounding + ancestral ritual", year:"ancestral", fam:"GRO", lat:-25, lon:134, query:"aboriginal dance movement explanation australia cultural tutorial" },
];
/* compound-mark pairing for rows not already catalogued in GlyphCore's
GLYPH_ARCHIVE — keeps every row's icon the same primary+secondary
compound style used on the home view */
const EXTRA_COMPOUNDS = {
"ANI-01": { primary: "FLO", secondary: "MOB" },
"BRE-04": { primary: "BRE", secondary: "AWA" },
"RIT-02": { primary: "RIT", secondary: "RHY" },
"COL-01": { primary: "COL", secondary: "RHY" },
"RIT-03": { primary: "RIT", secondary: "FLO" },
"STR-01": { primary: "POW", secondary: "RIT" },
"MOB-03": { primary: "MOB", secondary: "BAL" },
"FLO-02": { primary: "AWA", secondary: "REC" },
"GRO-03": { primary: "GRO", secondary: "RIT" },
};
const YT_API_KEY = '';
async function openPractice(ex) {
if (YT_API_KEY) {
try {
const p = new URLSearchParams({ part:'snippet', q:ex.query, type:'video',
videoEmbeddable:'true', maxResults:'1', relevanceLanguage:'en', key:YT_API_KEY });
const res = await fetch('https://www.googleapis.com/youtube/v3/search?' + p);
const data = await res.json();
const vid = data.items?.[0]?.id?.videoId;
if (vid) { window.open('https://www.youtube.com/watch?v=' + vid + '&autoplay=1', '_blank'); return; }
} catch(e) {}
}
window.open('https://www.youtube.com/results?search_query=' + encodeURIComponent(ex.query), '_blank');
}
/* ── state ── */
let searchQ = '';
let activeMechs = new Set();
let activeCont = null;
let sortKey = 'id';
/* ── derive filter options ── */
const allMechs = [...new Set(ARCHIVE.map(r => r.mechanism.split(' + ')[0]))].sort();
const allConts = [...new Set(ARCHIVE.map(r => r.continent))].sort();
const contCounts = {};
ARCHIVE.forEach(r => { contCounts[r.continent] = (contCounts[r.continent]||0)+1; });
/* ── build sidebar filters ── */
const mechEl = document.getElementById('mechFilters');
allMechs.forEach(m => {
const div = document.createElement('div');
div.className = 'filter-item';
div.dataset.mech = m;
const count = ARCHIVE.filter(r => r.mechanism.includes(m)).length;
div.innerHTML = `<span class="fi-box"></span>${m}<span class="fi-count">${count}</span>`;
div.addEventListener('click', () => {
if (activeMechs.has(m)) activeMechs.delete(m);
else activeMechs.add(m);
div.classList.toggle('active', activeMechs.has(m));
render();
});
mechEl.appendChild(div);
});
const contEl = document.getElementById('contFilters');
allConts.forEach(c => {
const div = document.createElement('div');
div.className = 'cont-item';
div.dataset.cont = c;
div.innerHTML = `<span>${c}</span><span class="ci-n">${contCounts[c]}</span>`;
div.addEventListener('click', () => {
activeCont = activeCont === c ? null : c;
contEl.querySelectorAll('.cont-item').forEach(el => el.classList.toggle('active', el.dataset.cont === activeCont));
render();
});
contEl.appendChild(div);
});
/* ── sort buttons ── */
document.querySelectorAll('.sort-btn').forEach(btn => {
btn.addEventListener('click', () => {
sortKey = btn.dataset.sort;
document.querySelectorAll('.sort-btn').forEach(b => b.classList.toggle('active', b === btn));
render();
});
});
/* ── search ── */
document.getElementById('searchInput').addEventListener('input', e => {
searchQ = e.target.value.toLowerCase();
render();
});
/* ── clear ── */
document.getElementById('clearBtn').addEventListener('click', () => {
searchQ = '';
activeMechs.clear();
activeCont = null;
sortKey = 'id';
document.getElementById('searchInput').value = '';
document.querySelectorAll('.filter-item').forEach(el => el.classList.remove('active'));
document.querySelectorAll('.cont-item').forEach(el => el.classList.remove('active'));
document.querySelectorAll('.sort-btn').forEach(el => el.classList.toggle('active', el.dataset.sort === 'id'));
render();
});
/* ── render ── */
function render() {
let rows = ARCHIVE.filter(r => {
if (searchQ && !([r.name, r.region, r.continent, r.mechanism, r.id].join(' ').toLowerCase().includes(searchQ))) return false;
if (activeMechs.size && ![...activeMechs].some(m => r.mechanism.includes(m))) return false;
if (activeCont && r.continent !== activeCont) return false;
return true;
});
rows = rows.slice().sort((a, b) => {
if (sortKey === 'name') return a.name.localeCompare(b.name);
if (sortKey === 'region') return a.region.localeCompare(b.region);
if (sortKey === 'year') return a.year.localeCompare(b.year);
return a.id.localeCompare(b.id);
});
const count = document.getElementById('arcCount');
count.textContent = rows.length === ARCHIVE.length
? `${rows.length} practices`
: `${rows.length} of ${ARCHIVE.length} practices`;
const container = document.getElementById('arcRows');
if (rows.length === 0) {
container.innerHTML = '<div class="arc-empty">No entries match · clear filters to reset</div>';
return;
}
const GC = window.GlyphCore;
container.innerHTML = '';
rows.forEach((r) => {
const archEntry = GC && GC.GLYPH_ARCHIVE.find(g => g.id === r.id);
const pair = archEntry || EXTRA_COMPOUNDS[r.id];
const glyphSvg = GC ? GC.compound(pair.primary, pair.secondary, { size: 56, accent: "#8a6a3a", sw: 2.6 }) : '';
const row = document.createElement('div');
row.className = 'arc-row';
row.innerHTML = `
<span class="ar-id">${r.id}</span>
<span class="ar-glyph">${glyphSvg}</span>
<span class="ar-name">${r.name}</span>
<span class="ar-region">${r.region}</span>
<span class="ar-mech">${r.mechanism}</span>
<span class="ar-arrow">→</span>`;
row.addEventListener('click', () => openPractice(r));
container.appendChild(row);
});
}
render();
})();
</script>
</body>
</html>