feat(site): 扫码关注区新增 X/Twitter 二维码#104
Merged
Merged
Conversation
- 官网页脚「扫码关注」由微信 + 抖音两张码扩为三张,新增 X/Twitter 二维码(扫码/点击直达 x.com/jnMetaCode) - 三语(简/繁/EN)同步 qrX 文案;二维码卡与 figcaption 可点击 - 新增静态资源 qr-x.png(build 时拷入 dist/assets) - qr-card 链接样式:继承色、hover 下划线,避免默认蓝色
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
官网 sp.aiolaola.com 页脚「生态」区已有 X/Twitter 文字链接,但「扫码关注」区只有微信 + 抖音两张码。补上 X 二维码,移动端可扫码直达。
改动
site/build.mjs:「扫码关注」row 由 2 张扩为 3 张,新增 X/Twitter 二维码卡(图 + figcaption 均可点击跳x.com/jnMetaCode);三语(zh / en / zh-Hant)同步新增qrX文案;build 时拷贝qr-x.png到dist/assets。site/template/assets/qr-x.png:新增二维码资源(https://x.com/jnMetaCode)。site/template/styles.css:.qr-card a继承色 + hover 下划线,避免默认蓝色链接刺眼。.qr-row本就是 flex+wrap+center,3 张卡自适应无需改布局。本地node site/build.mjs已验证 63 页正常生成、三语首页均含 X 二维码。dist/ 由 CI(deploy-site.yml → Cloudflare Pages)构建,未提交。