feat(hub): OPEN-01 落地,B 类原语 × 6 + R22 判据
hub 六页(products/solutions/services/cases/news/insights)首屏此前是纯白底 文字块,对标语法「每个入口页由构图立住」在这一层整段断掉。按 ADR-0011 §4.2 落地「一件原语 + 六组参数」,不引入任何照片。 - 新增 ui/span-field.tsx:层叠体块 + 水平线 + 竖向脊线,纯 currentColor, aria-hidden,器形不含可辨识建筑造型;宽度/错位取固定序列不随机 - 六页容器改 12 列栅格(文本 7 + 原语 5),移动端为 160px 带,任何断点不隐藏 - check-visual-grammar 新增 R22:六页剥注释后必须有 <SpanField 或 <Image, 文件缺失按分母缩水判红;四向自证(缺原语/齐全/注释/缺页) - 修 L2「卡片组件」脆性捕获:滚动落点钉到「头部下沿+8px」,与页面总高解耦 - 基线:hub 24 张(4 project)+ 卡片 2 张;firefox 六张因本机 newPage 阻塞未采 门禁:type-check 0 · lint 0 error/88 warning · jest 160 套件/1890 例 (89.93/88.43/89.57/89.93)· grammar 22/22 · accents 违规 0 · a11y 34 页 0 问题 · security 8/8 · e2e:fast 45 passed(18 红全为 firefox 建页超时)
This commit is contained in:
1 parent
9db24f68a3
commit
73abb07413
40 files changed
+549
-15
No files matched your search
@@ -8,6 +8,7 @@ import {
|
||||
type CaseStudy,
|
||||
} from '@/lib/constants/cases';
|
||||
import { EARLY_ACCESS } from '@/lib/constants/company';
|
||||
import { SpanField } from '@/components/ui/span-field';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
const EASE_OUT = [0.22, 1, 0.36, 1] as const;
|
||||
@@ -128,8 +129,8 @@ export default function CasesContentV3({
|
||||
<div className="min-h-screen bg-bg-primary text-ink overflow-x-hidden">
|
||||
{/* Hero Section */}
|
||||
<section className="relative min-h-[70vh] flex items-center overflow-hidden bg-bg-primary">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full py-28 sm:py-36 md:py-40">
|
||||
<div className="max-w-4xl">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full py-28 sm:py-36 md:py-40 grid grid-cols-1 lg:grid-cols-12 lg:items-center gap-12 lg:gap-10">
|
||||
<div className="max-w-4xl lg:col-span-7">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
@@ -196,6 +197,14 @@ export default function CasesContentV3({
|
||||
</span>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* B 类原语,第四组参数:六层、贴左 —— 案例页首屏此前完全没有视觉支点。 */}
|
||||
<SpanField
|
||||
className="h-40 w-full sm:h-56 lg:col-span-5 lg:h-[30rem]"
|
||||
layers={6}
|
||||
density="regular"
|
||||
align="left"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import { ScrollReveal } from '@/components/ui/scroll-reveal';
|
||||
import { CTAButton } from '@/components/ui/cta-button';
|
||||
import { COMPANY_INFO } from '@/lib/constants';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { SpanField } from '@/components/ui/span-field';
|
||||
import { ArrowRight } from 'lucide-react';
|
||||
|
||||
export type InsightKind = 'methodology' | 'case' | 'writing';
|
||||
@@ -76,7 +77,8 @@ export default function InsightsContent({ entries }: { entries: InsightEntry[] }
|
||||
<div data-testid="insights-page">
|
||||
{/* L1 —— 结论式主张,不是口号 */}
|
||||
<section className="bg-bg-primary border-b border-border-primary" data-testid="hero-section">
|
||||
<div className="container-x py-16 md:py-24">
|
||||
<div className="container-x py-16 md:py-24 grid grid-cols-1 lg:grid-cols-12 lg:items-center gap-10 md:gap-12">
|
||||
<div className="lg:col-span-7">
|
||||
<ScrollReveal>
|
||||
<p className="text-sm font-medium text-brand-ink tracking-wider mb-4">洞察</p>
|
||||
<h1 className="text-4xl md:text-5xl font-bold text-text-primary leading-tight max-w-4xl">
|
||||
@@ -89,6 +91,15 @@ export default function InsightsContent({ entries }: { entries: InsightEntry[] }
|
||||
<strong className="font-medium text-text-primary">已验证结果</strong>。
|
||||
</p>
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
|
||||
{/* B 类原语,第六组参数:六层、线密、贴左。 */}
|
||||
<SpanField
|
||||
className="h-40 w-full sm:h-56 lg:col-span-5 lg:h-[24rem]"
|
||||
layers={6}
|
||||
density="dense"
|
||||
align="left"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import { Search, Calendar, ArrowRight, Newspaper, ChevronLeft, ChevronRight } fr
|
||||
import { COMPANY_INFO } from '@/lib/constants';
|
||||
import { type NewsItem } from '@/lib/constants/news';
|
||||
import { SectionLabel, EASE_OUT } from '@/components/ui/page-decoration';
|
||||
import { SpanField } from '@/components/ui/span-field';
|
||||
|
||||
const categories = ['全部', '公司新闻', '研发动态'];
|
||||
const ITEMS_PER_PAGE = 9;
|
||||
@@ -123,8 +124,8 @@ export default function NewsContentV3({ news, pageCopy }: { news?: NewsItem[]; p
|
||||
<div className="min-h-screen bg-bg-primary text-ink overflow-x-hidden">
|
||||
{/* Hero Section */}
|
||||
<section className="relative min-h-[75vh] flex items-center overflow-hidden bg-bg-primary">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full py-28 sm:py-36 md:py-44 lg:py-56">
|
||||
<div className="max-w-4xl">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full py-28 sm:py-36 md:py-44 lg:py-56 grid grid-cols-1 lg:grid-cols-12 lg:items-center gap-12 lg:gap-10">
|
||||
<div className="max-w-4xl lg:col-span-7">
|
||||
<ScrollReveal>
|
||||
<SectionLabel>{heroEyebrow}</SectionLabel>
|
||||
</ScrollReveal>
|
||||
@@ -145,6 +146,14 @@ export default function NewsContentV3({ news, pageCopy }: { news?: NewsItem[]; p
|
||||
</p>
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
|
||||
{/* B 类原语,第五组参数:八层、线疏 —— 与其余五页错开,避免六页同一个图章。 */}
|
||||
<SpanField
|
||||
className="h-40 w-full sm:h-56 lg:col-span-5 lg:h-[30rem]"
|
||||
layers={8}
|
||||
density="sparse"
|
||||
align="right"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import { EASE_OUT } from '@/components/ui/page-decoration';
|
||||
import { StaticLink } from '@/components/ui/static-link';
|
||||
import { CTAButton } from '@/components/ui/cta-button';
|
||||
import { MetricsBasisNote } from '@/components/ui/metrics-basis-note';
|
||||
import { SpanField } from '@/components/ui/span-field';
|
||||
import { BentoGrid, BentoItem } from '@/components/sections/bento-grid';
|
||||
import { ArrowRight, ArrowUpRight, Package, Cpu, TrendingUp, Users, Settings, FileText } from 'lucide-react';
|
||||
import type { Product } from '@/lib/constants/products';
|
||||
@@ -38,8 +39,8 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
|
||||
|
||||
return (
|
||||
<section className="relative overflow-hidden bg-bg-primary">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full py-16 sm:py-20 lg:py-28">
|
||||
<div className="max-w-4xl">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full 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="max-w-4xl lg:col-span-7">
|
||||
<motion.h1
|
||||
initial={{ opacity: 0, y: 70 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
@@ -90,6 +91,15 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
|
||||
</CTAButton>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* B 类原语:承担首屏构图支点(ADR-0011 §4.2)。移动端是文字下方的一条带,
|
||||
桌面占据右 5 列;任何断点都不隐藏 —— 判据要求它「不能被 CSS 隐藏」。 */}
|
||||
<SpanField
|
||||
className="h-40 w-full sm:h-56 lg:col-span-5 lg:h-[30rem]"
|
||||
layers={5}
|
||||
density="regular"
|
||||
align="right"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -8,6 +8,7 @@ import { MetricsBasisNote } from '@/components/ui/metrics-basis-note';
|
||||
import { CTA_LABELS, canonicalCtaLabel } from '@/lib/constants/cta-labels';
|
||||
import type { Service, ServiceMetric } from '@/lib/constants/services';
|
||||
import { weakestBasis } from '@/lib/constants/metrics-basis';
|
||||
import { SpanField } from '@/components/ui/span-field';
|
||||
|
||||
const EASE_OUT = [0.22, 1, 0.36, 1] as const;
|
||||
|
||||
@@ -85,8 +86,8 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
|
||||
|
||||
return (
|
||||
<section className="relative overflow-hidden bg-bg-primary">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full py-16 sm:py-20 lg:py-28">
|
||||
<div className="max-w-4xl">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full 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="max-w-4xl lg:col-span-7">
|
||||
<motion.h1
|
||||
initial={{ opacity: 0, y: 40 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
@@ -138,6 +139,14 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
|
||||
</CTAButton>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* B 类原语,第三组参数:层数最少、线最疏、贴左 —— 与产品/方案两页拉开差异。 */}
|
||||
<SpanField
|
||||
className="h-40 w-full sm:h-56 lg:col-span-5 lg:h-[30rem]"
|
||||
layers={4}
|
||||
density="sparse"
|
||||
align="left"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -7,6 +7,7 @@ import { CTAButton } from '@/components/ui/cta-button';
|
||||
import { MetricsBasisNote } from '@/components/ui/metrics-basis-note';
|
||||
import { CTA_LABELS, canonicalCtaLabel } from '@/lib/constants/cta-labels';
|
||||
import { weakestBasis } from '@/lib/constants/metrics-basis';
|
||||
import { SpanField } from '@/components/ui/span-field';
|
||||
import { type Solution } from '@/lib/constants/solutions';
|
||||
import type { Product } from '@/lib/constants/products';
|
||||
|
||||
@@ -33,8 +34,8 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
|
||||
|
||||
return (
|
||||
<section className="relative overflow-hidden bg-bg-primary">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full py-16 sm:py-20 lg:py-28">
|
||||
<div className="max-w-4xl">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full 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="max-w-4xl lg:col-span-7">
|
||||
<motion.h1
|
||||
initial={{ opacity: 0, y: 40 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
@@ -86,6 +87,14 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
|
||||
</CTAButton>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* B 类原语,第二组参数(ADR-0011 §4.2):层数更多、水平线更密。 */}
|
||||
<SpanField
|
||||
className="h-40 w-full sm:h-56 lg:col-span-5 lg:h-[30rem]"
|
||||
layers={7}
|
||||
density="dense"
|
||||
align="right"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user