feat: AI Discovery 랜딩 /discovery 구현 (시안 ai_discovery_landing.html 기준)
- 신규 라우트 /discovery → DiscoveryLandingPage, 기존 /discovery/:id 리포트와 공존 - 섹션 9종: Hero(ABMR 루프 + AI 답변 목업) / Why Now / How It Works / Sample Report / 8주 로드맵 / 정직성 스트립 / 최종 CTA - ABMR 루프는 Solution.tsx 다이어그램 구조 복제, AGDP → ABMR 워딩 교체 - 점수·등급·카테고리 %·항목 수 전부 scoreDiscovery 계산값 파생, JSX 수치 하드코딩 없음 (nextGradeTarget·scorePctColor 헬퍼를 discoveryScore에 추가) - ScoreRing에 valueClassName·subLabel 옵션 prop 추가 (하위 호환) - AI 답변 목업 "AEO / GEO 구축 후 목표 상태 예시" 라벨 유지, 연락처 o2oteam@o2o.kr 단일 - 시안 HTML·핸드오버 문서·POC 덱 산출물 포함 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgWoJZAvvzMxTpWeenZSia
This commit is contained in:
1 parent
85d72e4cfb
commit
18740ca800
21 files changed
+1580
-2
No files matched your search
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* /discovery — AI Discovery(AEO/GEO) 서비스 랜딩.
|
||||
* 시안: docs/reports/ai_discovery_landing.html (2026-08-31 확정)
|
||||
*
|
||||
* 데이터 원칙: 점수·등급·카테고리 %·항목 수는 전부
|
||||
* scoreDiscovery(AEO_GEO_RUBRIC, DISCOVERY_VIEWCLINIC) 계산값에서 파생한다.
|
||||
* 재진단으로 데이터가 바뀌면 랜딩 수치도 함께 바뀐다 (JSX 하드코딩 금지).
|
||||
*/
|
||||
import { useMemo } from 'react';
|
||||
import { AEO_GEO_RUBRIC } from '../data/aeoGeoRubric';
|
||||
import { DISCOVERY_VIEWCLINIC } from '../data/discovery_viewclinic';
|
||||
import { scoreDiscovery, nextGradeTarget } from '../lib/discoveryScore';
|
||||
import DiscoveryHero from '../components/discovery/DiscoveryHero';
|
||||
import WhyNow from '../components/discovery/WhyNow';
|
||||
import HowItWorks from '../components/discovery/HowItWorks';
|
||||
import SampleReport from '../components/discovery/SampleReport';
|
||||
import Roadmap from '../components/discovery/Roadmap';
|
||||
import HonestyStrip from '../components/discovery/HonestyStrip';
|
||||
import DiscoveryCta from '../components/discovery/DiscoveryCta';
|
||||
|
||||
export default function DiscoveryLandingPage() {
|
||||
const result = DISCOVERY_VIEWCLINIC;
|
||||
const overall = useMemo(() => scoreDiscovery(AEO_GEO_RUBRIC, result), [result]);
|
||||
const target = nextGradeTarget(overall.score);
|
||||
|
||||
const criteriaCount = AEO_GEO_RUBRIC.criteria.length;
|
||||
const categoryCount = AEO_GEO_RUBRIC.categories.length;
|
||||
const verifiedCount = overall.categories.reduce((sum, c) => sum + c.verifiedCount, 0);
|
||||
const unverifiedCount = criteriaCount - verifiedCount;
|
||||
|
||||
return (
|
||||
<div className="[word-break:keep-all]">
|
||||
<DiscoveryHero
|
||||
overall={overall}
|
||||
target={target}
|
||||
clinicName={result.clinicName}
|
||||
sampleReportPath={`/discovery/${result.id}`}
|
||||
criteriaCount={criteriaCount}
|
||||
/>
|
||||
<WhyNow />
|
||||
<HowItWorks criteriaCount={criteriaCount} categoryCount={categoryCount} />
|
||||
<SampleReport overall={overall} result={result} />
|
||||
<Roadmap
|
||||
grade={overall.grade}
|
||||
targetGrade={target?.grade ?? null}
|
||||
criteriaCount={criteriaCount}
|
||||
unverifiedCount={unverifiedCount}
|
||||
/>
|
||||
<HonestyStrip />
|
||||
<DiscoveryCta criteriaCount={criteriaCount} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user