feat(v2.0.8): implement ipld dag-json/CIDv1, quant financial collector, MCP server (hs-mcp), /learn/ sub-page, /gallery/ sub-page, and global Lemurs footer

This commit is contained in:
Hermes Agent committed 2026-11-30 03:39:56 +00:00
1 parent b767f8a4e9
commit c17f74097b
55 files changed
+3974 -10

No files matched your search

+394
View File
@@ -0,0 +1,394 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Memetic Artifact &amp; Visual Atlas Gallery — hyperstitionstud.io</title>
<style>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--border: #334155;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
--red: #ff4d4d;
--gold: #f5c630;
--emerald: #34d399;
--rose: #fb7185;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg-canvas);
color: var(--text-main);
font-family: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
min-height: 100vh;
padding: 1.5rem;
line-height: 1.5;
}
.container { max-width: 1360px; margin: 0 auto; }
header {
background: var(--bg-panel);
border: 1px solid var(--border);
border-left: 4px solid var(--gold);
border-radius: 10px;
padding: 1.2rem 1.5rem;
margin-bottom: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
h1 { font-size: 1.25rem; font-weight: 700; }
.subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn {
text-decoration: none;
background: var(--bg-card);
color: var(--text-main);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.45rem 0.8rem;
font-size: 0.74rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: all 0.15s ease;
}
.btn:hover, .btn.active { border-color: var(--cyan); color: var(--cyan); }
.btn.primary { background: var(--cyan); color: #020617; border-color: var(--cyan); }
.filter-bar {
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: 10px;
padding: 0.9rem 1.2rem;
margin-bottom: 1.3rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.75rem;
}
.pill-row { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.search-input {
background: #090d16;
color: var(--text-main);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.42rem 0.75rem;
font-family: inherit;
font-size: 0.75rem;
width: 260px;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 1.1rem;
}
.gallery-grid.compact {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.thumb-wrap {
background: #070a12;
height: 240px;
display: flex;
align-items: center;
justify-content: center;
padding: 0.5rem;
cursor: pointer;
border-bottom: 1px solid var(--border);
}
.gallery-grid.compact .thumb-wrap { height: 165px; }
.thumb-wrap img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 4px;
}
.card-body {
padding: 0.85rem 1rem;
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.cat-tag {
font-size: 0.66rem;
font-weight: 700;
text-transform: uppercase;
color: var(--gold);
}
.card-title { font-size: 0.84rem; font-weight: 700; color: var(--text-main); }
.card-meta { font-size: 0.68rem; color: var(--text-muted); }
.card-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.3rem; }
.lightbox {
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.94);
z-index: 100;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lb-top {
width: 100%;
max-width: 1280px;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
gap: 1rem;
}
.lb-img-wrap {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
overflow: auto;
max-width: 1280px;
width: 100%;
}
.lb-img-wrap img {
max-width: 100%;
max-height: 78vh;
object-fit: contain;
border: 1px solid var(--border);
border-radius: 6px;
}
footer {
margin-top: 2rem;
text-align: center;
font-size: 0.74rem;
color: var(--text-muted);
border-top: 1px solid var(--border);
padding-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.hs-lemur-credit { color: var(--text-muted); font-size: 0.75rem; }
.hs-heart { color: var(--rose); display: inline-block; padding: 0 2px; }
</style>
</head>
<body>
<div class="container">
<header>
<div>
<h1>MEMETIC ARTIFACT &amp; VISUAL ATLAS GALLERY // HYPERSTITIONSTUD.IO</h1>
<p class="subtitle">Read-Only Specimen Browser Across Pokedex Field Cards, Philosophical &amp; Stand-Up Exegesis, Template Benchmarks &amp; ETI Visual Boards</p>
</div>
<nav class="top-nav">
<a class="btn" id="navHome" href="../index.html">&larr; Portal Home</a>
<a class="btn" id="navLearn" href="../learn/index.html">Learning Track</a>
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph</a>
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator</a>
</nav>
</header>
<section class="filter-bar">
<div class="pill-row" id="categoryPills">
<button class="btn active" data-cat="all" type="button">All Specimens</button>
<button class="btn" data-cat="zoology" type="button">Pokedex &amp; Zoology</button>
<button class="btn" data-cat="atlas_boards" type="button">Tier-List &amp; Atlas Boards</button>
<button class="btn" data-cat="philosophy_comedy" type="button">Stand-Up &amp; Philosophy</button>
<button class="btn" data-cat="classic_demos" type="button">Classic Template Demos</button>
</div>
<div style="display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap;">
<input class="search-input" id="searchInput" type="text" placeholder="Search title, template, or AQ (e.g. Pokedex, 129, Carlin)..." />
<button class="btn" id="densityBtn" type="button">View: Comfortable Grid</button>
</div>
</section>
<main class="gallery-grid" id="galleryGrid"></main>
<footer>
<div>hyperstitionstud.io/gallery &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.0.0)</div>
<div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">&#x2665;</span> by Lemurs.</div>
</footer>
</div>
<!-- Lightbox Modal -->
<div class="lightbox" id="lightboxModal">
<div class="lb-top">
<div>
<strong id="lbTitle" style="font-size:0.95rem;"></strong>
<div id="lbMeta" style="font-size:0.74rem;color:var(--text-muted);margin-top:2px;"></div>
</div>
<div style="display:flex;gap:0.45rem;">
<button class="btn" id="lbPrevBtn" type="button">&larr; Prev</button>
<button class="btn" id="lbNextBtn" type="button">Next &rarr;</button>
<a class="btn primary" id="lbRawLink" href="#" target="_blank">Open Raw PNG</a>
<button class="btn" id="lbCloseBtn" type="button">Close (Esc)</button>
</div>
</div>
<div class="lb-img-wrap">
<img id="lbImage" src="" alt="" />
</div>
</div>
<script src="gallery-data.js"></script>
<script>
(function() {
const isFile = window.location.protocol === "file:";
if (isFile) {
document.getElementById("navGraph").setAttribute("href", "../../../encyclopedia-knowledge-graph/index.html");
document.getElementById("navCalc").setAttribute("href", "../../../haiperdohp-jemaytreeah/index.html");
}
const DATA = (window.HyperstitionStudio && window.HyperstitionStudio.GalleryData) || { items: [] };
const grid = document.getElementById("galleryGrid");
let activeCat = "all";
let query = "";
let filtered = [];
let currentLbIdx = 0;
function resolveImg(it) {
return (isFile && it.img_src_file) ? it.img_src_file : it.img_src;
}
function resolvePdf(it) {
return (isFile && it.pdf_src_file) ? it.pdf_src_file : it.pdf_src;
}
function renderGrid() {
grid.innerHTML = "";
filtered = DATA.items.filter(it => {
if (activeCat !== "all" && it.category !== activeCat) return false;
if (query) {
const q = query.toLowerCase();
return it.title.toLowerCase().includes(q) || it.filename.toLowerCase().includes(q) || it.category_label.toLowerCase().includes(q);
}
return true;
});
filtered.forEach((it, idx) => {
const card = document.createElement("article");
card.className = "card";
const imgUrl = resolveImg(it);
const pdfUrl = resolvePdf(it);
const thumb = document.createElement("div");
thumb.className = "thumb-wrap";
const img = document.createElement("img");
img.loading = "lazy";
img.decoding = "async";
img.src = imgUrl;
img.alt = it.title;
thumb.appendChild(img);
thumb.addEventListener("click", () => openLightbox(idx));
const body = document.createElement("div");
body.className = "card-body";
const tag = document.createElement("div");
tag.className = "cat-tag";
tag.textContent = it.category_label;
const title = document.createElement("div");
title.className = "card-title";
title.textContent = it.title;
const meta = document.createElement("div");
meta.className = "card-meta";
meta.textContent = `${it.width} × ${it.height} px • ${(it.bytes / 1024).toFixed(1)} KB • sha256:${it.sha256_12}`;
const acts = document.createElement("div");
acts.className = "card-actions";
const btnInsp = document.createElement("button");
btnInsp.className = "btn";
btnInsp.type = "button";
btnInsp.textContent = "Inspect Fullscreen";
btnInsp.addEventListener("click", () => openLightbox(idx));
acts.appendChild(btnInsp);
const aRaw = document.createElement("a");
aRaw.className = "btn";
aRaw.href = imgUrl;
aRaw.target = "_blank";
aRaw.textContent = "Raw PNG";
acts.appendChild(aRaw);
if (pdfUrl) {
const aPdf = document.createElement("a");
aPdf.className = "btn primary";
aPdf.href = pdfUrl;
aPdf.target = "_blank";
aPdf.textContent = "Companion PDF";
acts.appendChild(aPdf);
}
body.appendChild(tag);
body.appendChild(title);
body.appendChild(meta);
body.appendChild(acts);
card.appendChild(thumb);
card.appendChild(body);
grid.appendChild(card);
});
}
const lbModal = document.getElementById("lightboxModal");
function openLightbox(idx) {
if (!filtered.length) return;
currentLbIdx = (idx + filtered.length) % filtered.length;
const it = filtered[currentLbIdx];
const imgUrl = resolveImg(it);
document.getElementById("lbTitle").textContent = it.title;
document.getElementById("lbMeta").textContent = `${it.category_label} • ${it.width}×${it.height} px • ${(it.bytes / 1024).toFixed(1)} KB • sha256:${it.sha256_12}`;
document.getElementById("lbImage").src = imgUrl;
document.getElementById("lbRawLink").href = imgUrl;
lbModal.classList.add("open");
}
function closeLightbox() {
lbModal.classList.remove("open");
}
document.getElementById("lbPrevBtn").addEventListener("click", () => openLightbox(currentLbIdx - 1));
document.getElementById("lbNextBtn").addEventListener("click", () => openLightbox(currentLbIdx + 1));
document.getElementById("lbCloseBtn").addEventListener("click", closeLightbox);
window.addEventListener("keydown", e => {
if (!lbModal.classList.contains("open")) return;
if (e.key === "Escape") closeLightbox();
if (e.key === "ArrowLeft") openLightbox(currentLbIdx - 1);
if (e.key === "ArrowRight") openLightbox(currentLbIdx + 1);
});
document.querySelectorAll("#categoryPills button").forEach(btn => {
btn.addEventListener("click", () => {
document.querySelectorAll("#categoryPills button").forEach(b => b.classList.remove("active"));
btn.classList.add("active");
activeCat = btn.getAttribute("data-cat");
renderGrid();
});
});
document.getElementById("searchInput").addEventListener("input", e => {
query = e.target.value.trim();
renderGrid();
});
const densBtn = document.getElementById("densityBtn");
densBtn.addEventListener("click", () => {
grid.classList.toggle("compact");
densBtn.textContent = grid.classList.contains("compact") ? "View: Compact Contact Sheet" : "View: Comfortable Grid";
});
renderGrid();
})();
</script>
</body>
</html>