nexu-io--open-design
1173 行
40 KiB
HTML
1173 行
40 KiB
HTML
<!DOCTYPE html>
|
|
<html lang='en'>
|
|
<head>
|
|
<meta charset='utf-8' />
|
|
<meta name='viewport' content='width=device-width, initial-scale=1' />
|
|
<title>Write a Brand-Story Deck like a Founder Storyteller - Marketing & GTM</title>
|
|
<meta name='description' content='Open Design pitch deck — Vol. 01.' />
|
|
<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=Inter+Tight:wght@600;700;800;900&family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;1,400;1,500;1,600&family=JetBrains+Mono:wght@400;500&display=swap' rel='stylesheet' />
|
|
<style>
|
|
/*
|
|
* Atelier Zero deck stylesheet (open-design-landing-deck seed).
|
|
* Warm paper, ink, single terracotta accent; Playfair italic + Inter Tight display.
|
|
* Tokens and motion language follow design-systems/atelier-zero/DESIGN.md.
|
|
* Single file; the only external resource is the Google Fonts link above.
|
|
*/
|
|
|
|
:root {
|
|
--paper: #efe7d2;
|
|
--ink: #15140f;
|
|
--ink-soft: #2a2620;
|
|
--ink-mute: #5a5448;
|
|
--ink-faint: #6e6856; /* was #8b8676 (2.9:1) - deepened to pass AA on paper */
|
|
--coral: #ed6f5c;
|
|
/* deepened coral for glyphs/text: same terracotta hue, >=4.5:1 on --paper */
|
|
--coral-text: #b3432e;
|
|
--bone: #f7f1de;
|
|
--line: rgba(21, 20, 15, 0.16);
|
|
--line-soft: rgba(21, 20, 15, 0.08);
|
|
--serif: 'Playfair Display', 'Times New Roman', serif;
|
|
--sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
|
|
--body: 'Inter', -apple-system, system-ui, sans-serif;
|
|
--mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
html, body { background: var(--paper); color: var(--ink); }
|
|
body {
|
|
font-family: var(--body);
|
|
font-size: 16px;
|
|
line-height: 1.55;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
/* paper texture overlay across the whole page */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
background-image:
|
|
radial-gradient(circle at 12% 18%, rgba(106, 92, 56, 0.07) 0, transparent 28%),
|
|
radial-gradient(circle at 88% 72%, rgba(106, 92, 56, 0.06) 0, transparent 32%),
|
|
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
|
|
background-size: auto, auto, 240px 240px;
|
|
mix-blend-mode: multiply;
|
|
opacity: 0.92;
|
|
}
|
|
|
|
.lead {
|
|
font-family: var(--body);
|
|
font-size: 16px;
|
|
line-height: 1.55;
|
|
color: var(--ink-soft);
|
|
max-width: 36ch;
|
|
}
|
|
.meta {
|
|
font-family: var(--sans);
|
|
font-size: 10.5px;
|
|
letter-spacing: 0.18em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-faint);
|
|
}
|
|
.roman {
|
|
font-family: var(--serif);
|
|
font-style: italic;
|
|
font-weight: 500;
|
|
color: var(--coral-text);
|
|
}
|
|
|
|
/* buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 22px;
|
|
border-radius: 999px;
|
|
font-family: var(--sans);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
letter-spacing: -0.005em;
|
|
text-decoration: none;
|
|
border: 1px solid transparent;
|
|
transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
.btn-primary {
|
|
background: var(--coral-text);
|
|
color: #fff;
|
|
}
|
|
.btn-primary:hover { transform: translateY(-1px); background: #9e3a27; }
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--ink);
|
|
border-color: rgba(21, 20, 15, 0.2);
|
|
}
|
|
.btn-ghost:hover { background: rgba(21, 20, 15, 0.04); }
|
|
.btn .arrow {
|
|
width: 16px; height: 16px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.btn .arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
|
|
|
|
/* ---------- base host ---------- */
|
|
html, body { width: 100%; height: 100%; overflow: hidden; }
|
|
body { background: var(--paper); color: var(--ink); }
|
|
/* the base stylesheet's body::before paper texture sits at z-index:3
|
|
* which is above our slide content. Re-pin it to behind the deck. */
|
|
body::before { z-index: 0; }
|
|
|
|
/* ---------- deck flex track (horizontal pagination) ---------- */
|
|
#deck {
|
|
position: fixed;
|
|
inset: 0;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
|
|
z-index: 5;
|
|
will-change: transform;
|
|
}
|
|
.slide {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
flex: 0 0 100vw;
|
|
position: relative;
|
|
padding: 64px 80px 80px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.slide-inner {
|
|
max-width: 1360px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: grid;
|
|
align-content: center;
|
|
gap: 28px;
|
|
position: relative;
|
|
min-height: 0;
|
|
}
|
|
/* keep art panels inside the slide footprint */
|
|
.s-cover .art,
|
|
.s-content .art,
|
|
.s-quote .art {
|
|
max-height: calc(100vh - 200px);
|
|
min-height: 0;
|
|
}
|
|
|
|
/* ---------- magazine chrome (top + bottom strips on every slide) ---------- */
|
|
.slide-chrome {
|
|
position: absolute;
|
|
top: 22px; left: 0; right: 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 80px;
|
|
font-family: var(--sans);
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.22em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-faint);
|
|
z-index: 4;
|
|
pointer-events: none;
|
|
}
|
|
.slide-chrome .left,
|
|
.slide-chrome .right {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
.slide-chrome .mark {
|
|
width: 22px; height: 22px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--ink);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: var(--serif);
|
|
font-style: italic;
|
|
font-size: 12px;
|
|
color: var(--ink);
|
|
background: rgba(239, 231, 210, 0.85);
|
|
}
|
|
.slide-chrome .coral { color: var(--coral-text); }
|
|
.slide-foot {
|
|
position: absolute;
|
|
bottom: 22px; left: 0; right: 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 80px;
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
letter-spacing: 0.18em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-faint);
|
|
z-index: 4;
|
|
pointer-events: none;
|
|
}
|
|
.slide-foot .counter {
|
|
font-family: var(--mono);
|
|
letter-spacing: 0.04em;
|
|
color: var(--ink);
|
|
background: rgba(239, 231, 210, 0.85);
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* ---------- progress bar ---------- */
|
|
.deck-progress {
|
|
position: fixed;
|
|
left: 0; right: 0; bottom: 0;
|
|
height: 2px;
|
|
background: var(--line-soft);
|
|
z-index: 30;
|
|
}
|
|
.deck-progress .bar {
|
|
height: 100%;
|
|
background: var(--coral-text);
|
|
width: 0%;
|
|
transition: width 0.6s cubic-bezier(0.77, 0, 0.175, 1);
|
|
}
|
|
|
|
/* ---------- dot nav ---------- */
|
|
#nav {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: 40px;
|
|
transform: translateX(-50%);
|
|
z-index: 30;
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 8px 14px;
|
|
border-radius: 999px;
|
|
background: rgba(239, 231, 210, 0.78);
|
|
border: 1px solid var(--line-soft);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
}
|
|
#nav .dot {
|
|
width: 7px; height: 7px;
|
|
border-radius: 50%;
|
|
background: rgba(21, 20, 15, 0.22);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
#nav .dot:hover {
|
|
background: rgba(21, 20, 15, 0.45);
|
|
transform: scale(1.15);
|
|
}
|
|
#nav .dot.active {
|
|
background: var(--coral-text);
|
|
width: 22px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
#deck { transition: none; }
|
|
.deck-progress .bar { transition: none; }
|
|
}
|
|
|
|
/* ---------- key hint ---------- */
|
|
#hint {
|
|
position: fixed;
|
|
bottom: 36px; right: 28px;
|
|
z-index: 30;
|
|
font-family: var(--mono);
|
|
font-size: 9.5px;
|
|
letter-spacing: 0.22em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
/* ---------- cover entrance (one-shot on load; transform+opacity only) ---------- */
|
|
@keyframes deck-rise {
|
|
from { opacity: 0; transform: translateY(22px); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
.s-cover .copy > * { animation: deck-rise 0.7s cubic-bezier(.16,1,.3,1) both; }
|
|
.s-cover .copy > *:nth-child(2) { animation-delay: 0.06s; }
|
|
.s-cover .copy > *:nth-child(3) { animation-delay: 0.12s; }
|
|
.s-cover .copy > *:nth-child(4) { animation-delay: 0.18s; }
|
|
.s-cover .copy > *:nth-child(5) { animation-delay: 0.24s; }
|
|
.s-cover .art { animation: deck-rise 0.8s cubic-bezier(.16,1,.3,1) 0.12s both; }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.s-cover .copy > *, .s-cover .art { animation: none; }
|
|
}
|
|
|
|
/* ---------- COVER slide ---------- */
|
|
.s-cover .slide-inner {
|
|
grid-template-columns: 1.05fr 0.95fr;
|
|
align-content: center;
|
|
gap: 60px;
|
|
}
|
|
.s-cover .copy { display: flex; flex-direction: column; gap: 22px; }
|
|
.s-cover .eyebrow {
|
|
font-family: var(--sans); font-size: 11px; font-weight: 600;
|
|
letter-spacing: 0.22em; text-transform: uppercase;
|
|
color: var(--coral-text);
|
|
display: inline-flex; align-items: center; gap: 12px;
|
|
}
|
|
.s-cover .eyebrow::before {
|
|
content: ''; width: 18px; height: 1px;
|
|
background: var(--coral-text); display: inline-block;
|
|
}
|
|
.s-cover h1 {
|
|
font-family: var(--sans);
|
|
font-weight: 800;
|
|
font-size: clamp(40px, 5.6vw, 84px);
|
|
line-height: 1.0;
|
|
letter-spacing: -0.028em;
|
|
color: var(--ink);
|
|
margin: 0;
|
|
}
|
|
.s-cover h1 em {
|
|
font-family: var(--serif);
|
|
font-style: italic; font-weight: 500;
|
|
letter-spacing: -0.018em;
|
|
}
|
|
.s-cover h1 .dot { color: var(--coral-text); }
|
|
.s-cover .subtitle {
|
|
font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
font-size: 22px; color: var(--ink-soft); margin-top: -6px;
|
|
}
|
|
.s-cover .lead {
|
|
font-family: var(--body); font-size: 17px;
|
|
color: var(--ink-soft); max-width: 42ch; line-height: 1.6;
|
|
}
|
|
.s-cover .meta {
|
|
margin-top: 28px;
|
|
font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
|
|
color: var(--ink-faint);
|
|
}
|
|
.s-cover .art {
|
|
position: relative; aspect-ratio: 1 / 1; max-width: 600px;
|
|
margin-left: auto; margin-right: 0;
|
|
border: 1px solid var(--line-soft); border-radius: 14px;
|
|
overflow: hidden; background: var(--bone);
|
|
}
|
|
.s-cover .art img { width: 100%; height: 100%; object-fit: contain; }
|
|
.s-cover .art .corner {
|
|
position: absolute;
|
|
width: 22px; height: 22px;
|
|
border-color: var(--ink-faint);
|
|
border-style: solid;
|
|
border-width: 0;
|
|
}
|
|
.s-cover .art .corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
|
|
.s-cover .art .corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
|
|
.s-cover .art .corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
|
|
.s-cover .art .corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
|
|
|
|
/* ---------- SECTION divider slide ---------- */
|
|
.s-section .slide-inner {
|
|
grid-template-columns: 1fr;
|
|
align-content: center;
|
|
text-align: center;
|
|
gap: 28px;
|
|
}
|
|
.s-section .roman {
|
|
font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
font-size: clamp(80px, 10vw, 160px);
|
|
color: var(--coral-text); line-height: 1; letter-spacing: -0.02em;
|
|
}
|
|
.s-section h2 {
|
|
font-family: var(--sans); font-weight: 800;
|
|
font-size: clamp(54px, 7vw, 110px);
|
|
letter-spacing: -0.028em; line-height: 1.0; color: var(--ink);
|
|
max-width: 18ch; margin: 0 auto;
|
|
}
|
|
.s-section h2 em {
|
|
font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
}
|
|
.s-section h2 .dot { color: var(--coral-text); }
|
|
.s-section .lead {
|
|
font-family: var(--body); font-size: 17px;
|
|
color: var(--ink-soft); max-width: 50ch; margin: 0 auto;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ---------- CONTENT slide ---------- */
|
|
.s-content .slide-inner { gap: 48px; }
|
|
.s-content.layout-left .slide-inner { grid-template-columns: 1fr 0.9fr; }
|
|
.s-content.layout-right .slide-inner { grid-template-columns: 0.9fr 1fr; }
|
|
.s-content.layout-right .copy { order: 2; }
|
|
.s-content.layout-right .art { order: 1; }
|
|
.s-content.layout-full .slide-inner { grid-template-columns: 1fr; max-width: 980px; }
|
|
.s-content .copy { display: flex; flex-direction: column; gap: 22px; }
|
|
.s-content .eyebrow {
|
|
font-family: var(--sans); font-size: 11px; font-weight: 600;
|
|
letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral-text);
|
|
display: inline-flex; align-items: center; gap: 12px;
|
|
}
|
|
.s-content .eyebrow::before {
|
|
content: ''; width: 18px; height: 1px;
|
|
background: var(--coral-text); display: inline-block;
|
|
}
|
|
.s-content h2 {
|
|
font-family: var(--sans); font-weight: 800;
|
|
font-size: clamp(40px, 4.8vw, 64px);
|
|
letter-spacing: -0.024em; line-height: 1.05;
|
|
color: var(--ink); margin: 0;
|
|
}
|
|
.s-content h2 em {
|
|
font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
}
|
|
.s-content h2 .dot { color: var(--coral-text); }
|
|
.s-content .body {
|
|
font-family: var(--body); font-size: 16px;
|
|
color: var(--ink-soft); max-width: 56ch; line-height: 1.6;
|
|
}
|
|
.s-content .body code {
|
|
font-family: var(--mono); font-size: 14px;
|
|
background: var(--bone); padding: 1px 6px; border-radius: 4px;
|
|
}
|
|
.s-content ul {
|
|
list-style: none; padding: 0; margin: 0;
|
|
display: flex; flex-direction: column; gap: 12px;
|
|
}
|
|
.s-content li {
|
|
font-family: var(--sans); font-size: 15px;
|
|
color: var(--ink-soft); display: flex; gap: 14px; align-items: flex-start;
|
|
line-height: 1.5;
|
|
}
|
|
.s-content li::before {
|
|
content: ''; width: 12px; height: 1px;
|
|
background: var(--coral-text); margin-top: 11px; flex-shrink: 0;
|
|
}
|
|
.s-content .art {
|
|
position: relative; aspect-ratio: 1 / 1;
|
|
border: 1px solid var(--line-soft); border-radius: 14px;
|
|
overflow: hidden; background: var(--bone);
|
|
}
|
|
.s-content .art img { width: 100%; height: 100%; object-fit: contain; }
|
|
|
|
/* ---------- STATS slide ---------- */
|
|
.s-stats .slide-inner { grid-template-columns: 1fr; gap: 56px; }
|
|
.s-stats .head { display: flex; flex-direction: column; gap: 22px; }
|
|
.s-stats .eyebrow {
|
|
font-family: var(--sans); font-size: 11px; font-weight: 600;
|
|
letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral-text);
|
|
display: inline-flex; align-items: center; gap: 12px;
|
|
}
|
|
.s-stats .eyebrow::before {
|
|
content: ''; width: 18px; height: 1px; background: var(--coral-text); display: inline-block;
|
|
}
|
|
.s-stats h2 {
|
|
font-family: var(--sans); font-weight: 800;
|
|
font-size: clamp(44px, 5vw, 72px);
|
|
letter-spacing: -0.026em; line-height: 1.05; max-width: 18ch; margin: 0;
|
|
}
|
|
.s-stats h2 em {
|
|
font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
}
|
|
.s-stats h2 .dot { color: var(--coral-text); }
|
|
.s-stats .grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 36px;
|
|
border-top: 1px solid var(--line);
|
|
padding-top: 36px;
|
|
}
|
|
.s-stats .stat { display: flex; flex-direction: column; gap: 10px; }
|
|
.s-stats .stat .num {
|
|
font-family: var(--sans); font-weight: 800;
|
|
font-size: clamp(72px, 8vw, 128px); line-height: 1;
|
|
letter-spacing: -0.04em; color: var(--ink);
|
|
font-feature-settings: 'tnum';
|
|
}
|
|
.s-stats .stat .num em {
|
|
color: var(--coral-text); font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
}
|
|
.s-stats .stat .label {
|
|
font-family: var(--sans); font-size: 11.5px;
|
|
letter-spacing: 0.22em; text-transform: uppercase;
|
|
color: var(--ink); font-weight: 700;
|
|
}
|
|
.s-stats .stat .sub {
|
|
font-family: var(--body); font-size: 13px;
|
|
color: var(--ink-mute); max-width: 26ch; line-height: 1.5;
|
|
}
|
|
.s-stats .caption {
|
|
font-family: var(--mono); font-size: 11px;
|
|
color: var(--ink-faint); letter-spacing: 0.04em;
|
|
}
|
|
|
|
/* ---------- QUOTE slide ---------- */
|
|
.s-quote .slide-inner {
|
|
grid-template-columns: 1.4fr 0.8fr;
|
|
gap: 60px; align-items: center;
|
|
}
|
|
.s-quote.no-art .slide-inner { grid-template-columns: 1fr; max-width: 980px; }
|
|
.s-quote blockquote {
|
|
font-family: var(--sans); font-weight: 700;
|
|
font-size: clamp(34px, 4vw, 56px);
|
|
letter-spacing: -0.022em; line-height: 1.18;
|
|
color: var(--ink); margin: 0;
|
|
position: relative;
|
|
}
|
|
.s-quote blockquote em {
|
|
font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
}
|
|
.s-quote .author {
|
|
margin-top: 38px; display: flex; align-items: center; gap: 16px;
|
|
}
|
|
.s-quote .author .avatar {
|
|
width: 48px; height: 48px; border-radius: 50%;
|
|
background: var(--ink); color: var(--paper);
|
|
font-family: var(--serif); font-style: italic; font-size: 22px;
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
}
|
|
.s-quote .author p {
|
|
font-family: var(--sans); font-size: 14px; font-weight: 600;
|
|
color: var(--ink);
|
|
}
|
|
.s-quote .author p span {
|
|
display: block; color: var(--ink-mute); font-weight: 400;
|
|
margin-top: 2px;
|
|
}
|
|
.s-quote .art {
|
|
position: relative; aspect-ratio: 1 / 1;
|
|
border: 1px solid var(--line-soft); border-radius: 14px;
|
|
overflow: hidden; background: var(--bone);
|
|
}
|
|
.s-quote .art img { width: 100%; height: 100%; object-fit: contain; }
|
|
|
|
/* ---------- CTA slide ---------- */
|
|
.s-cta .slide-inner {
|
|
grid-template-columns: 1fr; max-width: 980px;
|
|
gap: 32px; text-align: left;
|
|
}
|
|
.s-cta .eyebrow {
|
|
font-family: var(--sans); font-size: 11px; font-weight: 600;
|
|
letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral-text);
|
|
display: inline-flex; align-items: center; gap: 12px;
|
|
}
|
|
.s-cta .eyebrow::before {
|
|
content: ''; width: 18px; height: 1px;
|
|
background: var(--coral-text); display: inline-block;
|
|
}
|
|
.s-cta h2 {
|
|
font-family: var(--sans); font-weight: 800;
|
|
font-size: clamp(54px, 6.4vw, 96px);
|
|
letter-spacing: -0.028em; line-height: 1.0;
|
|
color: var(--ink); margin: 0;
|
|
}
|
|
.s-cta h2 em {
|
|
font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
}
|
|
.s-cta h2 .dot { color: var(--coral-text); }
|
|
.s-cta .body {
|
|
font-family: var(--body); font-size: 17px;
|
|
color: var(--ink-soft); max-width: 50ch; line-height: 1.6;
|
|
}
|
|
.s-cta .actions {
|
|
display: inline-flex; gap: 14px; margin-top: 12px;
|
|
align-items: center; flex-wrap: wrap;
|
|
}
|
|
|
|
/* ---------- END slide ---------- */
|
|
.s-end .slide-inner {
|
|
grid-template-columns: 1fr;
|
|
align-content: end;
|
|
padding-bottom: 32px;
|
|
text-align: left;
|
|
gap: 16px;
|
|
max-width: none;
|
|
}
|
|
.s-end .word {
|
|
font-family: var(--sans); font-weight: 900;
|
|
font-size: clamp(96px, 16vw, 240px);
|
|
letter-spacing: -0.04em; line-height: 1.0;
|
|
color: var(--ink); white-space: nowrap;
|
|
overflow-x: hidden;
|
|
padding-bottom: 0.18em;
|
|
}
|
|
.s-end .word em {
|
|
font-family: var(--serif); font-style: italic; font-weight: 500;
|
|
color: var(--coral-text);
|
|
}
|
|
.s-end .footer {
|
|
border-top: 1px solid var(--line);
|
|
padding-top: 22px;
|
|
font-family: var(--sans); font-size: 11px;
|
|
letter-spacing: 0.22em; text-transform: uppercase;
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
/* ---------- ESC overview grid ---------- */
|
|
#overview {
|
|
position: fixed; inset: 0;
|
|
z-index: 100;
|
|
background: rgba(239, 231, 210, 0.96);
|
|
backdrop-filter: blur(12px);
|
|
display: none;
|
|
overflow-y: auto;
|
|
padding: 60px 56px;
|
|
}
|
|
#overview .ov-head {
|
|
display: flex; justify-content: space-between; align-items: baseline;
|
|
margin-bottom: 32px;
|
|
font-family: var(--sans); font-size: 11px;
|
|
letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint);
|
|
}
|
|
#overview .ov-head b { color: var(--ink); font-weight: 700; }
|
|
#overview .ov-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 22px;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
}
|
|
#overview .ov-card {
|
|
cursor: pointer;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--line);
|
|
transition: border-color 0.2s, transform 0.2s;
|
|
background: var(--bone);
|
|
}
|
|
#overview .ov-card:hover {
|
|
border-color: var(--coral);
|
|
transform: translateY(-2px);
|
|
}
|
|
#overview .ov-card.active { border-color: var(--coral); border-width: 2px; }
|
|
#overview .ov-thumb {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 10;
|
|
overflow: hidden;
|
|
position: relative;
|
|
pointer-events: none;
|
|
background: var(--paper);
|
|
}
|
|
#overview .ov-thumb .clone {
|
|
width: 100vw; height: 100vh;
|
|
transform: scale(0.18);
|
|
transform-origin: top left;
|
|
position: absolute;
|
|
top: 0; left: 0;
|
|
pointer-events: none;
|
|
}
|
|
#overview .ov-label {
|
|
padding: 8px 12px;
|
|
font-family: var(--mono); font-size: 10px;
|
|
letter-spacing: 0.18em; text-transform: uppercase;
|
|
color: var(--ink-mute);
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
}
|
|
#overview .ov-label b { color: var(--ink); font-weight: 600; }
|
|
|
|
/* ---------- responsive ---------- */
|
|
@media (max-width: 1080px) {
|
|
.slide { padding: 56px 48px 64px; }
|
|
.slide-chrome, .slide-foot { padding: 0 48px; }
|
|
.s-cover .slide-inner,
|
|
.s-content.layout-left .slide-inner,
|
|
.s-content.layout-right .slide-inner,
|
|
.s-quote .slide-inner {
|
|
grid-template-columns: 1fr; gap: 36px;
|
|
}
|
|
.s-content.layout-right .copy { order: 1; }
|
|
.s-content.layout-right .art { order: 2; }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.slide { padding: 36px 24px 56px; }
|
|
.slide-chrome, .slide-foot { padding: 0 24px; font-size: 9px; letter-spacing: 0.18em; }
|
|
#hint { display: none; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id='deck'>
|
|
<section class='slide s-cover' data-slide-kind='cover'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='copy'>
|
|
<span class='eyebrow'>Marketing & GTM · Brand-story deck · Nº 01</span>
|
|
<h1>The story we tell <em>partners,</em> <em>press,</em> and <em>ourselves</em><span class='dot'>.</span></h1>
|
|
<div class='subtitle'>Why Open Design exists, what we believe, and where design is going next.</div>
|
|
<p class='lead'>A founder-voiced brief for partner briefings, press Q&A, and community town halls — built so every claim traces back to a public commit, not a slogan.</p>
|
|
<div class='meta'>Apache-2.0 · Open Source · Local-First · BYOK</div>
|
|
</div>
|
|
<div class='art'>
|
|
<span class='corner tl'></span>
|
|
<span class='corner tr'></span>
|
|
<span class='corner bl'></span>
|
|
<span class='corner br'></span>
|
|
<img src='../open-design-landing/assets/hero.png' alt='' />
|
|
</div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>01 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-section' data-slide-kind='section'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='roman'>I.</div>
|
|
<h2>Why this story matters <em>right</em> now<span class='dot'>.</span></h2>
|
|
<p class='lead'>In April 2026, Claude Design proved an LLM can genuinely design — closed-source, paid, cloud-only. The market is asking who ships the open version first, and that's the opening we're telling.</p>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>02 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-content layout-right' data-slide-kind='content'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='copy'>
|
|
<span class='eyebrow'>Who hears this story · Nº 02</span>
|
|
<h2>Three audiences, <em>one</em> honest thesis<span class='dot'>.</span></h2>
|
|
<p class='body'>Partners evaluate the roadmap and the license, not the slide deck. Press wants one sentence they can quote. Community wants proof the story matches the commit log — so we write one narrative and let each audience pull what it needs.</p>
|
|
<ul><li>Partners — read API stability, Apache-2.0 terms, and plugin roadmap before anything else.</li><li>Press — need a single clear thesis: local, open, agent-native design, stated plainly.</li><li>Community — 300+ contributors who fact-check every claim against the repo.</li></ul>
|
|
</div>
|
|
<div class='art'><img src='../open-design-landing/assets/about.png' alt='' /></div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>03 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-content layout-left' data-slide-kind='content'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='copy'>
|
|
<span class='eyebrow'>What we're actually offering · Nº 03</span>
|
|
<h2>The offer <em>is</em> the belief, not a feature list<span class='dot'>.</span></h2>
|
|
<p class='body'>We don't sell seats or gate the workflow. We open-source the plugins, the design systems, and the agent wiring itself — so the belief and the product are the same claim, provable in one clone.</p>
|
|
<ul><li>Apache-2.0, permanently — no dual-license bait-and-switch later.</li><li>Local-first — your files and your own coding agent, not our cloud.</li><li>BYOK everywhere — Anthropic, OpenAI, Azure, Google, plus 14 media providers.</li><li>217+ plugins, 129 design systems — the belief compounding in public.</li></ul>
|
|
</div>
|
|
<div class='art'><img src='../open-design-landing/assets/capabilities.png' alt='' /></div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>04 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-stats' data-slide-kind='stats'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='head'>
|
|
<span class='eyebrow'>Proof a skeptic can verify · Nº 04</span>
|
|
<h2>The numbers a <em>partner's</em> diligence team checks first<span class='dot'>.</span></h2>
|
|
</div>
|
|
<div class='grid'>
|
|
<div class='stat'>
|
|
<div class='num'>60K+</div>
|
|
<div class='label'>GitHub Stars</div>
|
|
<div class='sub'>earned post-launch, zero paid growth</div>
|
|
</div>
|
|
<div class='stat'>
|
|
<div class='num'>217+</div>
|
|
<div class='label'>Plugins</div>
|
|
<div class='sub'>shipped by contributors, not a roadmap slide</div>
|
|
</div>
|
|
<div class='stat'>
|
|
<div class='num'>129</div>
|
|
<div class='label'>Design Systems</div>
|
|
<div class='sub'>imported from real brands in production</div>
|
|
</div>
|
|
<div class='stat'>
|
|
<div class='num'>300+</div>
|
|
<div class='label'>Contributors</div>
|
|
<div class='sub'>commits, not marketing headcount</div>
|
|
</div>
|
|
</div>
|
|
<div class='caption'>Every figure links to a public commit — that's the whole pitch to press.</div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>05 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-section' data-slide-kind='section'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='roman'>II.</div>
|
|
<h2>Where the story <em>travels</em> from here<span class='dot'>.</span></h2>
|
|
<p class='lead'>A brand story only compounds if it moves through the right channels at the right cadence — so the next two slides are the distribution plan, dated.</p>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>06 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-content layout-right' data-slide-kind='content'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='copy'>
|
|
<span class='eyebrow'>Distribution channels · Nº 05</span>
|
|
<h2>Five channels, <em>the</em> same thesis every time<span class='dot'>.</span></h2>
|
|
<p class='body'>Each channel restates the identical belief in its native format, so a partner reading the README and a journalist reading the press note hear the same founder voice.</p>
|
|
<ul><li>01 · GitHub README + release notes — the thesis, restated at every ship.</li><li>02 · Discord town halls — monthly, founder-hosted, unscripted Q&A.</li><li>03 · Press briefings — one-page thesis doc, sent before any embargo.</li><li>04 · Partner integration guides — the belief translated into API terms.</li><li>05 · Community showcase reposts — proof pulled from real user output.</li></ul>
|
|
</div>
|
|
<div class='art'><img src='../open-design-landing/assets/method-1.png' alt='' /></div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>07 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-content layout-left' data-slide-kind='content'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='copy'>
|
|
<span class='eyebrow'>Launch calendar · Nº 06</span>
|
|
<h2>The next <em>90 days,</em> dated and measured<span class='dot'>.</span></h2>
|
|
<p class='body'>Every beat on this calendar carries a growth number, so a creative choice is never separated from what it's supposed to move.</p>
|
|
<ul><li>Week 1 — press embargo lifts with the founder thesis piece; target 5K referral visits.</li><li>Week 3 — partner integration guide ships; target 10 signed pilot partners.</li><li>Week 6 — first Discord town hall; target 1,200 live listeners, 300 new members.</li><li>Week 12 — community showcase recap; target 15% lift in plugin installs.</li></ul>
|
|
</div>
|
|
<div class='art'><img src='../open-design-landing/assets/work-1.png' alt='' /></div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>08 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-quote' data-slide-kind='quote'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div>
|
|
<blockquote>“Their brand story held up under our own diligence — the Apache-2.0 license, the local-first claim, the plugin count. Every line <em>checked out</em>.”</blockquote>
|
|
<div class='author'>
|
|
<span class='avatar'>p</span>
|
|
<p>Priya Raman<span>Partnerships Lead · Fenwick Studio</span></p>
|
|
</div>
|
|
</div>
|
|
<div class='art'><img src='../open-design-landing/assets/testimonial.png' alt='' /></div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>09 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-cta' data-slide-kind='cta'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<span class='eyebrow'>For partners and press · Nº 07</span>
|
|
<h2>One story, <em>provable</em> at every claim<span class='dot'>.</span></h2>
|
|
<p class='body'>Download Open Design and verify the story yourself, or clone the repo to check the license, the plugin count, and the commit history — same numbers we just showed you.</p>
|
|
<div class='actions'>
|
|
<a class='btn btn-primary' href='https://open-design.ai/' target='_blank' rel='noreferrer noopener'>
|
|
Download Open Design
|
|
<span class='arrow'><svg viewBox='0 0 24 24'><path d='M5 19L19 5M19 5H8M19 5v11'/></svg></span>
|
|
</a>
|
|
<a class='btn btn-ghost' href='https://github.com/nexu-io/open-design' target='_blank' rel='noreferrer noopener'>
|
|
View the GitHub repo
|
|
<span class='arrow'><svg viewBox='0 0 24 24'><path d='M5 19L19 5M19 5H8M19 5v11'/></svg></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>10 / 11</span>
|
|
</div>
|
|
</section>
|
|
<section class='slide s-end' data-slide-kind='end'>
|
|
<div class='slide-chrome'>
|
|
<div class='left'>
|
|
<span class='mark'>Ø</span>
|
|
<span><b>Open Design</b> · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
<div class='right'>
|
|
<span class='coral'>•</span>
|
|
<span>Open Design · Vol. 01 / Issue Nº 26</span>
|
|
</div>
|
|
</div>
|
|
<div class='slide-inner'>
|
|
<div class='word'>Open <em>Design</em>.</div>
|
|
<div class='footer'>Apache-2.0 · github.com/nexu-io/open-design · discord.gg/mHAjSMV6gz · x.com/nexudotio</div>
|
|
</div>
|
|
<div class='slide-foot'>
|
|
<span>MMXXVI · Open / Local / Agent-native</span>
|
|
<span class='counter'>11 / 11</span>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div id='nav'></div>
|
|
<div id='hint'>← / → · esc · swipe</div>
|
|
<div class='deck-progress'><div class='bar'></div></div>
|
|
|
|
<script>
|
|
(function () {
|
|
var deck = document.getElementById('deck');
|
|
if (!deck) return;
|
|
var slides = Array.prototype.slice.call(deck.querySelectorAll('.slide'));
|
|
var nav = document.getElementById('nav');
|
|
var bar = document.querySelector('.deck-progress .bar');
|
|
var total = slides.length;
|
|
var idx = 0, lock = false;
|
|
|
|
/* match deck width to slide count so transform translateX works */
|
|
deck.style.width = (total * 100) + 'vw';
|
|
|
|
/* build dot nav */
|
|
slides.forEach(function (s, i) {
|
|
var b = document.createElement('button');
|
|
b.className = 'dot';
|
|
b.dataset.i = i;
|
|
b.setAttribute('aria-label', 'Slide ' + (i + 1));
|
|
b.onclick = function () { go(i); };
|
|
nav.appendChild(b);
|
|
});
|
|
|
|
/* Unthrottled state update. The interaction throttle (`lock`) only
|
|
guards wheel/key/touch so a fast input burst doesn't overshoot the
|
|
transition; host- and observer-driven sync must bypass it, otherwise
|
|
a host message or restoreInitialSlide that lands inside the 700ms
|
|
window after go(0) silently no-ops and the deck stays on slide 1
|
|
while the host counter advances. */
|
|
function applySlide(n) {
|
|
idx = Math.max(0, Math.min(total - 1, n));
|
|
deck.style.transform = 'translateX(' + (-idx * 100) + 'vw)';
|
|
/* load-bearing: .slide.active is read by Open Design's host bridge
|
|
(src/runtime/srcdoc.ts findActiveByClass) to drive the slide
|
|
counter. No CSS targets it — do not remove. */
|
|
slides.forEach(function (s, i) { s.classList.toggle('active', i === idx); });
|
|
nav.querySelectorAll('.dot').forEach(function (d, i) {
|
|
d.classList.toggle('active', i === idx);
|
|
});
|
|
if (bar) bar.style.width = (((idx + 1) / total) * 100) + '%';
|
|
}
|
|
|
|
function go(n) {
|
|
if (lock) return;
|
|
applySlide(n);
|
|
lock = true;
|
|
setTimeout(function () { lock = false; }, 700);
|
|
}
|
|
|
|
/* ESC overview */
|
|
var overviewOn = false;
|
|
var ov = document.createElement('div');
|
|
ov.id = 'overview';
|
|
document.body.appendChild(ov);
|
|
|
|
function buildOverview() {
|
|
ov.innerHTML = '';
|
|
var head = document.createElement('div');
|
|
head.className = 'ov-head';
|
|
head.innerHTML = '<span><b>Slide overview</b> · esc to close</span><span>' +
|
|
String(idx + 1).padStart(2, '0') + ' / ' + String(total).padStart(2, '0') + '</span>';
|
|
ov.appendChild(head);
|
|
var grid = document.createElement('div');
|
|
grid.className = 'ov-grid';
|
|
slides.forEach(function (s, i) {
|
|
var card = document.createElement('div');
|
|
card.className = 'ov-card' + (i === idx ? ' active' : '');
|
|
var thumb = document.createElement('div');
|
|
thumb.className = 'ov-thumb';
|
|
var clone = s.cloneNode(true);
|
|
clone.className = clone.className + ' clone';
|
|
clone.style.transform = 'scale(0.18)';
|
|
thumb.appendChild(clone);
|
|
var label = document.createElement('div');
|
|
label.className = 'ov-label';
|
|
label.innerHTML = '<b>' + String(i + 1).padStart(2, '0') + '</b><span>' +
|
|
(s.dataset.slideKind || '') + '</span>';
|
|
card.appendChild(thumb);
|
|
card.appendChild(label);
|
|
card.onclick = function () { toggleOverview(); go(i); };
|
|
grid.appendChild(card);
|
|
});
|
|
ov.appendChild(grid);
|
|
}
|
|
|
|
function toggleOverview() {
|
|
overviewOn = !overviewOn;
|
|
if (overviewOn) { buildOverview(); ov.style.display = 'block'; }
|
|
else { ov.style.display = 'none'; }
|
|
}
|
|
|
|
/* keyboard nav */
|
|
addEventListener('keydown', function (e) {
|
|
if (e.key === 'Escape') { e.preventDefault(); toggleOverview(); return; }
|
|
if (overviewOn) return;
|
|
if (e.key === 'ArrowRight' || e.key === 'PageDown' || e.key === ' ' || e.key === 'ArrowDown') {
|
|
e.preventDefault(); go(idx + 1);
|
|
} else if (e.key === 'ArrowLeft' || e.key === 'PageUp' || e.key === 'ArrowUp') {
|
|
e.preventDefault(); go(idx - 1);
|
|
} else if (e.key === 'Home') {
|
|
e.preventDefault(); go(0);
|
|
} else if (e.key === 'End') {
|
|
e.preventDefault(); go(total - 1);
|
|
}
|
|
});
|
|
|
|
/* wheel nav (horizontal + vertical accumulation) */
|
|
var wheelTO = null, wheelAcc = 0;
|
|
addEventListener('wheel', function (e) {
|
|
if (overviewOn) return;
|
|
wheelAcc += e.deltaY + e.deltaX;
|
|
if (Math.abs(wheelAcc) > 60) {
|
|
go(idx + (wheelAcc > 0 ? 1 : -1));
|
|
wheelAcc = 0;
|
|
}
|
|
clearTimeout(wheelTO);
|
|
wheelTO = setTimeout(function () { wheelAcc = 0; }, 150);
|
|
}, { passive: true });
|
|
|
|
/* touch nav */
|
|
var tx = 0, ty = 0;
|
|
addEventListener('touchstart', function (e) {
|
|
tx = e.touches[0].clientX; ty = e.touches[0].clientY;
|
|
}, { passive: true });
|
|
addEventListener('touchend', function (e) {
|
|
if (overviewOn) return;
|
|
var dx = e.changedTouches[0].clientX - tx;
|
|
var dy = e.changedTouches[0].clientY - ty;
|
|
if (Math.abs(dx) > 50 && Math.abs(dx) > Math.abs(dy)) {
|
|
go(idx + (dx < 0 ? 1 : -1));
|
|
}
|
|
}, { passive: true });
|
|
|
|
/* Host-driven navigation: Open Design's host bridge classifies this deck
|
|
as class-driven (because go() toggles .slide.active) but the visible
|
|
slide is moved by deck.style.transform, which the bridge can't drive.
|
|
Two cooperating handlers keep the deck in sync with the host:
|
|
1. An od:slide message listener routes host nav through go() and
|
|
calls stopImmediatePropagation() so the bridge's own listener
|
|
(registered after this one) doesn't run a second time and
|
|
overshoot by re-reading the freshly-toggled .active class.
|
|
2. A MutationObserver on each slide watches .active and pulls the
|
|
deck transform onto the active index for class changes that
|
|
don't come through a message — chiefly the bridge's
|
|
restoreInitialSlide path, which calls setActive() directly. */
|
|
addEventListener('message', function (e) {
|
|
var data = e && e.data;
|
|
if (!data || data.type !== 'od:slide') return;
|
|
if (typeof e.stopImmediatePropagation === 'function') e.stopImmediatePropagation();
|
|
if (data.action === 'go' && typeof data.index === 'number') applySlide(data.index);
|
|
else if (data.action === 'next') applySlide(idx + 1);
|
|
else if (data.action === 'prev') applySlide(idx - 1);
|
|
else if (data.action === 'first') applySlide(0);
|
|
else if (data.action === 'last') applySlide(total - 1);
|
|
});
|
|
|
|
if (typeof MutationObserver !== 'undefined') {
|
|
var syncFromActiveClass = function () {
|
|
for (var i = 0; i < slides.length; i++) {
|
|
if (slides[i].classList && slides[i].classList.contains('active') && i !== idx) {
|
|
applySlide(i);
|
|
return;
|
|
}
|
|
}
|
|
};
|
|
var mo = new MutationObserver(syncFromActiveClass);
|
|
slides.forEach(function (s) { mo.observe(s, { attributes: true, attributeFilter: ['class'] }); });
|
|
}
|
|
|
|
applySlide(0);
|
|
})();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|