Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

Polish the homepage arrival, page chapter, facts and share card

tt-a1ifaea2aa69933
diff --git a/docs/assets/archify-social-preview.png b/docs/assets/archify-social-preview.png
index 3eb5385b..a5355f00 100644
Binary files a/docs/assets/archify-social-preview.png and b/docs/assets/archify-social-preview.png differ
diff --git a/website/src/components/ProductFacts.astro b/website/src/components/ProductFacts.astro
index 93abcd63..aab29c7e 100644
--- a/website/src/components/ProductFacts.astro
+++ b/website/src/components/ProductFacts.astro
@@ -39,12 +39,22 @@ const facts = [
</div>
</section>
<style>
- .product-facts { padding:80px 0; border-top:1px solid var(--line); }
- .facts-heading h2 { margin:12px 0 32px; font-size:clamp(28px,3vw,40px); line-height:1.2; }
- .facts-grid article:last-child:nth-child(odd) { grid-column:1 / -1; }
- .facts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 48px; }
- h3 { font-size:17px; margin:0 0 10px; } p { font-size:14px; line-height:1.8; color:var(--text-2); }
- .facts-exports { margin-top:28px; } .facts-links { display:flex; flex-wrap:wrap; gap:14px 24px; margin-top:20px; font-size:13px; }
- .facts-links a { color:var(--hue-blue); text-decoration:none; } .facts-channel { font-size:12px; margin-top:20px; }
- @media(max-width:680px) { .facts-grid { grid-template-columns:1fr; gap:24px; } .product-facts { padding:56px 0; } }
+ /* a sticky heading beside question-and-answer rows, in the homepage's section language */
+ .product-facts { padding:8rem 0 2rem; }
+ .product-facts .container { display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:0 4rem; }
+ .facts-heading { position:sticky; top:calc(var(--nav-h) + 2rem); align-self:start; grid-row:1 / span 4; }
+ .section-eyebrow { font-family:var(--font-mono); font-size:.6875rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--accent-text); }
+ .facts-heading h2 { margin:1.1rem 0 0; font-family:var(--font-grot); font-size:clamp(2rem,3.4vw,2.9rem); font-weight:500; letter-spacing:-.035em; line-height:1.05; color:var(--text); text-wrap:balance; }
+ .facts-grid { grid-column:2; border-top:1px solid var(--line-hi); }
+ article { display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:.5rem 2rem; padding:1.5rem 0; border-bottom:1px solid var(--line-hi); }
+ h3 { margin:0; font-family:var(--font-grot); font-size:1.0625rem; font-weight:500; letter-spacing:-.015em; line-height:1.35; color:var(--text); }
+ p { margin:0; font-size:.875rem; line-height:1.75; color:var(--text-2); text-wrap:pretty; }
+ .facts-exports, .facts-links, .facts-channel { grid-column:2; }
+ .facts-exports { margin-top:1.5rem; color:var(--text-3); }
+ .facts-links { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.25rem; font-size:.8125rem; }
+ .facts-links a { padding:.4rem .8rem; border:1px solid var(--line-hi); border-radius:999px; color:var(--text); text-decoration:none; transition:border-color .2s,color .2s; }
+ .facts-links a:hover { border-color:var(--accent); color:var(--accent-text); }
+ .facts-channel { margin-top:1.25rem; font-size:.75rem; color:var(--text-3); }
+ @media(max-width:900px) { .product-facts .container { grid-template-columns:1fr; } .facts-heading { position:static; grid-row:auto; margin-bottom:2rem; } .facts-grid, .facts-exports, .facts-links, .facts-channel { grid-column:1; } }
+ @media(max-width:600px) { article { grid-template-columns:1fr; } .product-facts { padding:5rem 0 1rem; } }
</style>
diff --git a/website/src/data/site-translations.mjs b/website/src/data/site-translations.mjs
index 9b829e0f..df3eaa8b 100644
--- a/website/src/data/site-translations.mjs
+++ b/website/src/data/site-translations.mjs
@@ -116,6 +116,7 @@ export const indexCopy = {
'cta-h':'Ask once.<br><em>Share the answer.</em>',
'cta-sub':'One command installs the checked skill for your agent — your next map or one-page answer is a chat message away.',
'cta-install':'Install the skill','cta-gh':'Star on GitHub',
+ 'cta-prompt':'Use Archify to answer as one page: why did P99 jump while the mean stayed flat?',
'footer-changelog':'Changelog','footer-license':'License','footer-community':'Community'
},
zh: {
@@ -235,6 +236,7 @@ export const indexCopy = {
'cta-h':'问一次,<br><em>分享这个答案。</em>',
'cta-sub':'一条命令为你的 Agent 安装经过检查的技能——下一张图、下一页答案,只差一句对话。',
'cta-install':'安装技能','cta-gh':'在 GitHub 上 Star',
+ 'cta-prompt':'用 Archify 一页回答:P99 暴涨、平均值几乎没变,为什么?',
'footer-changelog':'更新日志','footer-license':'许可证','footer-community':'社区包'
}
};
diff --git a/website/src/pages/index.astro b/website/src/pages/index.astro
index bbbec11b..ab6ec695 100644
--- a/website/src/pages/index.astro
+++ b/website/src/pages/index.astro
@@ -542,6 +542,7 @@ const { lang = 'en' } = Astro.props;
<div class="container cta-inner">
<h2 class="cta-h fade-up" data-i18n="cta-h">Ask once.<br><em>Share the answer.</em></h2>
<p class="cta-sub fade-up d1" data-i18n="cta-sub">One command installs the checked skill for your agent — your next map or one-page answer is a chat message away.</p>
+ <p class="cta-prompt" aria-live="off"><span class="cta-mark" aria-hidden="true">›</span><span id="cta-prompt" data-i18n="cta-prompt">Use Archify to answer as one page: why did P99 jump while the mean stayed flat?</span><span class="cta-caret" aria-hidden="true"></span></p>
<div class="cta-actions fade-up d2">
<a class="btn btn-primary btn-lg" href="start.html" data-i18n="cta-install">Install the skill</a>
<a class="btn btn-ghost btn-lg" href="https://github.com/tt-a1i/archify" target="_blank" rel="noopener"><span data-i18n="cta-gh">Star on GitHub</span> <span aria-hidden="true">↗</span></a>
diff --git a/website/src/scripts/index.js b/website/src/scripts/index.js
index fc9c549a..a989f408 100644
--- a/website/src/scripts/index.js
+++ b/website/src/scripts/index.js
@@ -374,7 +374,9 @@
window.addEventListener('resize', onScroll);
/* the demo page keeps a desktop layout at least 1180 px wide, scaled into the window */
const fitPage = () => pageFrame.style.setProperty('--page-scale', Math.min(1, pageFrame.parentElement.clientWidth / 1180).toFixed(4));
- window.addEventListener('resize', fitPage);
+ /* the frame also narrows when the page chapter opens its caption rail */
+ if ('ResizeObserver' in window) new ResizeObserver(fitPage).observe(pageFrame.parentElement);
+ else window.addEventListener('resize', fitPage);
fitPage();
applyScroll();
@@ -403,6 +405,29 @@
requestAnimationFrame(frame);
});
+ /* ══ Closing prompt — types example requests in turn, maps and pages alike; the first is in the
+ HTML, and nothing cycles under reduced motion ══ */
+ const PROMPTS = {
+ en: ['Use Archify to answer as one page: why did P99 jump while the mean stayed flat?', 'Use Archify to map our checkout services and show where the cache sits.', 'Use Archify to read this repository and show how a request reaches the database.', 'Use Archify to plan my annual leave around two comp days that expire in June.', 'Use Archify to answer as one page: what should I check before signing a lease?', "Use Archify to draw a timeline of last night's incident."],
+ zh: ['用 Archify 一页回答:P99 暴涨、平均值几乎没变,为什么?', '用 Archify 画出我们的结账服务,标出缓存在哪一层。', '用 Archify 读一下这个仓库,画出一个请求怎么走到数据库。', '用 Archify 帮我排年假,有两天调休 6 月底过期。', '用 Archify 一页回答:第一次租房,签合同前要确认什么?', '用 Archify 画出昨晚那次事故的时间线。']
+ };
+ const ctaPrompt = $('cta-prompt');
+ if (ctaPrompt && !reducedMotion.matches && 'IntersectionObserver' in window) {
+ let index = 0;
+ const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
+ async function cycle() {
+ for (;;) {
+ await sleep(2600);
+ for (let n = ctaPrompt.textContent.length; n >= 0; n -= 2) { ctaPrompt.textContent = ctaPrompt.textContent.slice(0, n); await sleep(14); }
+ index = (index + 1) % PROMPTS[lang].length;
+ const next = PROMPTS[lang][index];
+ for (let n = 1; n <= next.length; n++) { ctaPrompt.textContent = next.slice(0, n); await sleep(lang === 'zh' ? 70 : 32); }
+ }
+ }
+ let started = false;
+ new IntersectionObserver(entries => { if (!started && entries.some(entry => entry.isIntersecting)) { started = true; cycle(); } }).observe(ctaPrompt);
+ }
+
/* ══ 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) {
diff --git a/website/src/styles/index.css b/website/src/styles/index.css
index 1332e94b..e076e381 100644
--- a/website/src/styles/index.css
+++ b/website/src/styles/index.css
@@ -149,6 +149,16 @@
.stage-window[data-mode="page"] .page-frame { opacity:1; visibility:visible; transform:scale(var(--page-scale,1)); transition:opacity .6s var(--ease-out),transform .8s var(--ease-out); }
.stage-window[data-mode="page"] #hero-proof-frame { opacity:0; }
.stage-window[data-mode="page"].is-page-loading .page-frame { opacity:.3; }
+ /* wide screens: in the page chapter the caption moves into a rail beside the page instead of over it */
+ @media(min-width:1100px) {
+ .hero-frame { transition:margin-left .7s var(--ease-out); }
+ .stage-window[data-mode="page"] .hero-frame { margin-left:360px; border-left:1px solid var(--line); }
+ .stage-window[data-mode="page"] .beat-card { left:0; top:52px; bottom:0; width:360px; display:flex; flex-direction:column; justify-content:center; padding:2rem 2rem 2.25rem; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
+ .stage-window[data-mode="page"] .beat-title { font-size:1.75rem; line-height:1.15; letter-spacing:-.03em; }
+ .stage-window[data-mode="page"] .beat-body { margin-top:.85rem; font-size:.9375rem; line-height:1.65; }
+ .stage-window[data-mode="page"] .beat-rail { order:3; margin:1.75rem 0 0; }
+ .stage-window[data-mode="page"] .beat-meta { white-space:normal; }
+ }
/* beat card — glass caption anchored bottom-left inside the window */
.beat-card { position:absolute; left:1.25rem; bottom:1.25rem; z-index:3; width:min(400px,calc(100% - 2.5rem)); padding:1.1rem 1.25rem 1.25rem; border-radius:14px; border:1px solid var(--line-hi); background:rgba(var(--bg-rgb),.72); backdrop-filter:blur(16px) saturate(1.2); -webkit-backdrop-filter:blur(16px) saturate(1.2); box-shadow:0 20px 50px rgba(var(--shadow-rgb),calc(.45 * var(--shadow-k))); }
@@ -411,6 +421,10 @@
html[lang^="zh"] .cta-h { letter-spacing:-.015em; line-height:1.12; }
.cta-sub { max-width:520px; margin-top:1.75rem; font-size:1.0625rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }
.cta-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; margin-top:2.5rem; }
+ .cta-prompt { display:flex; align-items:center; gap:.6rem; max-width:min(720px,100%); min-height:52px; margin-top:2.25rem; padding:.75rem 1.2rem; border:1px solid var(--line-hi); border-radius:14px; background:rgba(var(--bg-rgb),.7); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); font-family:var(--font-mono); font-size:.8125rem; line-height:1.5; color:var(--text); text-align:left; box-shadow:0 20px 60px -30px rgba(var(--accent-rgb),.5); }
+ .cta-mark { color:var(--accent-text); font-weight:600; }
+ .cta-caret { flex:none; width:7px; height:1.1em; margin-left:-.35rem; background:var(--accent); animation:caret 1s steps(1) infinite; }
+ @keyframes caret { 50% { opacity:0; } }
/* FOOTER */
footer { border-top:1px solid var(--line); padding:2.5rem 2rem; }
@@ -435,6 +449,20 @@
.demo-video-box { aspect-ratio:16 / 9; background:#000; }
.demo-video-box video { width:100%; height:100%; display:block; }
+ /* Scroll-driven arrival: CSS only and transform only, so nothing is ever hidden and browsers
+ without view timelines simply show the page as it is. */
+ @supports (animation-timeline: view()) {
+ @media (prefers-reduced-motion: no-preference) {
+ .section-head, .answer-traits, .page-card, .life-card, .types-list, .type-preview, .gates, .run, .features-grid, .legend-chip, .terminal, .steps, .shortcut-box, .receipt {
+ animation:arrive linear both; animation-timeline:view(); animation-range:entry 0% entry 60%;
+ }
+ .page-card:nth-child(2), .life-card:nth-child(2), .legend-chip:nth-child(2), .receipt:nth-child(2) { animation-range:entry 5% entry 68%; }
+ .page-card:nth-child(3), .life-card:nth-child(3), .legend-chip:nth-child(3), .receipt:nth-child(3) { animation-range:entry 10% entry 76%; }
+ .page-card:nth-child(4), .life-card:nth-child(4), .legend-chip:nth-child(4), .receipt:nth-child(4) { animation-range:entry 15% entry 84%; }
+ @keyframes arrive { from { transform:translateY(56px) scale(.97); } }
+ }
+ }
+
@media(prefers-reduced-motion:reduce) {
html { scroll-behavior:auto; }
.fade-up { opacity:1!important; transform:none!important; transition:none!important; filter:none!important; }