Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
feat(website): choreograph the homepage first fold
tt-a1i666880bfe39e
diff --git a/website/src/pages/index.astro b/website/src/pages/index.astroindex cbce81b1..c2fd5c8d 100644--- a/website/src/pages/index.astro+++ b/website/src/pages/index.astro@@ -16,14 +16,14 @@ const installCommand = 'npx -y skills add tt-a1i/archify --skill archify --agent<!-- HERO — centered statement; the live artifact window peeks in below the fold line --><section class="hero" data-proof-aperture="first-fold">- <div class="hero-aura" aria-hidden="true"><div class="hero-horizon"></div></div>+ <div class="hero-aura" aria-hidden="true"><div class="hero-spot"></div><div class="hero-horizon"></div></div><div class="hero-copy"><a class="hero-eyebrow fade-up" href="https://github.com/tt-a1i/archify/blob/main/CHANGELOG.md" target="_blank" rel="noopener"><span class="eyebrow-tag">v{version}</span><span data-i18n="hero-badge">Stable Agent Skill · see what's new</span><span class="eyebrow-arrow" aria-hidden="true">→</span></a>- <h1 class="fade-up d1" data-i18n="hero-h1">Talk through your system.<br>Get a map <em>you can trust.</em></h1>+ <h1 data-i18n="hero-h1"><span class="l">Talk through your system.</span><span class="l">Get a map <em>you can trust.</em></span></h1><p class="hero-sub fade-up d2" data-i18n="hero-sub">Describe a system in chat, or point your agent at a repo. Archify returns one self-contained, explorable HTML diagram — validated before it ships.</p><div class="hero-actions fade-up d3"><div class="cmd-chip">diff --git a/website/src/scripts/index.js b/website/src/scripts/index.jsindex 9e3d4976..ca4b0875 100644--- a/website/src/scripts/index.js+++ b/website/src/scripts/index.js@@ -6,7 +6,7 @@en: {'nav-guide':'Guide','nav-gallery':'Proof Lab','nav-start':'Start','nav-community':'Community','nav-install':'Install Skill','hero-badge':"Stable Agent Skill · see what's new",'hero-works':'Works with',- 'hero-h1':'Talk through your system.<br>Get a map <em>you can trust.</em>',+ 'hero-h1':'<span class="l">Talk through your system.</span><span class="l">Get a map <em>you can trust.</em></span>','hero-sub':'Describe a system in chat, or point your agent at a repo. Archify returns one self-contained, explorable HTML diagram — validated before it ships.','hero-cta':'Get started','hero-stars':'stars on GitHub','copy':'Copy','copied':'Copied','demo-watch':'Watch the 35s demo','demo-title':'Archify 35-second demo','demo-close':'Close demo',@@ -71,7 +71,7 @@zh: {'nav-guide':'场景指南','nav-gallery':'验证作品集','nav-start':'快速上手','nav-community':'社区包','nav-install':'安装技能','hero-badge':'稳定版 Agent 技能 · 查看更新','hero-works':'支持',- 'hero-h1':'把系统讲清楚,<br>得到<em>可信的架构图。</em>',+ 'hero-h1':'<span class="l">把系统讲清楚,</span><span class="l">得到<em>可信的架构图。</em></span>','hero-sub':'在对话里描述系统,或让 Agent 直接读代码仓库。Archify 交付一个独立、可探索的 HTML 技术图——交付前已自动校验。','hero-cta':'开始使用','hero-stars':'GitHub Star','copy':'复制','copied':'已复制','demo-watch':'观看 35 秒演示','demo-title':'Archify 35 秒演示','demo-close':'关闭演示',@@ -135,6 +135,11 @@}};+ /* The MAP beat clears focus/lens with a fragment that names no element: an+ empty '#' would make the browser scroll the indicated "top of document"+ into view, which in a same-origin frame also scrolls this page. */+ const MAP = '#overview';+/* Each proof carries four camera beats (focus → upstream → lens → map) thatthe pinned stage applies by replacing the artifact's hash; the vieweranimates its own camera on hashchange. */@@ -142,7 +147,7 @@signal: {artifact: 'gallery/artifacts/agent-tool-call.workflow.html',hash: '#focus=planner&reach=downstream',- beats: ['#', '#focus=planner&reach=downstream', '#focus=approval&reach=upstream', '#lens=security~database'],+ beats: [MAP, '#focus=planner&reach=downstream', '#focus=approval&reach=upstream', '#lens=security~database'],iframeTitle: { en: 'Agent Tool Call live Archify proof', zh: '智能体工具调用 Archify 实时成品' },name: { en: 'Agent Tool Call', zh: '智能体工具调用' },meta: { en: 'Workflow · Signal Flow · 12 nodes · 11 edges', zh: '工作流 · Signal Flow · 12 节点 · 11 条关系' },@@ -151,7 +156,7 @@blueprint: {artifact: 'gallery/artifacts/production-deployment.architecture.html',hash: '#lens=backend~database',- beats: ['#', '#focus=gateway&reach=downstream', '#focus=postgres&reach=upstream', '#lens=backend~database'],+ beats: [MAP, '#focus=gateway&reach=downstream', '#focus=postgres&reach=upstream', '#lens=backend~database'],iframeTitle: { en: 'Production Deployment live Archify proof', zh: '生产部署架构 Archify 实时成品' },name: { en: 'Production Deployment', zh: '生产部署' },meta: { en: 'Architecture · Blueprint · 12 nodes · 12 edges', zh: '架构图 · Blueprint · 12 节点 · 12 条关系' },@@ -161,7 +166,7 @@artifact: 'gallery/artifacts/cache-miss.sequence.html',hash: '#route=web~db',embedHash: '#focus=web&reach=downstream',- beats: ['#', '#focus=web&reach=downstream', '#focus=db&reach=upstream', '#lens=database~security'],+ beats: [MAP, '#focus=web&reach=downstream', '#focus=db&reach=upstream', '#lens=database~security'],iframeTitle: { en: 'Cache Miss Request live Archify proof', zh: '缓存未命中请求 Archify 实时成品' },name: { en: 'Cache Miss', zh: '缓存未命中' },meta: { en: 'Sequence · Classic · 7 participants · 12 messages', zh: '时序图 · Classic · 7 个参与者 · 12 条消息' },@@ -205,7 +210,7 @@beatTicks.forEach((tick, i) => tick.setAttribute('aria-pressed', String(i === next)));$('beat-title').textContent = LANGS[lang][`beat-${next}-t`];$('beat-body').textContent = LANGS[lang][`beat-${next}-b`];- addressHash.textContent = hash === '#' ? '' : hash;+ addressHash.textContent = hash === MAP ? '' : hash;if (changed) {beatCard.classList.remove('is-swapping'); void beatCard.offsetWidth; beatCard.classList.add('is-swapping');addressHash.classList.remove('is-flash'); void addressHash.offsetWidth; addressHash.classList.add('is-flash');@@ -324,6 +329,25 @@window.addEventListener('resize', onScroll);applyScroll();+ /* ══ Hero pointer spotlight — fine pointers only, never under reduced motion ══ */+ const hero = document.querySelector('.hero');+ if (window.matchMedia('(hover: hover) and (pointer: fine)').matches && !reducedMotion.matches) {+ let spotTick = false, spotX = 0, spotY = 0;+ hero.addEventListener('pointermove', event => {+ spotX = event.clientX; spotY = event.clientY;+ if (spotTick) return;+ spotTick = true;+ requestAnimationFrame(() => {+ spotTick = false;+ const rect = hero.getBoundingClientRect();+ hero.style.setProperty('--mx', `${spotX - rect.left}px`);+ hero.style.setProperty('--my', `${spotY - rect.top}px`);+ hero.classList.add('is-pointing');+ });+ });+ hero.addEventListener('pointerleave', () => hero.classList.remove('is-pointing'));+ }+/* ══ Diagram types — index list drives the preview plate ══ */const typeItems = [...document.querySelectorAll('.type-item')];const typeImgs = [...document.querySelectorAll('.type-plate img')];diff --git a/website/src/styles/index.css b/website/src/styles/index.cssindex 2aba7542..b6b9e134 100644--- a/website/src/styles/index.css+++ b/website/src/styles/index.css@@ -53,10 +53,27 @@background-size:64px 64px; background-position:center top;-webkit-mask-image:radial-gradient(ellipse 60% 75% at 50% 30%, #000 10%, transparent 75%);mask-image:radial-gradient(ellipse 60% 75% at 50% 30%, #000 10%, transparent 75%); }- /* horizon — a lit planet edge the artifact window rises from */+ /* pointer spotlight — the drafting grid lights up under the cursor */+ .hero-spot { position:absolute; inset:0; opacity:0; transition:opacity .6s var(--ease-out);+ background-image:linear-gradient(rgba(255,170,120,.3) 1px,transparent 1px),linear-gradient(90deg,rgba(255,170,120,.3) 1px,transparent 1px);+ background-size:64px 64px; background-position:center top;+ -webkit-mask-image:radial-gradient(320px circle at var(--mx,50%) var(--my,40%), #000, transparent 70%);+ mask-image:radial-gradient(320px circle at var(--mx,50%) var(--my,40%), #000, transparent 70%); }+ .hero.is-pointing .hero-spot { opacity:1; }+ /* horizon — a lit planet edge the artifact window rises from; a glint travels along it */+ @property --sweep { syntax:'<angle>'; inherits:false; initial-value:-24deg; }.hero-horizon { position:absolute; left:50%; bottom:calc(1.25rem - 130vw); width:160vw; height:130vw; transform:translateX(-50%); border-radius:50%;background:radial-gradient(closest-side, #07080a 97%, transparent 100%);- box-shadow:0 -1px 0 0 rgba(255,170,120,.55), 0 -18px 60px -10px rgba(255,106,43,.55), 0 -80px 160px -20px rgba(255,106,43,.28), inset 0 30px 60px -30px rgba(255,106,43,.35); }+ box-shadow:0 -1px 0 0 rgba(255,170,120,.55), 0 -18px 60px -10px rgba(255,106,43,.55), 0 -80px 160px -20px rgba(255,106,43,.28), inset 0 30px 60px -30px rgba(255,106,43,.35);+ animation:horizonRise 2.2s var(--ease-out) .1s both; }+ .hero-horizon::after { content:''; position:absolute; inset:-1px; border-radius:50%; pointer-events:none;+ background:conic-gradient(from var(--sweep), rgba(255,236,220,0) 0deg, rgba(255,214,190,.55) 4deg, #fff 7deg, rgba(255,236,220,0) 8deg, transparent 360deg);+ -webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 2px), transparent 100%);+ mask-image:radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 2px), transparent 100%);+ filter:drop-shadow(0 0 10px rgba(255,170,120,1)) drop-shadow(0 0 24px rgba(255,106,43,.8));+ animation:glint 7s cubic-bezier(.45,0,.25,1) 2.4s infinite; }+ @keyframes horizonRise { from { translate:0 16vh; opacity:0; } 40% { opacity:1; } }+ @keyframes glint { 0% { --sweep:-26deg; opacity:0; } 10% { opacity:1; } 60% { --sweep:20deg; opacity:1; } 68%,100% { --sweep:22deg; opacity:0; } }.hero-copy { position:relative; max-width:1200px; display:flex; flex-direction:column; align-items:center; text-align:center; }.hero-eyebrow { display:inline-flex; align-items:center; gap:.65rem; padding:.3rem .85rem .3rem .3rem; margin-bottom:1.75rem; border:1px solid var(--line-hi); border-radius:999px; background:rgba(238,241,243,.03); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); color:var(--text-2); font-size:.8125rem; font-weight:450; text-decoration:none; white-space:nowrap; transition:border-color .2s var(--ease-out),color .2s var(--ease-out); }@@ -67,12 +84,18 @@.pulse-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(255,106,43,.6); animation:pulse 2.4s ease-in-out infinite; }@keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(255,106,43,.55); } 60% { box-shadow:0 0 0 6px rgba(255,106,43,0); } }- .hero h1 { font-family:var(--font-grot); font-size:clamp(2.75rem,min(5.9vw,9.4vh),5.75rem); font-weight:500; line-height:.98; letter-spacing:-.045em; color:var(--text); text-wrap:balance;- background:linear-gradient(180deg,#fff 0%,#fff 70%,rgba(238,241,243,.8) 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }+ .hero h1 { font-family:var(--font-grot); font-size:clamp(2.75rem,min(5.9vw,9.4vh),5.75rem); font-weight:500; line-height:.98; letter-spacing:-.045em; color:var(--text); text-wrap:balance; background:none; -webkit-text-fill-color:currentColor; }+ /* each line is its own gradient-clipped block so it can be masked in independently */+ .hero h1 .l { display:block; padding-bottom:.06em; background:linear-gradient(180deg,#fff 0%,#fff 62%,rgba(238,241,243,.78) 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;+ animation:lineIn 1.1s var(--ease-out) .15s both; }+ .hero h1 .l + .l { animation-delay:.32s; }+ @keyframes lineIn { from { clip-path:inset(0 -10% 100% -10%); translate:0 .4em; } to { clip-path:inset(-30% -10% -40% -10%); translate:0 0; } }.hero h1 em { font-family:var(--font-display); font-style:italic; font-optical-sizing:auto; font-weight:400; letter-spacing:-.03em; padding-right:.06em;background:linear-gradient(100deg,#ffb38a 0%,var(--accent) 45%,#ff3d6e 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }- .hero h1 em { white-space:nowrap; }+ .hero h1 em { white-space:nowrap; padding-left:.12em; margin-left:-.12em; }html[lang="zh-CN"] .hero h1 { letter-spacing:-.02em; line-height:1.08; }+ /* CJK has no true italic — use upright heavy strokes for the accent instead of a synthesized slant */+ html[lang="zh-CN"] .hero h1 em, html[lang="zh-CN"] .section-heading em, html[lang="zh-CN"] .cta-h em { font-family:var(--font-grot); font-style:normal; font-weight:600; letter-spacing:-.01em; }.hero-sub { max-width:64ch; margin-top:1.5rem; font-size:1.0625rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }.hero-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.75rem; margin-top:2.25rem; }@@ -101,6 +124,8 @@.stage-window { position:relative; width:min(100%,1320px); height:100%; display:flex; flex-direction:column; border-radius:18px; overflow:hidden; background:#0a0d12; border:1px solid rgba(238,241,243,.12);box-shadow:0 0 0 1px rgba(0,0,0,.6), 0 50px 120px -20px rgba(0,0,0,.8), 0 0 140px -30px rgba(255,106,43,calc(.18 + .14 * var(--enter)));transform-origin:50% 0; transform:rotateX(calc((1 - var(--enter)) * 24deg)) scale(calc(.86 + .14 * var(--enter))) translateY(calc((1 - var(--enter)) * 2rem)); will-change:transform; }+ .stage-window { animation:windowRise 1.5s var(--ease-out) .6s both; }+ @keyframes windowRise { from { translate:0 110px; opacity:0; } }.stage-window::after { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 18%); }.window-bar { flex:none; position:relative; z-index:3; display:flex; align-items:center; gap:1rem; height:52px; padding:0 .75rem 0 1.1rem; border-bottom:1px solid var(--line); background:rgba(16,19,24,.92); }@@ -320,7 +345,9 @@html { scroll-behavior:auto; }.fade-up { opacity:1!important; transform:none!important; transition:none!important; filter:none!important; }.pulse-dot,.proof-live::before { animation:none!important; }- .stage-window { transform:none!important; }+ .stage-window { transform:none!important; animation:none; }+ .hero h1 .l, .hero-horizon, .hero-horizon::after { animation:none; }+ .hero-spot { display:none; }.type-plate img, .type-detail, .demo-dialog { transition:none; }.btn:hover, .legend-chip:hover .legend-node, .export:hover .export-shot img { transform:none; }.beat-card.is-swapping .beat-title, .beat-card.is-swapping .beat-body, .window-address b.is-flash { animation:none; }diff --git a/website/src/styles/site.css b/website/src/styles/site.cssindex e367e6f5..5c888edd 100644--- a/website/src/styles/site.css+++ b/website/src/styles/site.css@@ -42,6 +42,7 @@/* page titles — grotesk statement, Fraunces italic accent */h1 { background:linear-gradient(180deg,#fff 0%,#fff 55%,rgba(238,241,243,.64) 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }+ html[lang="zh-CN"] h1 em { font-family:inherit!important; font-style:normal!important; font-weight:600!important; }h1 em { padding-right:.06em; background:linear-gradient(100deg,#ffb38a 0%,var(--accent) 45%,#ff3d6e 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }/* ══════════════════════════════════════