diff --git a/site/build.mjs b/site/build.mjs index 7d9fbcfc..d83ff3c0 100644 --- a/site/build.mjs +++ b/site/build.mjs @@ -153,7 +153,7 @@ const T = { ], footTag: 'AI 编程超能力 · 中文增强版 · MIT License', copyright: '© 2026 superpowers-zh · MIT License', - followUs: '扫码关注', qrWechat: '公众号 · AI不止语', qrDouyin: '抖音 · @AI不止语(AIBZY)', + followUs: '扫码关注', qrWechat: '公众号 · AI不止语', qrDouyin: '抖音 · @AI不止语(AIBZY)', qrX: 'X / Twitter · @jnMetaCode', copy: '复制', copied: '已复制 ✓', backToSkills: '← 返回全部 Skill', detailInstall: '安装此 skill', @@ -237,7 +237,7 @@ const T = { ], footTag: 'AI coding superpowers · Chinese-enhanced · MIT License', copyright: '© 2026 superpowers-zh · MIT License', - followUs: 'Follow us', qrWechat: 'WeChat · AI不止语', qrDouyin: 'Douyin · @AI不止语 (AIBZY)', + followUs: 'Follow us', qrWechat: 'WeChat · AI不止语', qrDouyin: 'Douyin · @AI不止语 (AIBZY)', qrX: 'X / Twitter · @jnMetaCode', copy: 'Copy', copied: 'Copied ✓', backToSkills: '← Back to all skills', detailInstall: 'Install this skill set', @@ -321,7 +321,7 @@ const T = { ], footTag: 'AI 編程超能力 · 中文增強版 · MIT License', copyright: '© 2026 superpowers-zh · MIT License', - followUs: '掃碼關注', qrWechat: '公眾號 · AI不止語', qrDouyin: '抖音 · @AI不止語(AIBZY)', + followUs: '掃碼關注', qrWechat: '公眾號 · AI不止語', qrDouyin: '抖音 · @AI不止語(AIBZY)', qrX: 'X / Twitter · @jnMetaCode', copy: '複製', copied: '已複製 ✓', backToSkills: '← 返回全部 Skill', detailInstall: '安裝此 skill', @@ -463,6 +463,7 @@ ${body}
${esc(t.qrWechat)}
${t.qrWechat}
${esc(t.qrDouyin)}
${t.qrDouyin}
+
${esc(t.qrX)}
${t.qrX}
@@ -650,6 +651,7 @@ function build() { copyFileSync(join(ROOT, 'assets', 'superpowers-small.svg'), join(DIST, 'assets', 'superpowers-small.svg')); copyFileSync(join(TEMPLATE, 'assets', 'qr-wechat.jpg'), join(DIST, 'assets', 'qr-wechat.jpg')); copyFileSync(join(TEMPLATE, 'assets', 'qr-douyin.jpg'), join(DIST, 'assets', 'qr-douyin.jpg')); + copyFileSync(join(TEMPLATE, 'assets', 'qr-x.png'), join(DIST, 'assets', 'qr-x.png')); // ---- 每种语言生成首页 + 全部 skill 详情页 ---- for (const L of LANGS) { diff --git a/site/template/assets/qr-x.png b/site/template/assets/qr-x.png new file mode 100644 index 00000000..4545fc5a Binary files /dev/null and b/site/template/assets/qr-x.png differ diff --git a/site/template/styles.css b/site/template/styles.css index 8ecf8fdc..49d2649b 100644 --- a/site/template/styles.css +++ b/site/template/styles.css @@ -247,6 +247,8 @@ footer { border-top: 1px solid var(--border-soft); margin-top: 40px; padding: 40 .qr-card { margin: 0; } .qr-card img { width: 158px; height: auto; border-radius: 12px; background: #fff; display: block; border: 1px solid var(--border-soft); } .qr-card figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-faint); } +.qr-card a { color: inherit; text-decoration: none; } +.qr-card a:hover { text-decoration: underline; } /* ---------- 响应式 ---------- */ @media (max-width: 720px) {