diff --git a/plugins/voyage/playground/voyage-playground.html b/plugins/voyage/playground/voyage-playground.html index 5e80bff..6ce0e40 100644 --- a/plugins/voyage/playground/voyage-playground.html +++ b/plugins/voyage/playground/voyage-playground.html @@ -826,6 +826,30 @@ playground first-run shows a complete round-trip-able artifact. ''; } + // ---- v4.3 Step 9 — renderPageShell -------------------------------- + // Universal page-header for dashboard + artifact-detail flater. + // Returns an HTML string wrapping body content with DS Tier 3 + // page__eyebrow / page__title / page__lede / page__meta typography. + function renderPageShell(opts, bodyHtml) { + var o = opts || {}; + var parts = ['
']; + if (o.eyebrow) { + parts.push('
' + escapeHtml(o.eyebrow) + '
'); + } + if (o.title) { + parts.push('

' + escapeHtml(o.title) + '

'); + } + if (o.lede) { + parts.push('

' + escapeHtml(o.lede) + '

'); + } + if (o.meta) { + parts.push('
' + escapeHtml(o.meta) + '
'); + } + parts.push('
' + (bodyHtml || '') + '
'); + parts.push('
'); + return parts.join(''); + } + // ---- DOM wiring ---------------------------------------------------- function $(id) { return document.getElementById(id); }