{value.title}
-{value.body}
-diff --git a/docs/BASELINE.md b/docs/BASELINE.md
index 8074ea9..7611f47 100644
--- a/docs/BASELINE.md
+++ b/docs/BASELINE.md
@@ -46,3 +46,11 @@
- 生产域名 `https://marqdo.com/` 复核 27/27 通过:首页 H1、页脚两栏中轴误差 0 CSS px、头像位于姓名之上、演示模式切换与计算、非法输入阻断、Wiki 直达与 `/docs/` 迁移、360/390/768/1024/1440 px 无横向溢出、真实 404。
- `www.marqdo.com` 的 DNS 仍走 `a1.initaf.com`(ESA)链路,实测已返回本次构建(12,175 B、含新页脚与演示);正式解析、证书与备案归属仍由维护者确认。
- 当前站点为未接入公开发行数据的构建:`noindex`,下载页显示「尚未接入主仓公开发行快照」,不展示虚构版本或资产。
+
+## 官网设计稿对齐候选(2026-12-02)
+
+- 责任仓为 `cflmy/marqdo-site`,按 [官网 #1](https://git.cflmy.cn/cflmy/marqdo-site/issues/1) 和 [视觉工单 #84](https://git.cflmy.cn/cflmy/marqdo/issues/84) 验收。基线 SHA 为 `ff63306610491fbb932ed99b3674bc4be8683e0c`。在 1440 px Chromium 中打开基线首页,导航与首屏的外框为 x=120 px、宽 1200 px,演示框为 x=40 px、宽 1360 px。
+- 候选按批准的中文浅色稿实现首页(桌面和移动)、生态、研究和下载。验收点覆盖共同外框 x=120 px / 1200 px、桌面演示 38:34:28、移动端标题与操作先于静态插画、生态按职责分组与真实依赖、研究锚点和下载产品选择。中文与英文、深浅主题使用同一套布局。真实文稿、Logo、头像、站点身份和发布快照继续由现有输入提供。图稿按静态版式参照,实际字体渲染、动效帧和真实内容会产生像素差异。
+- Linux x86_64,Node.js 24.22.3、npm 11.19.1。以下命令在候选上退出码均为 0:`npm ci --offline --no-audit`、`npm run check`(36 文件,无诊断)、`npm test`(5 项)、`python3 -B -m unittest discover -s tests -p '*_test.py'`(11 项)、`bash scripts/prepare-example.sh`、`npm run build`(21 个页面)、`npm run test:e2e -- --workers=2`(Chromium,18 项)。固定 CLI/View 归档通过摘要校验,圆面积 0、1、3 的真实调用和 View 静态导出通过。
+- Chromium 截图覆盖 1440 px 桌面及 390 px 移动首页、生态、研究、下载和深色首页。用 SwiftShader WebGL 2 渲染两次不同粒子帧,再触发上下文丢失验证海报恢复。手机、减少动态效果偏好及无 WebGL 的静态路径已验收。构建首页入口脚本 2688 B gzip,静态海报 20041 B gzip,延迟加载的 Three.js 场景 147610 B gzip。Vite 仍会提示该延迟块的未压缩体积超过 500 kB。
+- 本地 `dist/index.html` SHA-256 为 `a850edff8a07a720d1eba419a4636e89f278f431c19c1bf12b336bc4cf65fdf3`。静态海报 SHA-256 为 `7b1a2c34ebed7f05203291ad6a78b7e1b1ff84e49562ec592be73ea8302bc57c`。候选 Woodpecker 与 EdgeOne 预览、生产发布为 UNVERIFIED。
diff --git a/index.mq.md b/index.mq.md
index 7f28543..8981316 100644
--- a/index.mq.md
+++ b/index.mq.md
@@ -15,9 +15,9 @@
## 视觉体系
-语义颜色、字体、容器和间距分别由 `src/styles/tokens.css`、`typography.css`、`layout.css`、`components.css` 定义;首页与三栏文稿演示的专用样式在 `home.css`、`demo.css`。页面不得自行引入色值、字号或宽度。
+语义颜色、字体、容器和间距分别由 `src/styles/tokens.css`、`typography.css`、`layout.css`、`components.css` 定义;首页与三栏文稿演示的专用样式在 `home.css`、`demo.css`。导航、主要页面内容与页脚共用 1200 CSS px 容器,窄屏保留至少 16 px 侧边距。
-首页保留「从一篇文稿开始」的源码 / 知识阅读 / 交互计算三栏演示与四种查看模式;宽屏默认并排,窄屏默认单栏但保留全部模式。浏览器演示使用固定圆面积公式,与 CLI 实测证据相互独立。
+首页保留「从一篇文稿开始」的源码 / 知识阅读 / 交互计算三栏演示与四种查看模式;宽屏默认 38:34:28 并排,窄屏默认「知识阅读」,四种模式均可切换。首屏的设计点阵同时提供静态海报与 Three.js 动效,宽屏可见且允许动画、支持 WebGL 2 时才加载动效模块。浏览器演示使用固定圆面积公式,与 CLI 实测证据相互独立。
## 运行
diff --git a/package-lock.json b/package-lock.json
index adfd3f0..e29fb87 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,12 +10,14 @@
"dependencies": {
"@astrojs/check": "0.9.12",
"astro": "7.4.14",
+ "three": "0.187.0",
"typescript": "6.0.3",
"zod": "4.6.7"
},
"devDependencies": {
"@playwright/test": "1.65.2",
- "@types/node": "24.19.4"
+ "@types/node": "24.19.4",
+ "@types/three": "0.187.0"
},
"engines": {
"node": "24.22.3"
@@ -714,6 +716,13 @@
"node": ">= 20.12.0"
}
},
+ "node_modules/@dimforge/rapier3d-compat": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",
+ "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
"node_modules/@emmetio/abbreviation": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/@emmetio/abbreviation/-/abbreviation-2.3.3.tgz",
@@ -1783,6 +1792,13 @@
"integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==",
"license": "MIT"
},
+ "node_modules/@tweenjs/tween.js": {
+ "version": "23.1.3",
+ "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",
+ "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@tybys/wasm-util": {
"version": "0.10.5",
"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz",
@@ -1844,12 +1860,41 @@
"undici-types": ">=7.24.0 <7.24.7"
}
},
+ "node_modules/@types/stats.js": {
+ "version": "0.17.4",
+ "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz",
+ "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/three": {
+ "version": "0.187.0",
+ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.187.0.tgz",
+ "integrity": "sha512-v+vKNarUtk4n2QRZ4+CN5ygMM0ARUjXjIQl0R/unMUfmStFeVqGbgqarbrpoGTXRZoulSH16ePrVJVxPJEbMUA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@dimforge/rapier3d-compat": "~0.12.0",
+ "@tweenjs/tween.js": "~23.1.3",
+ "@types/stats.js": "*",
+ "@types/webxr": ">=0.5.17",
+ "fflate": "~0.8.3",
+ "meshoptimizer": "~1.1.1"
+ }
+ },
"node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
"license": "MIT"
},
+ "node_modules/@types/webxr": {
+ "version": "0.5.24",
+ "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz",
+ "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@ungap/structured-clone": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz",
@@ -2667,6 +2712,13 @@
}
}
},
+ "node_modules/fflate": {
+ "version": "0.8.3",
+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz",
+ "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/flattie": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/flattie/-/flattie-1.1.1.tgz",
@@ -3208,6 +3260,13 @@
"integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",
"license": "CC0-1.0"
},
+ "node_modules/meshoptimizer": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz",
+ "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/micromark-util-character": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",
@@ -3962,6 +4021,12 @@
"url": "https://opencollective.com/svgo"
}
},
+ "node_modules/three": {
+ "version": "0.187.0",
+ "resolved": "https://registry.npmjs.org/three/-/three-0.187.0.tgz",
+ "integrity": "sha512-Qiu7R+Cmh8CstZsY1uJOSWnVlfo7ZtNLV7mF8Jltk3LB3AtDu9cRZlcnRKkAk8Y4z6KKw35z7Y7Urd7jWY8etA==",
+ "license": "MIT"
+ },
"node_modules/tiny-inflate": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz",
diff --git a/package.json b/package.json
index 829f54d..3596d4c 100644
--- a/package.json
+++ b/package.json
@@ -2,12 +2,14 @@
"dependencies": {
"@astrojs/check": "0.9.12",
"astro": "7.4.14",
+ "three": "0.187.0",
"typescript": "6.0.3",
"zod": "4.6.7"
},
"devDependencies": {
"@playwright/test": "1.65.2",
- "@types/node": "24.19.4"
+ "@types/node": "24.19.4",
+ "@types/three": "0.187.0"
},
"name": "marqdo-site",
"version": "0.1.0",
diff --git a/scripts/verify-dist.mjs b/scripts/verify-dist.mjs
index 0767ef0..a56772b 100644
--- a/scripts/verify-dist.mjs
+++ b/scripts/verify-dist.mjs
@@ -33,7 +33,7 @@ for (const [path, html] of documents) {
}
}
-for (const file of ['assets/logo.svg', 'assets/cflmy.jpg', 'assets/social.png', 'assets/geometry.mq.md', 'robots.txt', 'sitemap.xml']) {
+for (const file of ['assets/logo.svg', 'assets/hero-particles.svg', 'assets/cflmy.jpg', 'assets/social.png', 'assets/geometry.mq.md', 'robots.txt', 'sitemap.xml']) {
assert.ok(existsSync(join(dist, file)), `Missing ${file}`);
}
// The documentation search index was removed with the in-site docs body.
@@ -58,5 +58,12 @@ assert.match(home, /查看 CLI 命令与实测依据/);
const homeScripts = [...home.matchAll(/
diff --git a/src/components/Home.astro b/src/components/Home.astro
index ecfcfa6..48865db 100644
--- a/src/components/Home.astro
+++ b/src/components/Home.astro
@@ -1,134 +1,75 @@
---
import Demo from './Demo.astro';
-import Section from './Section.astro';
-import catalog from '../config/catalog.json';
+import EcosystemMap from './EcosystemMap.astro';
+import HeroArt from './HeroArt.astro';
import { choose, site, url, type Locale } from '../config/site';
const { locale, hasRecommendations } = Astro.props as { locale: Locale; hasRecommendations: boolean };
const t = {t('文档原生编程语言', 'Document-native programming language')} {t('文档原生编程语言', 'Document-native programming language')} {t('面向人机协作与可执行知识的文档原生编程语言。', 'A document-native programming language for human–AI collaboration and executable knowledge.')} {t('代码即文档,文档即知识,知识即工具。', 'Code is documentation, documentation is knowledge, knowledge is a tool.')} {t('暂无推荐发行 · 查看发行状态', 'No recommended release · View release status')} 01 · {t('技术展示', 'Technical demo')} {t('同一份 Markdown 文稿,保留推导,也提供可调用的函数。', 'One Markdown document keeps the reasoning and exposes a callable function.')} {t('同一份 Markdown 文稿,保留推导,也提供可调用的函数。', 'One Markdown document keeps the reasoning and exposes a callable function.')} {value.body}
- {t('以上为设计目标与技术思想;实际能力以对应组件版本和验证记录为准。', 'These are design goals and technical direction; delivered capability follows each component release and its verification record.')}
- {t('生态组成示意,连线表示职责层次,不代表运行依赖。实际依赖以主仓组件登记为准。', 'Composition only. Lines show responsibility levels, not runtime dependencies; see the root component catalog for real dependencies.')} {t('探索完整生态', 'Explore the ecosystem')} · {t('了解 MQDH', 'About MQDH')} {t('CLI、标准库、可选扩展、工具与应用各自承担明确职责。', 'The CLI, standard libraries, optional extensions, tools, and applications each own a clear responsibility.')} {t('按平台安装,运行一份真实示例,然后到 Wiki 继续阅读。', 'Install for your platform, run a real example, then continue in the Wiki.')} {t('按平台安装,运行一份真实示例,然后到 Wiki 继续阅读。', 'Install for your platform, run a real example, then continue in the Wiki.')}{t('让知识成为', 'Make knowledge')}
+
{t('可以执行的力量', 'executable')}{t('让知识成为', 'Make knowledge')}
{t('可以执行的力量', 'executable')}{t('从一篇文稿开始', 'Start with one document')}
- {t('从一篇文稿开始', 'Start with one document')}
+ {value.title}
- {t('人类与 AI 的共同知识载体', 'A shared knowledge medium for people and AI')}
+
+ {values.map(value => (
+
{t('从语言到知识生态', 'From a language to a knowledge ecosystem')}
+ {t('开始你的第一份文稿', 'Start your first document')}
- {t('开始你的第一份文稿', 'Start your first document')}
+
{t('官网尚未接入主仓公开发行快照。推荐组合、平台支持和直链下载待核验。', 'The root repository’s public snapshot is unavailable. Recommendations, platform support, and direct downloads are pending verification.')}
} + :{t('官网尚未接入主仓公开发行快照。', 'The root repository’s public release snapshot is unavailable.')}
} {snapshot && eligibleOffers.length + releases.length > 0 && } -{!history && products.map(product => { +{!history &&{product.detail}
-0}>{t('所选条件下暂无推荐发行。', 'No recommended release matches the selected options.')}
+ return{product.detail}
} +0}>{snapshot ? t('所选条件下暂无推荐发行。', 'No recommended release matches the selected options.') : t('暂无推荐发行。', 'No recommended release.')}
{snapshot && rows.map(offer =>{t('预发布,适合测试。', 'Prerelease, intended for testing.')}
} @@ -67,10 +72,14 @@ const products = [ })}{t('快速开始', 'Quick Start')} · {t('项目仓库', 'Repository')} · {t('查阅官方发行记录', 'Browse official release records')}
++ {t('快速开始', 'Quick Start')} + {t('官方发行记录', 'Official release records')} +
{t('组件的独立发行和生态集成状态分别显示。', 'Component releases and their ecosystem integration status appear separately.')}
0}>{t('所选条件下暂无已核验的发行记录。', 'No verified release records match the selected options.')}
@@ -93,6 +102,18 @@ const products = [{t('Marqdo 关注的问题、设计方向与可执行知识案例。这里区分设计目标、研究假设与已交付能力。', 'The questions Marqdo works on, its design direction, and executable-knowledge cases. Design goals, research hypotheses, and delivered capability are kept distinct.')}
-{topic.body}
- {topic.links?.map(link => )} +{t('文档原生语言、人机协作与可执行知识。', 'Document-native languages, human–AI collaboration, and executable knowledge.')}
+{t('在同一份文稿中保留意图、前置条件与实现。', 'Keep intent, preconditions, and implementation in one document.')}
+ {t('语言规范', 'Language specification')} +{t('同一份文稿既服务于人的阅读与审计,也服务于智能体的上下文选择。需要稳定的计算被约束在显式函数入口,模型只处理需要理解与判断的部分。', 'One document supports human reading, auditing, and agent context selection. Explicit function entry points constrain computation. Models handle the parts that need understanding and judgement.')}
+ {t('研究方向说明', 'Research notes')}{t('论文、预印本与实验记录以对应仓库和 Wiki 的真实来源为准;未完成的设想不会在此描述为稳定能力。', 'Papers, preprints, and experiment records follow their real sources in the repositories and Wiki; unfinished ideas are not described here as stable capability.')} {t('查看可复现示例', 'Open the reproducible example')}
+ +{t('标题与锚点构成可引用的知识边界。上下文按明确位置选取,调用与引用因此可以复核。', 'Headings and anchors define referenceable knowledge boundaries. Selecting context by explicit location makes calls and citations reviewable.')}
+{t('模型理解任务与约束,程序执行可复现的计算。', 'Models interpret tasks and constraints. Programs perform reproducible computation.')}
+{t('将实现、运行条件和结果组织为可复现的单元。适用范围、前置条件与调用入口随已验证的方法一起保留,方便后续文稿复用。', 'Package implementations, runtime conditions, and results as reproducible units. Keep scope, preconditions, and entry points with verified methods so later documents can reuse them.')}
+ {t('查看可复现示例', 'Open the reproducible example')} +