feat(hub): 首屏改 A 类影像片,覆盖 18/20 条路由(OPEN-01 终版)

第一版按 ADR-0011 §4.2 做的 B 类矢量原语(层叠体块 + 水平线)上线前被用户否决:
「右侧的矩形条是什么设计?有出处吗?不太好看呢」。复盘是语义错位——浅底上的
灰阶堆叠读成骨架屏/条形图,不是建筑;建筑感来自透视与材质,矢量剪影给不了。
这与 ADR-0011 §2.4 记的 brand-visuals 抽象几何被弃是同一个坑。

改判走 A 类本地生成影像,并相应修订 ADR-0011 §4.1(A 类允许进首屏引言区的构图位)。

- 新增 ui/hero-plate.tsx + 四张 4:5 建筑静帧(facade/glass/hall/truss,
  1000x1250 webp,97–199KB/张),均为抽象结构、无人物/无文字/无标识/无地标
- 覆盖 16 个文件 / 18 条路由:六 hub、四类详情、关于/团队/方法论/联系、ERP 专题、
  详情页共享壳;排除 /privacy /terms(法律文本)与 /cases/[slug](零数据 + 大数字构图)
- R22 改为守 <HeroPlate 或 <Image>,仍 22/22 + 四向自证
- 撤除 span-field.tsx / span-field.test.tsx
- 基线:受影响 24 页 × 5 project 全量重采(157 张),只读复跑 225 passed / 0 failed

门禁:type-check 0 · lint 0 error/88 warning · jest 160 套件/1887 例
(89.90/88.47/89.57/89.90)· grammar 22/22 · accents 违规 0 · a11y 34 页 0 问题 ·
security 8/8 · e2e:fast 59 passed(firefox 已恢复)· lighthouse 33 次运行全通过
(a11y 11/11 均 100,perf 97–100,SEO 100)
This commit is contained in:
zhangxiang committed 2026-12-01 18:44:07 +08:00
1 parent a17fd6f4ab
commit 84ac9b2123
186 files changed
+337 -311

No files matched your search

+8 -1
View File
@@ -1,4 +1,5 @@
import { CTAButton } from '@/components/ui/cta-button';
import { HeroPlate } from '@/components/ui/hero-plate';
import type { HeroTheme } from '@/lib/constants/hero-themes';
/**
@@ -52,7 +53,8 @@ export function DetailPageHero({
return (
<section className="bg-bg-primary" data-testid={`${testIdPrefix}-section`}>
<div className="container-x py-16 sm:py-20 lg:py-28">
<div className="container-x py-16 sm:py-20 lg:py-28 grid grid-cols-1 lg:grid-cols-12 lg:items-center gap-12 lg:gap-10">
<div className="lg:col-span-7">
<div className="flex items-center gap-3">
{/* 产品线视觉身份的唯一落点:3px × 24px 短线。
色值来自真源(hero-themes.ts),此处只做透传 —— check:accents 判据 B 登记在此。 */}
@@ -94,6 +96,11 @@ export function DetailPageHero({
)}
</div>
)}
</div>
{/* 首屏影像片(A 类,ADR-0011 §4.1):本页的构图支点。
移动端是文字下方的一条带,桌面占右 5 列;任何断点都不隐藏。 */}
<HeroPlate variant="facade" className="h-40 w-full sm:h-56 lg:col-span-5 lg:h-[30rem]" />
</div>
</section>
);