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,112 @@
|
||||
/**
|
||||
* ABMR 루프 카드 (다크) — 히어로 좌측.
|
||||
* Solution.tsx의 원형 루프 다이어그램 구조를 복제하고 워딩만 AGDP → ABMR로 교체.
|
||||
* 점수·등급 칩은 discoveryScore 계산값에서만 받는다 (하드코딩 금지).
|
||||
*/
|
||||
import { motion } from 'motion/react';
|
||||
import type { OverallScore } from '../../types/discovery';
|
||||
|
||||
const NODES = [
|
||||
{ letter: 'A', label: 'Audit', pos: 'top-0 left-1/2 -translate-x-1/2 -translate-y-1/2' },
|
||||
{ letter: 'B', label: 'Build', pos: 'top-1/2 right-0 translate-x-1/2 -translate-y-1/2' },
|
||||
{ letter: 'M', label: 'Measure', pos: 'bottom-0 left-1/2 -translate-x-1/2 translate-y-1/2' },
|
||||
{ letter: 'R', label: 'Refine', pos: 'top-1/2 left-0 -translate-x-1/2 -translate-y-1/2' },
|
||||
];
|
||||
|
||||
interface AbmrLoopProps {
|
||||
overall: OverallScore;
|
||||
/** 다음 등급 목표 (A등급이면 null) */
|
||||
target: { score: number; grade: OverallScore['grade'] } | null;
|
||||
}
|
||||
|
||||
export default function AbmrLoop({ overall, target }: AbmrLoopProps) {
|
||||
const chips = [
|
||||
...(target
|
||||
? [`점수 ${overall.score} → ${target.score}+`, `등급 ${overall.grade} → ${target.grade}`]
|
||||
: [`점수 ${overall.score} 유지 검증`, `등급 ${overall.grade} 유지 검증`]),
|
||||
'언급률 상승 추적',
|
||||
];
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, delay: 0.1 }}
|
||||
className="relative overflow-hidden bg-[#0A1128] rounded-2xl px-8 py-7 flex flex-col items-center text-left"
|
||||
>
|
||||
{/* Background glow */}
|
||||
<div className="absolute top-[45%] left-1/2 -translate-x-1/2 -translate-y-1/2 w-[420px] h-[420px] bg-accent/20 rounded-full blur-[80px] pointer-events-none" />
|
||||
|
||||
<div className="relative self-start text-[13px] font-bold tracking-[0.2em] text-[#AF90FF] mb-2">
|
||||
THE ENGINE · ABMR CYCLE
|
||||
</div>
|
||||
|
||||
{/* Circular loop diagram (Solution.tsx 구조, ABMR 워딩) */}
|
||||
<div className="relative w-[240px] h-[240px] md:w-[300px] md:h-[300px] my-11 mb-15">
|
||||
{/* Animated glowing ring */}
|
||||
<svg className="absolute inset-0 w-full h-full animate-[spin_20s_linear_infinite]" viewBox="0 0 100 100">
|
||||
<defs>
|
||||
<linearGradient id="abmrRingGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#a78bfa" stopOpacity="0.15" />
|
||||
<stop offset="50%" stopColor="#c084fc" stopOpacity="0.6" />
|
||||
<stop offset="100%" stopColor="#e879f9" stopOpacity="0.15" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle cx="50" cy="50" r="30" fill="none" stroke="url(#abmrRingGrad)" strokeWidth="0.5" strokeDasharray="2 2" />
|
||||
</svg>
|
||||
|
||||
{/* Center orb */}
|
||||
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-[2] w-[120px] h-[120px] md:w-[148px] md:h-[148px] rounded-full bg-[#0A1128]/90 border border-white/5 shadow-[0_0_60px_rgba(167,139,250,0.12)] flex flex-col items-center justify-center gap-0.5">
|
||||
<span className="text-2xl md:text-3xl font-bold bg-gradient-to-r from-[#fff3eb] via-[#e4cfff] to-[#f5f9ff] bg-clip-text text-transparent">
|
||||
ABMR
|
||||
</span>
|
||||
<span className="font-serif font-bold text-sm md:text-base text-white text-center leading-tight">
|
||||
Discovery<br />Loop
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* Nodes */}
|
||||
{NODES.map((node) => (
|
||||
<div key={node.letter} className={`absolute ${node.pos} z-[3] flex flex-col items-center gap-[7px]`}>
|
||||
<div className="w-12 h-12 md:w-[58px] md:h-[58px] rounded-full border border-purple-500/30 bg-[#0A1128]/80 shadow-[0_0_20px_rgba(168,85,247,0.15)] flex items-center justify-center">
|
||||
<span className="text-xl md:text-[25px] font-bold text-purple-300">{node.letter}</span>
|
||||
</div>
|
||||
<span className="text-sm font-medium text-purple-100">{node.label}</span>
|
||||
</div>
|
||||
))}
|
||||
|
||||
{/* Citation feedback curved text (M → A) */}
|
||||
<svg className="absolute inset-0 w-full h-full pointer-events-none z-[2]" viewBox="0 0 100 100">
|
||||
<defs>
|
||||
<path id="citePath" d="M 10.6 56.9 A 40 40 0 0 0 43.1 89.4" fill="none" />
|
||||
</defs>
|
||||
<text fontSize="3.5" className="font-medium uppercase tracking-widest" fill="#d8b4fe" opacity="0.8">
|
||||
<textPath href="#citePath" startOffset="50%" textAnchor="middle">
|
||||
← CITATION FEEDBACK
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
{/* Cycle description */}
|
||||
<div className="relative w-full bg-white/5 border border-white/10 rounded-xl px-[18px] py-3.5">
|
||||
<p className="text-[13.5px] leading-[1.75] text-slate-300 text-center break-keep">
|
||||
<span className="font-bold text-purple-300">ABMR Cycle:</span> 실측 진단(Audit) → 스키마·콘텐츠
|
||||
구축(Build) → 언급률·AI 유입 측정(Measure) → 우선순위 재조정(Refine)의 무한 루프.
|
||||
사이클이 돌 때마다 <span className="text-white font-medium">측정된 언급률이 다음 구축의 입력</span>이
|
||||
됩니다.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Outcome chips — 계산값 파생 */}
|
||||
<div className="relative flex flex-wrap justify-center gap-2.5 mt-3 w-full">
|
||||
{chips.map((chip) => (
|
||||
<div key={chip} className="px-3.5 py-1.5 bg-[#AF90FF]/12 border border-[#AF90FF]/30 rounded-full">
|
||||
<span className="text-[13px] font-semibold text-purple-300">{chip}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* AI 답변 목업 카드 — 히어로 우측.
|
||||
* ⚠️ 정직성 규약: 이 카드는 실제 AI 답변이 아니라 "구축 후 목표 상태 예시"다.
|
||||
* 라벨을 절대 제거하지 않는다 (현재 상태로 오인 금지).
|
||||
*/
|
||||
import { motion } from 'motion/react';
|
||||
|
||||
const CITED_DOMAINS = ['viewclinic.com', 'gangnamunni.com', 'youtube.com'];
|
||||
|
||||
interface AiAnswerMockProps {
|
||||
clinicName: string;
|
||||
/** 기준표 항목 수 (재측정 문구에 사용) */
|
||||
criteriaCount: number;
|
||||
}
|
||||
|
||||
export default function AiAnswerMock({ clinicName, criteriaCount }: AiAnswerMockProps) {
|
||||
const protocolPoints = [
|
||||
`루프 1회전(8주)마다 ${criteriaCount}개 항목을 재측정해 점수를 갱신합니다.`,
|
||||
'질의 10개 × 5회 스팟체크로 인용 여부를 신뢰구간과 함께 보고합니다.',
|
||||
'측정 결과가 다음 사이클의 구축 우선순위를 자동으로 정합니다.',
|
||||
];
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, delay: 0.2 }}
|
||||
className="glass-card px-8 py-7 flex flex-col justify-center text-left"
|
||||
>
|
||||
<div className="text-[13px] font-bold tracking-[0.2em] text-accent mb-5">
|
||||
THE OUTPUT · AI 답변 인용
|
||||
</div>
|
||||
|
||||
{/* 질의 */}
|
||||
<div className="flex items-center gap-2.5 pb-4 border-b border-[#eef0f7] mb-4">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" aria-hidden="true">
|
||||
<circle cx="9" cy="9" r="5.5" stroke="#64748b" strokeWidth="1.5" />
|
||||
<path d="M13.5 13.5 17 17" stroke="#64748b" strokeWidth="1.5" strokeLinecap="round" />
|
||||
</svg>
|
||||
<span className="text-base font-medium text-slate-700 break-keep">
|
||||
강남에서 안전하게 가슴성형 상담받을 수 있는 병원 추천해줘
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* 목표 상태의 답변 예시 */}
|
||||
<p className="text-[15px] leading-[1.8] text-slate-600 mb-4 break-keep">
|
||||
모티바 공식 KOL 의료진이 있는{' '}
|
||||
<span className="bg-[#F3F0FF] text-[#4A3A7C] font-semibold px-1.5 py-0.5 rounded-md">
|
||||
{clinicName}
|
||||
</span>
|
||||
는 강남언니 후기 19,316건과 의료진 26명 정보가 공개되어 있으며, 시술별 FAQ와 비교표를
|
||||
제공합니다.
|
||||
</p>
|
||||
|
||||
{/* 인용 도메인 칩 + 목표 상태 라벨 (제거 금지) */}
|
||||
<div className="flex items-center flex-wrap gap-2 mb-6">
|
||||
{CITED_DOMAINS.map((domain) => (
|
||||
<div key={domain} className="px-3 py-[5px] bg-[#EFF0FF] border border-[#C5CBF5] rounded-full">
|
||||
<span className="text-[12.5px] font-medium text-[#3A3F7C]">{domain}</span>
|
||||
</div>
|
||||
))}
|
||||
<span className="text-[12.5px] text-slate-400 ml-1.5">AEO / GEO 구축 후 목표 상태 예시</span>
|
||||
</div>
|
||||
|
||||
{/* 측정 프로토콜 */}
|
||||
<div className="border-t border-[#eef0f7] pt-[18px] flex flex-col gap-2.5">
|
||||
{protocolPoints.map((point) => (
|
||||
<div key={point} className="flex items-center gap-2.5">
|
||||
<span className="w-[7px] h-[7px] shrink-0 bg-[#9B8AD4] rounded-full" />
|
||||
<span className="text-sm text-slate-600 break-keep">{point}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* 최종 CTA (다크). 연락처는 o2oteam@o2o.kr 단일 채널 (허위 연락처 금지).
|
||||
*/
|
||||
import { motion } from 'motion/react';
|
||||
import { buildDiscoveryMailto, DISCOVERY_CONTACT_EMAIL } from './discoveryContact';
|
||||
|
||||
interface DiscoveryCtaProps {
|
||||
criteriaCount: number;
|
||||
}
|
||||
|
||||
export default function DiscoveryCta({ criteriaCount }: DiscoveryCtaProps) {
|
||||
return (
|
||||
<section className="bg-[#0A1128] px-6 py-24">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6 }}
|
||||
className="max-w-7xl mx-auto flex flex-col items-center text-center"
|
||||
>
|
||||
<h2 className="font-serif text-3xl md:text-[44px] font-bold leading-tight text-white mb-[18px] break-keep">
|
||||
AI가 당신의 병원을 인용하게 하세요.
|
||||
</h2>
|
||||
<p className="text-lg leading-[1.7] text-slate-400 mb-10 break-keep">
|
||||
진단은 무료입니다. {criteriaCount}개 항목 실측 리포트를 받아보고 결정하세요.
|
||||
</p>
|
||||
<div className="flex flex-col sm:flex-row items-center gap-3.5">
|
||||
<a
|
||||
href={buildDiscoveryMailto('무료 진단 신청')}
|
||||
className="inline-flex items-center h-[52px] px-[30px] bg-white rounded-full text-base font-bold text-primary-900 hover:bg-slate-100 transition-colors"
|
||||
>
|
||||
무료 AEO / GEO 진단 받기
|
||||
</a>
|
||||
<a
|
||||
href={buildDiscoveryMailto('무료 진단 신청')}
|
||||
className="text-[15px] text-slate-500 hover:text-slate-300 transition-colors"
|
||||
>
|
||||
{DISCOVERY_CONTACT_EMAIL}
|
||||
</a>
|
||||
</div>
|
||||
</motion.div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
/**
|
||||
* AI Discovery 랜딩 히어로.
|
||||
* Hero.tsx의 배경·배지·헤드라인 구조를 따르고, 하단에 ABMR 루프 + AI 답변 목업 2열 그리드.
|
||||
* 시안: docs/reports/ai_discovery_landing.html (픽셀 기준)
|
||||
*/
|
||||
import { Link } from 'react-router';
|
||||
import { motion } from 'motion/react';
|
||||
import { ArrowRight } from 'lucide-react';
|
||||
import type { OverallScore } from '../../types/discovery';
|
||||
import AbmrLoop from './AbmrLoop';
|
||||
import AiAnswerMock from './AiAnswerMock';
|
||||
import { buildDiscoveryMailto } from './discoveryContact';
|
||||
|
||||
interface DiscoveryHeroProps {
|
||||
overall: OverallScore;
|
||||
target: { score: number; grade: OverallScore['grade'] } | null;
|
||||
clinicName: string;
|
||||
sampleReportPath: string;
|
||||
criteriaCount: number;
|
||||
}
|
||||
|
||||
export default function DiscoveryHero({
|
||||
overall,
|
||||
target,
|
||||
clinicName,
|
||||
sampleReportPath,
|
||||
criteriaCount,
|
||||
}: DiscoveryHeroProps) {
|
||||
return (
|
||||
<section className="relative overflow-hidden bg-[radial-gradient(ellipse_at_top,#e0e7ff_0%,#faf5ff_45%,#fdf2f8_100%)]">
|
||||
{/* Decorative blobs */}
|
||||
<div className="absolute top-[120px] left-[60px] w-64 h-64 bg-purple-300 rounded-full blur-3xl opacity-30 pointer-events-none" />
|
||||
<div className="absolute top-[180px] right-[60px] w-64 h-64 bg-pink-300 rounded-full blur-3xl opacity-30 pointer-events-none" />
|
||||
|
||||
<div className="relative flex flex-col items-center text-center px-6 pt-32 md:pt-46 pb-16 md:pb-22">
|
||||
{/* Badge */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6 }}
|
||||
className="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/60 backdrop-blur-sm border border-white/40 shadow-sm mb-8"
|
||||
>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
||||
<path
|
||||
d="M4.5 8c0-1.4 1-2.5 2.2-2.5 1.6 0 2.6 5 4.2 5 1.2 0 2.2-1.1 2.2-2.5s-1-2.5-2.2-2.5c-1.6 0-2.6 5-4.2 5C5.5 10.5 4.5 9.4 4.5 8Z"
|
||||
stroke="#6C5CE7"
|
||||
strokeWidth="1.4"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-sm font-medium text-slate-700">AI DISCOVERY · AEO / GEO for Clinics</span>
|
||||
</motion.div>
|
||||
|
||||
{/* Headline */}
|
||||
<motion.h1
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0.1 }}
|
||||
className="font-serif text-5xl md:text-7xl font-bold text-primary-900 leading-[1.1] tracking-[-0.02em] mb-6 break-keep"
|
||||
>
|
||||
AI가 추천하는 병원은
|
||||
<br />
|
||||
<span className="text-gradient">따로 있습니다.</span>
|
||||
</motion.h1>
|
||||
|
||||
{/* Sub copy */}
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0.2 }}
|
||||
className="text-lg md:text-xl text-slate-600 leading-relaxed max-w-3xl mb-10 break-keep"
|
||||
>
|
||||
고객은 이제 ChatGPT와 Perplexity에게 병원을 묻습니다.
|
||||
<br className="hidden md:block" /> 답변에 인용될 근거를 {criteriaCount}개 항목으로 실측
|
||||
진단하고, 8주 안에 구축합니다.
|
||||
</motion.p>
|
||||
|
||||
{/* CTAs */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0.3 }}
|
||||
className="flex flex-col sm:flex-row items-center gap-4 mb-18"
|
||||
>
|
||||
<a
|
||||
href={buildDiscoveryMailto('무료 진단 신청')}
|
||||
className="inline-flex items-center justify-center gap-2 px-10 py-4 text-lg font-medium text-white rounded-full shadow-xl bg-gradient-to-r from-[#4F1DA1] to-[#021341] hover:opacity-90 transition-opacity"
|
||||
>
|
||||
무료 AEO / GEO 진단 받기
|
||||
<ArrowRight className="w-5 h-5" />
|
||||
</a>
|
||||
<Link
|
||||
to={sampleReportPath}
|
||||
className="inline-flex items-center justify-center px-10 py-4 text-lg font-medium text-primary-900 bg-white/80 border border-slate-200 rounded-full hover:bg-white transition-colors"
|
||||
>
|
||||
샘플 리포트 보기
|
||||
</Link>
|
||||
</motion.div>
|
||||
|
||||
{/* ABMR loop + AI answer mock */}
|
||||
<div className="w-full max-w-7xl grid md:grid-cols-2 gap-6">
|
||||
<AbmrLoop overall={overall} target={target} />
|
||||
<AiAnswerMock clinicName={clinicName} criteriaCount={criteriaCount} />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* 정직성 인용문 + 3필 (하지 않을 것).
|
||||
* 순위·노출 보장형 문구 금지, "언급률과 신뢰구간으로 보고" 프레임 유지.
|
||||
*/
|
||||
import { motion } from 'motion/react';
|
||||
|
||||
const PILLS = [
|
||||
'효과 없는 llms.txt는 팔지 않습니다',
|
||||
'순위·노출을 보장하지 않습니다',
|
||||
'단발 측정으로 보고하지 않습니다',
|
||||
];
|
||||
|
||||
export default function HonestyStrip() {
|
||||
return (
|
||||
<section className="bg-white border-y border-[#eef0f7] px-6 py-18">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6 }}
|
||||
className="max-w-[880px] mx-auto text-center"
|
||||
>
|
||||
<blockquote className="font-serif italic font-semibold text-xl md:text-[27px] leading-normal text-primary-900 mb-7 break-keep">
|
||||
"스키마를 넣으면 인용된다고 약속하지 않습니다.
|
||||
<br className="hidden md:block" /> 인용될 수 없는 이유를 전부 제거하고, 결과를 반복
|
||||
측정으로 증명합니다."
|
||||
</blockquote>
|
||||
<div className="flex flex-wrap justify-center gap-3">
|
||||
{PILLS.map((pill) => (
|
||||
<div key={pill} className="px-[18px] py-2 bg-[#F4F6FB] border border-slate-200 rounded-full">
|
||||
<span className="text-sm font-medium text-slate-600 break-keep">{pill}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
/**
|
||||
* How It Works — Audit · Build · Prove 3단계 glass-card.
|
||||
* 아이콘은 시안의 커스텀 SVG를 그대로 사용 (F3F0FF 스퀘어 + accent 스트로크).
|
||||
*/
|
||||
import type { ReactNode } from 'react';
|
||||
import { motion } from 'motion/react';
|
||||
|
||||
interface Step {
|
||||
step: string;
|
||||
title: string;
|
||||
detail: string;
|
||||
icon: ReactNode;
|
||||
}
|
||||
|
||||
interface HowItWorksProps {
|
||||
criteriaCount: number;
|
||||
categoryCount: number;
|
||||
}
|
||||
|
||||
export default function HowItWorks({ criteriaCount, categoryCount }: HowItWorksProps) {
|
||||
const steps: Step[] = [
|
||||
{
|
||||
step: 'STEP 01',
|
||||
title: 'Audit',
|
||||
detail: `AEO/GEO 기준표 v1.0으로 ${criteriaCount}개 항목을 실측합니다. 크롤러 접근성부터 인용 가능 콘텐츠, 측정 인프라까지 ${categoryCount}개 카테고리 100점 척도. 항목마다 근거 등급을 명시합니다.`,
|
||||
icon: (
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
||||
<circle cx="11" cy="11" r="6.5" stroke="#6C5CE7" strokeWidth="1.6" />
|
||||
<path d="M16 16l4 4" stroke="#6C5CE7" strokeWidth="1.6" strokeLinecap="round" />
|
||||
<path d="M8.5 11h5M11 8.5v5" stroke="#6C5CE7" strokeWidth="1.6" strokeLinecap="round" />
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
{
|
||||
step: 'STEP 02',
|
||||
title: 'Build',
|
||||
detail:
|
||||
'MedicalClinic·Physician 스키마를 심고, 흩어진 표면의 NAP을 한 글자까지 통일합니다. 핵심 페이지에 정의문과 시술별 FAQ를 넣어 AI가 잘라 갈 단락을 만듭니다.',
|
||||
icon: (
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
||||
<path
|
||||
d="M8 4H6a2 2 0 0 0-2 2v3c0 1-.6 2-1.6 2.4v1.2C3.4 13 4 14 4 15v3a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v3c0 1 .6 2 1.6 2.4v1.2C20.6 13 20 14 20 15v3a2 2 0 0 1-2 2h-2"
|
||||
stroke="#6C5CE7"
|
||||
strokeWidth="1.6"
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
{
|
||||
step: 'STEP 03',
|
||||
title: 'Prove',
|
||||
detail:
|
||||
'GA4 AI 채널그룹과 서버로그 크롤러 검증을 설치하고, 질의 10개 × 5회 반복 스팟체크로 변화를 측정합니다. 단발 조회가 아니라 언급률과 신뢰구간으로만 보고합니다.',
|
||||
icon: (
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
||||
<path d="M4 20V10M10 20V4M16 20v-8M22 20H2" stroke="#6C5CE7" strokeWidth="1.6" strokeLinecap="round" />
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section id="how-it-works" className="bg-slate-50 px-6 py-24">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6 }}
|
||||
className="text-center mb-14"
|
||||
>
|
||||
<div className="text-sm font-bold tracking-[0.24em] text-accent mb-4">HOW IT WORKS</div>
|
||||
<h2 className="font-serif text-3xl md:text-[40px] font-bold leading-tight text-primary-900 break-keep">
|
||||
진단하고, 구축하고, 숫자로 증명합니다.
|
||||
</h2>
|
||||
</motion.div>
|
||||
|
||||
<div className="grid md:grid-cols-3 gap-6">
|
||||
{steps.map((item, index) => (
|
||||
<motion.div
|
||||
key={item.title}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, delay: index * 0.1 }}
|
||||
className="glass-card flex flex-col gap-3.5 p-8"
|
||||
>
|
||||
<div className="flex items-center justify-center w-12 h-12 bg-[#F3F0FF] rounded-xl">
|
||||
{item.icon}
|
||||
</div>
|
||||
<div className="flex items-baseline gap-2.5">
|
||||
<span className="text-[13px] font-bold tracking-[0.12em] text-accent">{item.step}</span>
|
||||
<span className="font-serif text-2xl font-bold text-primary-900">{item.title}</span>
|
||||
</div>
|
||||
<p className="text-[15.5px] leading-[1.75] text-slate-600 break-keep">{item.detail}</p>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* 8주 로드맵 타임라인. 타이틀의 등급 전환(C → B)은 계산값에서 파생.
|
||||
*/
|
||||
import { motion } from 'motion/react';
|
||||
import type { OverallScore } from '../../types/discovery';
|
||||
|
||||
interface RoadmapProps {
|
||||
grade: OverallScore['grade'];
|
||||
targetGrade: OverallScore['grade'] | null;
|
||||
criteriaCount: number;
|
||||
unverifiedCount: number;
|
||||
}
|
||||
|
||||
export default function Roadmap({ grade, targetGrade, criteriaCount, unverifiedCount }: RoadmapProps) {
|
||||
const phases = [
|
||||
{
|
||||
week: 'W1–2',
|
||||
title: '기반 설치',
|
||||
detail: '스키마·NAP·측정 인프라를 설치하고 기준선 스팟체크를 1회 측정합니다.',
|
||||
},
|
||||
{
|
||||
week: 'W3–6',
|
||||
title: '콘텐츠 구조',
|
||||
detail: '정의문·FAQ·H1 재설계와 HTML 비교표를 구축하고 WordPress를 업그레이드합니다.',
|
||||
},
|
||||
{
|
||||
week: 'W7–8',
|
||||
title: '재진단·보고',
|
||||
detail: `${criteriaCount}개 항목을 재측정하고 미검증 ${unverifiedCount}개를 반영해 총점을 다시 산정합니다.`,
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section className="bg-slate-50 px-6 py-24">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6 }}
|
||||
className="text-center mb-16"
|
||||
>
|
||||
<div className="text-sm font-bold tracking-[0.24em] text-accent mb-4">8-WEEK ROADMAP</div>
|
||||
<h2 className="font-serif text-3xl md:text-[40px] font-bold leading-tight text-primary-900 break-keep">
|
||||
{targetGrade
|
||||
? `8주 안에, ${grade}에서 ${targetGrade}로 올립니다.`
|
||||
: `8주마다, ${grade} 등급을 재검증합니다.`}
|
||||
</h2>
|
||||
</motion.div>
|
||||
|
||||
<div className="relative">
|
||||
{/* Connecting line (desktop only) */}
|
||||
<div className="hidden md:block absolute top-[11px] left-[8%] right-[8%] h-0.5 bg-[#D5CDF5]" />
|
||||
<div className="grid md:grid-cols-3 gap-10 md:gap-8">
|
||||
{phases.map((phase, index) => (
|
||||
<motion.div
|
||||
key={phase.week}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, delay: index * 0.1 }}
|
||||
className="flex flex-col items-center text-center gap-3.5"
|
||||
>
|
||||
<div className="relative w-6 h-6 bg-accent border-[5px] border-slate-50 rounded-full box-border" />
|
||||
<div className="text-sm font-bold tracking-[0.1em] text-accent">{phase.week}</div>
|
||||
<div className="text-[17px] font-bold text-primary-900">{phase.title}</div>
|
||||
<p className="text-[14.5px] leading-[1.7] text-slate-500 max-w-[280px] break-keep">
|
||||
{phase.detail}
|
||||
</p>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
/**
|
||||
* 샘플 리포트 섹션 — 뷰성형외과 실측 스냅샷.
|
||||
* 점수·등급·카테고리 %·항목 수는 전부 discoveryScore 계산값에서 렌더 (하드코딩 금지).
|
||||
* 발견 칩 3장의 카피는 result.keyFindings를 랜딩용으로 압축한 시안 확정 문안이다.
|
||||
*/
|
||||
import { motion } from 'motion/react';
|
||||
import type { DiscoveryResult, OverallScore } from '../../types/discovery';
|
||||
import { scorePctColor } from '../../lib/discoveryScore';
|
||||
import { ScoreRing } from '../report/ui/ScoreRing';
|
||||
|
||||
const GRADE_BADGE_STYLE: Record<OverallScore['grade'], string> = {
|
||||
A: 'bg-[#EFF0FF] border-[#C5CBF5] text-[#3A3F7C]',
|
||||
B: 'bg-[#F3F0FF] border-[#D5CDF5] text-[#4A3A7C]',
|
||||
C: 'bg-[#FFF6ED] border-[#F5E0C5] text-[#7C5C3A]',
|
||||
D: 'bg-[#FFF0F0] border-[#F5D5DC] text-[#7C3A4B]',
|
||||
};
|
||||
|
||||
/** keyFindings 압축본 (시안 확정 카피). 수치는 2026-08-28 실측 스냅샷과 일치한다. */
|
||||
const FINDING_CHIPS = [
|
||||
{
|
||||
label: '치명',
|
||||
chipClass: 'bg-[#FFF0F0] border-[#F5D5DC] text-[#7C3A4B]',
|
||||
dotColor: '#D4889A',
|
||||
title: 'AI가 누구인지 확정 못 함',
|
||||
detail: 'MedicalClinic 스키마 없음. 시술 목록 JSON-LD는 문법 오류로 통째로 버려집니다.',
|
||||
},
|
||||
{
|
||||
label: '보완',
|
||||
chipClass: 'bg-[#FFF6ED] border-[#F5E0C5] text-[#7C5C3A]',
|
||||
dotColor: '#D4A872',
|
||||
title: '인용할 문장이 없음',
|
||||
detail: '정의문 0개, FAQ 0개, HTML 표 0개. 답변엔진이 잘라 갈 단락이 없습니다.',
|
||||
},
|
||||
{
|
||||
label: '강점',
|
||||
chipClass: 'bg-[#F3F0FF] border-[#D5CDF5] text-[#4A3A7C]',
|
||||
dotColor: '#9B8AD4',
|
||||
title: '표면 자산은 이미 강함',
|
||||
detail: '강남언니 후기 19,316건, GBP 4.9점. 홈페이지가 따라가면 바로 인용 근거가 됩니다.',
|
||||
},
|
||||
];
|
||||
|
||||
interface SampleReportProps {
|
||||
overall: OverallScore;
|
||||
result: DiscoveryResult;
|
||||
}
|
||||
|
||||
export default function SampleReport({ overall, result }: SampleReportProps) {
|
||||
const totalCriteria = overall.categories.reduce((sum, c) => sum + c.totalCount, 0);
|
||||
const verifiedCriteria = overall.categories.reduce((sum, c) => sum + c.verifiedCount, 0);
|
||||
const unverifiedCriteria = totalCriteria - verifiedCriteria;
|
||||
|
||||
return (
|
||||
<section id="sample-report" className="bg-[#F4F6FB] px-6 py-24">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6 }}
|
||||
>
|
||||
<div className="text-sm font-bold tracking-[0.24em] text-accent mb-4">
|
||||
SAMPLE REPORT · {result.clinicName} 실측
|
||||
</div>
|
||||
<h2 className="font-serif text-3xl md:text-[40px] font-bold leading-tight text-primary-900 mb-3 break-keep">
|
||||
읽을 수는 있지만, 인용할 근거가 없습니다.
|
||||
</h2>
|
||||
<p className="text-[17px] leading-[1.7] text-slate-500 mb-12 break-keep">
|
||||
실제 1차 진단 결과입니다. 어디가 강하고 어디가 비어 있는지, 점수는 카테고리 단위로
|
||||
드러납니다.
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
<div className="grid lg:grid-cols-[380px_minmax(0,1fr)] gap-6">
|
||||
{/* Score ring card */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, delay: 0.1 }}
|
||||
className="flex flex-col items-center justify-center gap-4 bg-white border border-slate-200 rounded-2xl px-8 py-10 shadow-[0_8px_32px_rgba(31,38,135,0.07)]"
|
||||
>
|
||||
<ScoreRing score={overall.score} size={160} valueClassName="text-[40px]" subLabel="/ 100" />
|
||||
<div className="flex items-center gap-2.5">
|
||||
<div className={`px-3.5 py-[5px] border rounded-full ${GRADE_BADGE_STYLE[overall.grade]}`}>
|
||||
<span className="text-sm font-bold">등급 {overall.grade}</span>
|
||||
</div>
|
||||
<span className="text-sm text-slate-500">AI Answer Readiness</span>
|
||||
</div>
|
||||
<p className="text-[13.5px] leading-relaxed text-slate-400 text-center break-keep">
|
||||
{totalCriteria}개 항목 중 {verifiedCriteria}개 실측.
|
||||
<br />
|
||||
미검증 {unverifiedCriteria}개는 분모에서 제외했습니다.
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
{/* Category bars */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, delay: 0.2 }}
|
||||
className="flex flex-col justify-center gap-[18px] bg-white border border-slate-200 rounded-2xl px-6 md:px-10 py-9 shadow-[0_8px_32px_rgba(31,38,135,0.07)]"
|
||||
>
|
||||
{overall.categories.map((cat) => {
|
||||
const color = scorePctColor(cat.pct);
|
||||
return (
|
||||
<div key={cat.category.id} className="flex flex-col gap-[7px]">
|
||||
<div className="flex justify-between items-baseline gap-3">
|
||||
<span className="text-[15px] font-semibold text-primary-900 break-keep">
|
||||
{cat.category.code} · {cat.category.name}
|
||||
</span>
|
||||
<span className="text-[15px] font-bold" style={{ color }}>
|
||||
{cat.pct}%
|
||||
</span>
|
||||
</div>
|
||||
<div className="h-2 bg-slate-100 rounded-full overflow-hidden">
|
||||
<motion.div
|
||||
className="h-2 rounded-full"
|
||||
style={{ backgroundColor: color }}
|
||||
initial={{ width: 0 }}
|
||||
whileInView={{ width: `${Math.max(cat.pct, 2)}%` }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.8, ease: 'easeOut' }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* Finding chips */}
|
||||
<div className="grid md:grid-cols-3 gap-6 mt-6">
|
||||
{FINDING_CHIPS.map((finding, index) => (
|
||||
<motion.div
|
||||
key={finding.title}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, delay: index * 0.1 }}
|
||||
className="flex flex-col gap-2.5 bg-white border border-slate-200 rounded-2xl px-7 py-6"
|
||||
>
|
||||
<div
|
||||
className={`inline-flex self-start items-center gap-[7px] px-3 py-1 border rounded-full ${finding.chipClass}`}
|
||||
>
|
||||
<span className="w-[7px] h-[7px] rounded-full" style={{ backgroundColor: finding.dotColor }} />
|
||||
<span className="text-[13px] font-bold">{finding.label}</span>
|
||||
</div>
|
||||
<div className="text-[15.5px] font-semibold text-primary-900 break-keep">{finding.title}</div>
|
||||
<p className="text-sm leading-[1.7] text-slate-500 break-keep">{finding.detail}</p>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* Why Now 다크 밴드.
|
||||
* ⚠️ 3개 수치(12종 크롤러 / 네이버 기여 0건 / Direct 유실 35~70%)는 근거 있는 실측·문헌 값.
|
||||
* 새 시장 통계를 임의로 추가하지 않는다 (근거 확인 후에만).
|
||||
*/
|
||||
import { motion } from 'motion/react';
|
||||
|
||||
const STATS = [
|
||||
{
|
||||
figure: '12종',
|
||||
title: 'AI 크롤러가 이미 읽는 중',
|
||||
detail:
|
||||
'GPTBot·OAI-SearchBot·PerplexityBot 등이 오늘도 병원 사이트를 수집합니다. 문제는 접근이 아니라 인용할 내용입니다.',
|
||||
},
|
||||
{
|
||||
figure: '0건',
|
||||
title: '네이버 자산의 AI 기여',
|
||||
detail:
|
||||
'네이버 블로그·플레이스는 robots.txt로 AI 크롤러를 전면 차단합니다(2026-08 실측). 지금까지의 네이버 마케팅은 AI 답변에 닿지 않습니다.',
|
||||
},
|
||||
{
|
||||
figure: '35~70%',
|
||||
title: 'Direct로 숨는 AI 유입',
|
||||
detail:
|
||||
'AI가 보낸 방문의 상당수는 유입 경로 없이 도착합니다. 측정 인프라 없이는 이미 오는 환자도 세지 못합니다.',
|
||||
},
|
||||
];
|
||||
|
||||
export default function WhyNow() {
|
||||
return (
|
||||
<section id="why-now" className="bg-[#0A1128] px-6 py-22">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6 }}
|
||||
>
|
||||
<div className="text-sm font-bold tracking-[0.24em] text-[#AF90FF] mb-4">WHY NOW</div>
|
||||
<h2 className="font-serif text-3xl md:text-[40px] font-bold leading-tight text-white mb-3 break-keep">
|
||||
검색은 끝났고, 답변이 시작됐습니다.
|
||||
</h2>
|
||||
<p className="text-[17px] leading-[1.7] text-slate-400 mb-14 break-keep">
|
||||
답변엔진은 광고 입찰이 아니라 크롤링 가능한 오픈웹 근거로 병원을 고릅니다. 인용되지
|
||||
못하면 비교 대상에도 오르지 못합니다.
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
<div className="grid md:grid-cols-3 gap-8">
|
||||
{STATS.map((stat, index) => (
|
||||
<motion.div
|
||||
key={stat.figure}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, delay: index * 0.1 }}
|
||||
className="flex flex-col gap-2.5 p-7 bg-[#0F1B45] border border-[#2A3A6B] rounded-2xl"
|
||||
>
|
||||
<div className="font-serif text-[46px] font-bold text-[#AF90FF] leading-tight">
|
||||
{stat.figure}
|
||||
</div>
|
||||
<div className="text-base font-semibold text-white break-keep">{stat.title}</div>
|
||||
<p className="text-[14.5px] leading-[1.7] text-slate-400 break-keep">{stat.detail}</p>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* AI Discovery 랜딩 전용 연락처.
|
||||
* 랜딩 CTA는 o2oteam@o2o.kr 단일 채널 (전역 Navbar의 contact@o2o.kr과 별도 트랙).
|
||||
*/
|
||||
export const DISCOVERY_CONTACT_EMAIL = 'o2oteam@o2o.kr';
|
||||
|
||||
export const buildDiscoveryMailto = (subject: string) =>
|
||||
`mailto:${DISCOVERY_CONTACT_EMAIL}?subject=${encodeURIComponent(`[INFINITH AI Discovery] ${subject}`)}`;
|
||||
@@ -6,6 +6,10 @@ interface ScoreRingProps {
|
||||
size?: number;
|
||||
label?: string;
|
||||
color?: string;
|
||||
/** 링 중앙 숫자 타이포 오버라이드 (기본 text-2xl) */
|
||||
valueClassName?: string;
|
||||
/** 링 중앙 숫자 아래 보조 표기 (예: "/ 100") */
|
||||
subLabel?: string;
|
||||
}
|
||||
|
||||
function getScoreColor(score: number, maxScore: number): string {
|
||||
@@ -22,6 +26,8 @@ export function ScoreRing({
|
||||
size = 120,
|
||||
label,
|
||||
color,
|
||||
valueClassName = 'text-2xl',
|
||||
subLabel,
|
||||
}: ScoreRingProps) {
|
||||
const strokeWidth = 8;
|
||||
const radius = (size - strokeWidth) / 2;
|
||||
@@ -61,8 +67,9 @@ export function ScoreRing({
|
||||
transition={{ duration: 1, ease: 'easeOut' }}
|
||||
/>
|
||||
</svg>
|
||||
<div className="absolute inset-0 flex items-center justify-center">
|
||||
<span className="text-2xl font-bold text-[#0A1128]">{score}</span>
|
||||
<div className="absolute inset-0 flex flex-col items-center justify-center">
|
||||
<span className={`${valueClassName} font-bold text-[#0A1128]`}>{score}</span>
|
||||
{subLabel && <span className="text-[13px] text-slate-400">{subLabel}</span>}
|
||||
</div>
|
||||
</div>
|
||||
{label && (
|
||||
|
||||
@@ -30,6 +30,23 @@ export const gradeFromScore = (score: number): OverallScore['grade'] => {
|
||||
return 'D';
|
||||
};
|
||||
|
||||
/** 점수 구간별 색 (ScoreRing과 동일 기준) */
|
||||
export const scorePctColor = (pct: number) =>
|
||||
pct <= 40 ? '#C084CF' : pct <= 60 ? '#8B9CF7' : pct <= 80 ? '#7C6DD8' : '#6C5CE7';
|
||||
|
||||
/**
|
||||
* 다음 등급까지의 목표 점수. gradeFromScore의 경계와 반드시 일치해야 한다.
|
||||
* 재진단 목표 표기에 사용 (예: 48/C → { score: 61, grade: 'B' }). A등급이면 null.
|
||||
*/
|
||||
export const nextGradeTarget = (
|
||||
score: number,
|
||||
): { score: number; grade: OverallScore['grade'] } | null => {
|
||||
if (score <= 40) return { score: 41, grade: 'C' };
|
||||
if (score <= 60) return { score: 61, grade: 'B' };
|
||||
if (score <= 80) return { score: 81, grade: 'A' };
|
||||
return null;
|
||||
};
|
||||
|
||||
export function scoreDiscovery(rubric: Rubric, result: DiscoveryResult): OverallScore {
|
||||
const byId = new Map<string, CriterionResult>(result.results.map((r) => [r.criterionId, r]));
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import DataValidationPage from './pages/DataValidationPage.tsx';
|
||||
import ClinicProfilePage from './pages/ClinicProfilePage.tsx';
|
||||
import ApiDashboardPage from './pages/ApiDashboardPage.tsx';
|
||||
import LoginPage from './pages/LoginPage.tsx';
|
||||
import DiscoveryLandingPage from './pages/DiscoveryLandingPage.tsx';
|
||||
import DiscoveryReportPage from './pages/DiscoveryReportPage.tsx';
|
||||
import './index.css';
|
||||
|
||||
@@ -37,6 +38,7 @@ createRoot(document.getElementById('root')!).render(
|
||||
<Route path="data-validation" element={<DataValidationPage />} />
|
||||
<Route path="clinic/:id" element={<ClinicProfilePage />} />
|
||||
<Route path="api-dashboard" element={<ApiDashboardPage />} />
|
||||
<Route path="discovery" element={<DiscoveryLandingPage />} />
|
||||
<Route path="discovery/:id" element={<DiscoveryReportPage />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
|
||||
@@ -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