feat: webforai.kr 공개 전 정리 (비식별 샘플·실제 리포트 비공개·약관)
- 랜딩 샘플 리포트·AI 답변 예시·문의 서식 예시를 가상 A성형외과로 바꾼다 (discovery_sample, 고정 시드 무작위 판정) - VITE_SITE=discovery 배포는 랜딩·요금·로그인·약관만 연다. 실제 병원 진단 결과와 내부 화면 경로는 홈으로 돌린다 - src/data·src/services 를 부수효과 없는 모듈로 표시해 쓰지 않는 실제 병원 목업이 공개 번들에서 빠지게 한다 - 공개 배포 번들에 GEMINI_API_KEY 를 넣지 않는다 - 헤더 Product·Use Cases 는 공개 배포에서 숨기고, 푸터에 개인정보처리방침·이용약관 페이지를 연결한다 - 기준표 설명의 실제 병원 예시 문구를 일반 예시로 바꾼다 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
63e71b73cc
commit
f03c6a5b90
14 files changed
+442
-50
No files matched your search
@@ -200,7 +200,7 @@ export default function ContactModal({ open, onClose, source }: ContactModalProp
|
||||
type="text"
|
||||
value={company}
|
||||
onChange={(e) => setCompany(e.target.value)}
|
||||
placeholder="예: 뷰성형외과"
|
||||
placeholder="예: OO성형외과"
|
||||
className={`${INPUT_CLASS} mb-4`}
|
||||
/>
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ export default function Footer() {
|
||||
Infinite Marketing for Premium Medical Business & Marketing Agency
|
||||
</div>
|
||||
<div className="flex items-center gap-6 text-sm font-medium text-slate-600 shrink-0">
|
||||
<a href="#" className="hover:text-primary-900 transition-colors">Privacy Policy</a>
|
||||
<a href="#" className="hover:text-primary-900 transition-colors">Terms of Service</a>
|
||||
<Link to="/privacy" className="font-bold text-primary-900 hover:opacity-80 transition-opacity">개인정보처리방침</Link>
|
||||
<Link to="/terms" className="hover:text-primary-900 transition-colors">이용약관</Link>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setContactOpen(true)}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* LegalLayout: 개인정보처리방침·이용약관 공통 틀.
|
||||
* 조항은 { title, body } 배열로 받고, body 의 각 줄은 문단 또는 목록 항목으로 그린다.
|
||||
* '- ' 로 시작하는 줄은 목록 항목이다.
|
||||
*/
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export interface LegalSection {
|
||||
title: string;
|
||||
body: (string | ReactNode)[];
|
||||
}
|
||||
|
||||
interface LegalLayoutProps {
|
||||
title: string;
|
||||
intro: string;
|
||||
effectiveDate: string;
|
||||
sections: LegalSection[];
|
||||
}
|
||||
|
||||
function renderBody(body: LegalSection['body']) {
|
||||
const out: ReactNode[] = [];
|
||||
let list: ReactNode[] = [];
|
||||
const flush = () => {
|
||||
if (list.length) {
|
||||
out.push(<ul key={`ul-${out.length}`} className="list-disc pl-5 space-y-1.5">{list}</ul>);
|
||||
list = [];
|
||||
}
|
||||
};
|
||||
body.forEach((line, i) => {
|
||||
if (typeof line === 'string' && line.startsWith('- ')) {
|
||||
list.push(<li key={i}>{line.slice(2)}</li>);
|
||||
return;
|
||||
}
|
||||
flush();
|
||||
out.push(<p key={i}>{line}</p>);
|
||||
});
|
||||
flush();
|
||||
return out;
|
||||
}
|
||||
|
||||
export default function LegalLayout({ title, intro, effectiveDate, sections }: LegalLayoutProps) {
|
||||
return (
|
||||
<section className="min-h-screen pt-32 pb-24 px-6 bg-white [word-break:keep-all]">
|
||||
<div className="max-w-3xl mx-auto">
|
||||
<h1 className="font-serif text-3xl md:text-4xl font-bold text-primary-900 mb-4">{title}</h1>
|
||||
<p className="text-[15px] leading-[1.8] text-slate-600 mb-3">{intro}</p>
|
||||
<p className="text-sm text-slate-400 mb-12">시행일 {effectiveDate}</p>
|
||||
<div className="flex flex-col gap-10">
|
||||
{sections.map((s, i) => (
|
||||
<div key={s.title}>
|
||||
<h2 className="text-lg font-bold text-primary-900 mb-3">
|
||||
제{i + 1}조 {s.title}
|
||||
</h2>
|
||||
<div className="flex flex-col gap-2.5 text-[15px] leading-[1.8] text-slate-600">{renderBody(s.body)}</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -24,6 +24,7 @@ import { Link, useLocation } from 'react-router';
|
||||
import { ArrowRight } from 'lucide-react';
|
||||
import ContactModal from './ContactModal';
|
||||
import ClinicNav, { clinicIdFromPath } from './ClinicNav';
|
||||
import { DISCOVERY_SITE } from '../lib/site';
|
||||
|
||||
export default function Navbar() {
|
||||
const { pathname } = useLocation();
|
||||
@@ -45,18 +46,23 @@ export default function Navbar() {
|
||||
|
||||
{/* 가운데 메뉴 */}
|
||||
<div className="hidden md:flex items-center gap-8 text-sm font-medium text-slate-600">
|
||||
<a href="/#solution" className="hover:text-primary-900 transition-colors">
|
||||
Product
|
||||
</a>
|
||||
{/* Product·Use Cases 는 INFINITH 랜딩의 섹션 앵커라 그 섹션이 없는 공개 배포(webforai.kr)에서는 뺀다 */}
|
||||
{!DISCOVERY_SITE && (
|
||||
<a href="/#solution" className="hover:text-primary-900 transition-colors">
|
||||
Product
|
||||
</a>
|
||||
)}
|
||||
<Link
|
||||
to="/pricing?from=header"
|
||||
className="hover:text-primary-900 transition-colors"
|
||||
>
|
||||
Pricing
|
||||
</Link>
|
||||
<a href="/#use-cases" className="hover:text-primary-900 transition-colors">
|
||||
Use Cases
|
||||
</a>
|
||||
{!DISCOVERY_SITE && (
|
||||
<a href="/#use-cases" className="hover:text-primary-900 transition-colors">
|
||||
Use Cases
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* 우측 CTA — Login(Secondary) + 문의하기(Primary) */}
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
*/
|
||||
import { motion } from 'motion/react';
|
||||
|
||||
const CITED_DOMAINS = ['viewclinic.com', 'gangnamunni.com', 'youtube.com'];
|
||||
// 예시 카드라 실제 병원 도메인을 쓰지 않는다. 병원 사이트 자리는 일반 명칭으로 둔다.
|
||||
const CITED_DOMAINS = ['병원 공식 홈페이지', 'gangnamunni.com', 'youtube.com'];
|
||||
|
||||
interface AiAnswerMockProps {
|
||||
clinicName: string;
|
||||
@@ -45,12 +46,11 @@ export default function AiAnswerMock({ clinicName, criteriaCount }: AiAnswerMock
|
||||
|
||||
{/* 목표 상태의 답변 예시 */}
|
||||
<p className="text-[15px] leading-[1.8] text-slate-600 mb-4 break-keep">
|
||||
모티바 공식 KOL 의료진이 있는{' '}
|
||||
의료진 14명의 약력을 공개한{' '}
|
||||
<span className="bg-[#F3F0FF] text-[#4A3A7C] font-semibold px-1.5 py-0.5 rounded-md">
|
||||
{clinicName}
|
||||
</span>
|
||||
는 강남언니 후기 19,316건과 의료진 26명 정보가 공개되어 있으며, 시술별 FAQ와 비교표를
|
||||
제공합니다.
|
||||
는 후기 7,800여 건이 공개되어 있고, 시술별 FAQ와 회복 일정표를 제공합니다.
|
||||
</p>
|
||||
|
||||
{/* 인용 도메인 칩 + 목표 상태 라벨 (제거 금지) */}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* 샘플 리포트 섹션 — 뷰성형외과 실측 스냅샷.
|
||||
* 샘플 리포트 섹션. 가상 데이터(discovery_sample)로 만든 예시이며 실제 병원 진단 결과가 아니다.
|
||||
* 점수·등급·항목 %·항목 수는 전부 discoveryScore(v1 실측)·discoveryScoreV2(AEO/GEO) 계산값에서 렌더 (하드코딩 금지).
|
||||
* 발견 칩 3장의 카피는 result.keyFindings를 랜딩용으로 압축한 시안 확정 문안이다.
|
||||
*/
|
||||
@@ -16,28 +16,28 @@ const GRADE_BADGE_STYLE: Record<OverallScore['grade'], string> = {
|
||||
D: 'bg-[#FFF0F0] border-[#F5D5DC] text-[#7C3A4B]',
|
||||
};
|
||||
|
||||
/** keyFindings 압축본 (시안 확정 카피). 수치는 2026-09-07 재검증(v1.1) 스냅샷과 일치한다. */
|
||||
/** 발견 칩 예시 카피. 특정 병원을 알아볼 수 없도록 고유 명칭을 빼고 수치는 가상 값으로 둔다. */
|
||||
const FINDING_CHIPS = [
|
||||
{
|
||||
label: '치명',
|
||||
chipClass: 'bg-[#FFF0F0] border-[#F5D5DC] text-[#7C3A4B]',
|
||||
dotColor: '#D4889A',
|
||||
title: 'AI가 누구인지 확정 못 함',
|
||||
detail: 'MedicalClinic 스키마 없음. 시술 목록 JSON-LD는 문법 오류로 통째로 버려집니다.',
|
||||
detail: 'MedicalClinic 스키마가 없고, 시술 정보 JSON-LD는 문법 오류로 읽히지 않습니다.',
|
||||
},
|
||||
{
|
||||
label: '보완',
|
||||
chipClass: 'bg-[#FFF6ED] border-[#F5E0C5] text-[#7C5C3A]',
|
||||
dotColor: '#D4A872',
|
||||
title: '인용할 문장이 없음',
|
||||
detail: '정의문 0개, HTML 표 0개, FAQ는 프리저베 한 페이지뿐. 답변엔진이 잘라 갈 단락이 없습니다.',
|
||||
detail: '정의문 2개, HTML 표 0개, FAQ는 시술 페이지 한 곳뿐. 답변엔진이 잘라 갈 단락이 적습니다.',
|
||||
},
|
||||
{
|
||||
label: '강점',
|
||||
chipClass: 'bg-[#F3F0FF] border-[#D5CDF5] text-[#4A3A7C]',
|
||||
dotColor: '#9B8AD4',
|
||||
title: '표면 자산은 이미 강함',
|
||||
detail: '강남언니 후기 19,373건, GBP 4.9점. 홈페이지가 따라가면 바로 인용 근거가 됩니다.',
|
||||
detail: '후기 플랫폼 후기 7,800여 건, 지도 평점 4.7점. 홈페이지가 따라가면 바로 인용 근거가 됩니다.',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -62,13 +62,13 @@ export default function SampleReport({ overall, axes, result }: SampleReportProp
|
||||
transition={{ duration: 0.6 }}
|
||||
>
|
||||
<div className="text-sm font-bold tracking-[0.24em] text-accent mb-4">
|
||||
SAMPLE REPORT · 실제 사례
|
||||
SAMPLE REPORT · 예시
|
||||
</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차 진단 결과입니다. 답변 준비도(AEO)와 출처 준비도(GEO)를 각각 100점으로 보고,
|
||||
가상의 A성형외과로 만든 예시 리포트입니다. 답변 준비도(AEO)와 출처 준비도(GEO)를 각각 100점으로 보고,
|
||||
어디가 강하고 어디가 비어 있는지 항목 단위로 드러냅니다.
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
Reference in new issue
Block a user