- src/lib/site.ts 의 SHOW_PRICING·SHOW_SAMPLE_REPORT·SHOW_USE_CASES 로 라우트·헤더·랜딩 버튼을 한 곳에서 켜고 끈다. 공개 배포 기본값은 모두 꺼짐 - 리포트 본문을 DiscoveryReportView 로 분리하고, 가상 데이터만 그리는 /discovery/sample 을 만든다 - 예시 리포트 경로는 병원 작업 공간 메뉴 대신 일반 헤더를 쓴다 - Use Cases 데이터(src/data/useCases.ts, 비어 있음)와 섹션을 두고, 사례가 있을 때만 섹션·메뉴가 보인다 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.9 KiB
TypeScript
43 lines
1.9 KiB
TypeScript
/**
|
|
* Use Cases 섹션 (공개 랜딩). 사례는 src/data/useCases.ts 에서 읽는다.
|
|
* 헤더의 Use Cases 메뉴(/#use-cases)가 이 섹션으로 온다. 사례가 없으면 랜딩에서 그리지 않는다.
|
|
*/
|
|
import { motion } from 'motion/react';
|
|
import type { UseCase } from '../../data/useCases';
|
|
|
|
export default function UseCasesSection({ cases }: { cases: UseCase[] }) {
|
|
return (
|
|
<section id="use-cases" className="bg-white px-6 py-24">
|
|
<div className="max-w-7xl mx-auto">
|
|
<div className="text-sm font-bold tracking-[0.24em] text-accent mb-4">USE CASES</div>
|
|
<h2 className="font-serif text-3xl md:text-[40px] font-bold leading-tight text-primary-900 mb-12 break-keep">
|
|
진단 이후 무엇이 달라졌는지
|
|
</h2>
|
|
<div className="grid md:grid-cols-3 gap-6">
|
|
{cases.map((c, index) => (
|
|
<motion.div
|
|
key={c.id}
|
|
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-3 bg-[#F4F6FB] border border-slate-200 rounded-2xl px-7 py-6"
|
|
>
|
|
<div className="text-[13px] font-bold text-accent">{c.specialty}</div>
|
|
<div className="text-[17px] font-semibold text-primary-900 break-keep">{c.clinicLabel}</div>
|
|
<p className="ui-note leading-[1.7]">{c.challenge}</p>
|
|
<ul className="list-disc pl-5 text-[14.5px] text-slate-600 space-y-1 break-keep">
|
|
{c.actions.map((a) => (
|
|
<li key={a}>{a}</li>
|
|
))}
|
|
</ul>
|
|
<p className="text-[15px] font-semibold text-primary-900 break-keep">{c.outcome}</p>
|
|
<p className="text-[13px] text-slate-400">{c.measuredAt}</p>
|
|
</motion.div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|