feat: PART III 랜딩 피봇 — 다채널 URL 입력 + Strategic Planner 포지셔닝
- MultiChannelInput: URL 뭉치 붙여넣기 → classifyUrls로 7개 채널 자동 분류
(homepage·YouTube·Instagram·Facebook·네이버플레이스·블로그·강남언니)
· "Analyze" pill 버튼 복원 + variant별 색 분기 (hero=dark brand,
cta=#fff3eb→#e4cfff→#f5f9ff warm 3-stop)
· placeholder 중앙 정렬 + "한 줄씩" 규칙 제거 (유연 파싱 노출)
- Navbar: Free Report CTA 제거 → Login + 문의하기 (contact@o2o.kr) duo
- LoginPage: 계약 고객용 스캐폴딩 페이지 신규 추가
- PricingPage: 계약 기반 영업 반영, FAQ에서 해지·환불 항목 제거
(세부 정책 미확정 → 후속 추가)
- Landing 카피 Strategic Planner 포지셔닝 피봇:
· Hero sub: "10분 진단 → 12개월 전략 설계"
· Solution AGDP: Audit / Generation / Direction / Planning 재해석
· Modules: Intelligence + Planning Available, 나머지 Coming Soon 정직화
· TargetAudience: 전략 파트너 / 전략 자문 + Partner Program 신청 waitlist
· Problems: 콘텐츠 소진 / 경쟁사 분석 부재 / 데이터 부족 3축
· UseCases: 진단·전략·KPI(Medical) · 수주·자문·포트폴리오(Agency)
- discover-channels Edge Function: manualChannels 수용 — 사용자 붙여넣은
URL이 Firecrawl 스크래핑보다 우선, naverPlace/gangnamUnni 직접 주입
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
517075b3ef
commit
938ebacbf9
20 files changed
+1774
-146
No files matched your search
@@ -57,7 +57,12 @@ export default function AnalysisLoadingPage() {
|
||||
const navigate = useNavigate();
|
||||
const location = useLocation();
|
||||
const { reportId: urlReportId } = useParams<{ reportId?: string }>();
|
||||
const url = (location.state as { url?: string })?.url;
|
||||
const locState = (location.state as {
|
||||
url?: string;
|
||||
manualChannels?: import('../lib/supabase').ManualChannels;
|
||||
}) ?? {};
|
||||
const url = locState.url;
|
||||
const manualChannels = locState.manualChannels;
|
||||
const hasStarted = useRef(false);
|
||||
|
||||
const phaseIndex = PHASE_STEPS.findIndex(s => s.key === phase);
|
||||
@@ -76,7 +81,9 @@ export default function AnalysisLoadingPage() {
|
||||
if (startPhase === 'discovering') {
|
||||
if (!startUrl) throw new Error('No URL provided');
|
||||
setPhase('discovering');
|
||||
const discovery = await discoverChannels(startUrl);
|
||||
// manualChannels가 있으면 Edge Function이 Firecrawl discovery를 스킵하고
|
||||
// 사용자 제공 URL을 직접 verified_channels에 주입합니다.
|
||||
const discovery = await discoverChannels(startUrl, undefined, manualChannels);
|
||||
if (!discovery.success) throw new Error(discovery.error || 'Channel discovery failed');
|
||||
reportId = discovery.reportId;
|
||||
clinicId = discovery.clinicId;
|
||||
@@ -146,7 +153,7 @@ export default function AnalysisLoadingPage() {
|
||||
setErrorDomain((err as { domain?: string }).domain || null);
|
||||
}
|
||||
}
|
||||
}, [navigate]);
|
||||
}, [navigate, manualChannels]);
|
||||
|
||||
// Retry from the current failed phase
|
||||
const handleRetry = useCallback(() => {
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/**
|
||||
* LoginPage — 계약 병원 전용 로그인 (스캐폴딩).
|
||||
*
|
||||
* 현재 상태:
|
||||
* - UI·라우트 스캐폴딩만 제공합니다. 실제 Supabase Auth 연동은 후속 작업입니다.
|
||||
* - 제출 시 안내 메시지만 표시하고, 리드는 문의하기로 유도합니다.
|
||||
*
|
||||
* 향후 작업:
|
||||
* - Supabase `signInWithPassword` 연동
|
||||
* - 세션 훅 (`useSession`) + ProtectedRoute 적용
|
||||
* - 로그인 후 대시보드 리다이렉트
|
||||
*/
|
||||
import { useState, type FormEvent } from 'react';
|
||||
import { Link } from 'react-router';
|
||||
import { ArrowRight } from 'lucide-react';
|
||||
import { buildContactMailto } from '../lib/contact';
|
||||
|
||||
export default function LoginPage() {
|
||||
const [email, setEmail] = useState('');
|
||||
const [password, setPassword] = useState('');
|
||||
const [notice, setNotice] = useState<string | null>(null);
|
||||
|
||||
const handleSubmit = (e: FormEvent) => {
|
||||
e.preventDefault();
|
||||
setNotice(
|
||||
'로그인 기능은 준비 중입니다. 계약을 희망하시는 경우 contact@o2o.kr 로 문의 주세요.',
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="min-h-screen pt-32 pb-20 px-6 bg-gradient-to-b from-indigo-50/60 via-white to-white">
|
||||
<div className="max-w-md mx-auto">
|
||||
{/* 헤드라인 */}
|
||||
<div className="text-center mb-8">
|
||||
<Link
|
||||
to="/"
|
||||
className="font-serif text-3xl font-black tracking-[0.05em] bg-gradient-to-r from-[#4F1DA1] to-[#021341] bg-clip-text text-transparent"
|
||||
>
|
||||
INFINITH
|
||||
</Link>
|
||||
<h1 className="text-2xl font-serif font-bold text-primary-900 mt-6 mb-2">
|
||||
계약 병원 전용 로그인
|
||||
</h1>
|
||||
<p className="text-sm text-slate-500 break-keep leading-relaxed">
|
||||
계약 완료 시 별도 제공되는 자격 정보로 로그인하실 수 있습니다.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* 준비중 배너 */}
|
||||
<div className="mb-6 rounded-2xl bg-amber-50/80 border border-amber-200 p-4 text-center">
|
||||
<p className="text-xs font-semibold text-amber-800 break-keep leading-relaxed">
|
||||
현재 로그인 기능은 준비 중입니다.
|
||||
<br />
|
||||
신규 도입 문의는 하단 "문의하기"를 이용해 주세요.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* 폼 카드 */}
|
||||
<form
|
||||
onSubmit={handleSubmit}
|
||||
className="rounded-3xl bg-white border border-slate-200 shadow-sm p-8 space-y-5"
|
||||
>
|
||||
<div>
|
||||
<label
|
||||
htmlFor="login-email"
|
||||
className="block text-xs font-semibold text-slate-600 mb-2"
|
||||
>
|
||||
이메일
|
||||
</label>
|
||||
<input
|
||||
id="login-email"
|
||||
type="email"
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
placeholder="clinic@example.com"
|
||||
className="w-full px-4 py-3 text-sm bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent/40 text-primary-900 placeholder:text-slate-400 transition-all"
|
||||
autoComplete="email"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label
|
||||
htmlFor="login-password"
|
||||
className="block text-xs font-semibold text-slate-600 mb-2"
|
||||
>
|
||||
비밀번호
|
||||
</label>
|
||||
<input
|
||||
id="login-password"
|
||||
type="password"
|
||||
value={password}
|
||||
onChange={(e) => setPassword(e.target.value)}
|
||||
placeholder="••••••••"
|
||||
className="w-full px-4 py-3 text-sm bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent/40 text-primary-900 placeholder:text-slate-400 transition-all"
|
||||
autoComplete="current-password"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
className="w-full inline-flex items-center justify-center gap-2 px-6 py-3 text-sm font-bold text-white rounded-full bg-gradient-to-r from-[#4F1DA1] to-[#021341] shadow-sm hover:opacity-90 transition-all"
|
||||
>
|
||||
로그인
|
||||
<ArrowRight className="w-4 h-4" />
|
||||
</button>
|
||||
|
||||
{notice && (
|
||||
<div
|
||||
role="status"
|
||||
className="text-xs text-slate-600 text-center bg-slate-50 rounded-xl p-3 leading-relaxed break-keep"
|
||||
>
|
||||
{notice}
|
||||
</div>
|
||||
)}
|
||||
</form>
|
||||
|
||||
{/* 하단 문의하기 */}
|
||||
<div className="mt-6 text-center">
|
||||
<p className="text-xs text-slate-500 mb-2">계약을 원하시나요?</p>
|
||||
<a
|
||||
href={buildContactMailto('도입 문의 (LoginPage)')}
|
||||
className="inline-flex items-center gap-1 text-sm font-semibold text-[#4F1DA1] hover:text-[#021341] transition-colors underline-offset-4 hover:underline"
|
||||
>
|
||||
문의하기 →
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,451 @@
|
||||
/**
|
||||
* PricingPage — INFINITH Product 1.0 가격 안내 페이지.
|
||||
*
|
||||
* 구조 (plan 섹션 15-A):
|
||||
* 1. Hero (타이틀 + 한 줄 태그라인)
|
||||
* 2. Billing Toggle (월간 / 연간 20% 할인)
|
||||
* 3. 3 Tier Cards (INSIGHT / INTELLIGENCE⭐ / INTELLIGENCE+)
|
||||
* 4. Feature Comparison Table ← Step 3에서 구현
|
||||
* 5. Free Trial 강조 박스
|
||||
* 6. Launch Promotion 배너
|
||||
* 7. FAQ ← Step 3에서 구현
|
||||
* 8. Enterprise Contact CTA
|
||||
*
|
||||
* 유입 추적:
|
||||
* - `?from=header | footer | cta | hero` 파라미터 읽어 console.log
|
||||
* (analytics 연동은 Supabase `analytics_events` 테이블 도입 후 후속 작업)
|
||||
*
|
||||
* 핵심 데이터 소스:
|
||||
* - src/data/pricingTiers.ts ← (이 파일 내부에 임시 정의, Step 3에서 분리 고려)
|
||||
*/
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useSearchParams } from 'react-router';
|
||||
import { motion } from 'motion/react';
|
||||
import { ArrowRight } from 'lucide-react';
|
||||
import {
|
||||
CheckFilled,
|
||||
RocketFilled,
|
||||
BoltFilled,
|
||||
PrismFilled,
|
||||
} from '../components/icons/FilledIcons';
|
||||
import Badge from '../components/Badge';
|
||||
import FeatureComparisonTable from '../components/pricing/FeatureComparisonTable';
|
||||
import FAQ from '../components/pricing/FAQ';
|
||||
import { buildContactMailto } from '../lib/contact';
|
||||
|
||||
// ─── Tier 데이터 정의 ──────────────────────────────────────────────
|
||||
// plan 섹션 2·5 기준. Feature Comparison Table(Step 3)에서도 재사용 예정.
|
||||
type TierId = 'insight' | 'intelligence' | 'intelligence-plus';
|
||||
|
||||
interface Tier {
|
||||
id: TierId;
|
||||
name: string;
|
||||
tagline: string;
|
||||
monthlyKRW: number; // 원화 (월 단가 · 계약 기준)
|
||||
annualMonthlyKRW: number; // 원화 (연 계약 시 월 환산)
|
||||
annualTotalKRW: number; // 원화 (연 계약 총액)
|
||||
isPopular?: boolean;
|
||||
/** 모든 Tier는 계약 기반 영업 — 온라인 결제 없음. 상담 문의 mailto로 통일. */
|
||||
ctaLabel: string;
|
||||
bullets: string[];
|
||||
footnote?: string;
|
||||
}
|
||||
|
||||
const tiers: Tier[] = [
|
||||
{
|
||||
id: 'insight',
|
||||
name: 'INSIGHT',
|
||||
tagline: '매월 1번, 병원의 온라인 좌표를 점검하세요',
|
||||
monthlyKRW: 490_000,
|
||||
annualMonthlyKRW: 390_000,
|
||||
annualTotalKRW: 4_700_000,
|
||||
ctaLabel: '상담 문의',
|
||||
bullets: [
|
||||
'월 1회 분석 리포트',
|
||||
'전 채널 분석 (홈페이지 · 강남언니 · YouTube · Instagram · Facebook · 네이버 플레이스 · 블로그)',
|
||||
'4주 콘텐츠 플랜',
|
||||
'경쟁사 추적 1개',
|
||||
'PDF 내보내기',
|
||||
],
|
||||
footnote: '신규 개업의 · 1인 의원 추천',
|
||||
},
|
||||
{
|
||||
id: 'intelligence',
|
||||
name: 'INTELLIGENCE',
|
||||
tagline: '경쟁사가 지금 무엇을 바꾸는지, 월 2번 확인하세요',
|
||||
monthlyKRW: 1_490_000,
|
||||
annualMonthlyKRW: 1_190_000,
|
||||
annualTotalKRW: 14_300_000,
|
||||
isPopular: true,
|
||||
ctaLabel: '상담 문의',
|
||||
bullets: [
|
||||
'월 2회 + on-demand 재실행 (월 4회까지)',
|
||||
'8주 콘텐츠 캘린더 + 주간 KPI 기반 조정',
|
||||
'Vision AI (의료진·슬로건·인증 자동 추출)',
|
||||
'경쟁사 추적 3개 · 주간 변동 알림',
|
||||
'KPI 대시보드 (3/12개월 목표)',
|
||||
'브랜드 가이드 + 콘텐츠 필러 5종',
|
||||
'스크린샷 증거 기반 심층 리포트',
|
||||
],
|
||||
footnote: '중형 성형외과 · 메인 타겟',
|
||||
},
|
||||
{
|
||||
id: 'intelligence-plus',
|
||||
name: 'INTELLIGENCE+',
|
||||
tagline: '매일 변하는 시장에 즉시 대응하세요',
|
||||
monthlyKRW: 3_990_000,
|
||||
annualMonthlyKRW: 3_190_000,
|
||||
annualTotalKRW: 38_300_000,
|
||||
ctaLabel: '상담 문의',
|
||||
bullets: [
|
||||
'월 20회 분석 리포트 (주간 자동 + on-demand)',
|
||||
'12개월 로드맵 + 월간 전략 리뷰',
|
||||
'최대 3개 분원 통합 대시보드',
|
||||
'경쟁사 추적 10개 · 일간 변동 모니터링',
|
||||
'브랜드 가이드 + 콘텐츠 필러 10종',
|
||||
'커스텀 리포트 템플릿 (병원 CI 반영)',
|
||||
'신규 기능 베타 우선 접근',
|
||||
],
|
||||
footnote: '대형 · 멀티 분원 병원',
|
||||
},
|
||||
];
|
||||
|
||||
// ─── 가격 포맷터 ──────────────────────────────────────────────────
|
||||
// 149_0000원 → "149만원" 포맷. 1000원 단위까지는 표기 안 함 (B2B 가격은 만원 단위)
|
||||
function formatKRW(amount: number): string {
|
||||
const man = amount / 10_000;
|
||||
// 소수점 없는 정수 표기 우선. 999,999 아래면 만원, 이상이면 억 단위까지 확장 가능.
|
||||
if (Number.isInteger(man)) return `${man.toLocaleString('ko-KR')}만원`;
|
||||
return `${man.toLocaleString('ko-KR', { maximumFractionDigits: 1 })}만원`;
|
||||
}
|
||||
|
||||
// ─── Billing Toggle 컴포넌트 ──────────────────────────────────────
|
||||
interface BillingToggleProps {
|
||||
value: 'monthly' | 'annual';
|
||||
onChange: (v: 'monthly' | 'annual') => void;
|
||||
}
|
||||
|
||||
const BillingToggle: React.FC<BillingToggleProps> = ({ value, onChange }) => {
|
||||
return (
|
||||
<div className="inline-flex items-center gap-1 p-1 rounded-full bg-white/70 border border-slate-200 backdrop-blur-sm shadow-sm">
|
||||
<button
|
||||
onClick={() => onChange('monthly')}
|
||||
className={`px-5 py-2 rounded-full text-sm font-semibold transition-all ${
|
||||
value === 'monthly'
|
||||
? 'bg-primary-900 text-white shadow'
|
||||
: 'text-slate-600 hover:text-primary-900'
|
||||
}`}
|
||||
>
|
||||
월간 결제
|
||||
</button>
|
||||
<button
|
||||
onClick={() => onChange('annual')}
|
||||
className={`px-5 py-2 rounded-full text-sm font-semibold transition-all flex items-center gap-2 ${
|
||||
value === 'annual'
|
||||
? 'bg-primary-900 text-white shadow'
|
||||
: 'text-slate-600 hover:text-primary-900'
|
||||
}`}
|
||||
>
|
||||
연간 결제
|
||||
<span
|
||||
className={`text-xs px-2 py-0.5 rounded-full font-bold ${
|
||||
value === 'annual'
|
||||
? 'bg-white/20 text-white'
|
||||
: 'bg-accent/10 text-accent'
|
||||
}`}
|
||||
>
|
||||
20% 할인
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
// ─── Tier Card 컴포넌트 ──────────────────────────────────────────
|
||||
interface TierCardProps {
|
||||
tier: Tier;
|
||||
billing: 'monthly' | 'annual';
|
||||
onSelect: (tier: Tier) => void;
|
||||
}
|
||||
|
||||
const TierCard: React.FC<TierCardProps> = ({ tier, billing, onSelect }) => {
|
||||
const price = billing === 'monthly' ? tier.monthlyKRW : tier.annualMonthlyKRW;
|
||||
const isAnnual = billing === 'annual';
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.5 }}
|
||||
className={`relative flex flex-col rounded-3xl p-8 bg-white border shadow-sm transition-all hover:shadow-xl ${
|
||||
tier.isPopular
|
||||
? 'border-accent/40 ring-2 ring-accent/30 shadow-lg scale-[1.02]'
|
||||
: 'border-slate-200'
|
||||
}`}
|
||||
>
|
||||
{/* Popular 배지 */}
|
||||
{tier.isPopular && (
|
||||
<div className="absolute -top-3 left-1/2 -translate-x-1/2">
|
||||
<Badge variant="popular" size="md" />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* 이름 + 태그라인 */}
|
||||
<div className="mb-6">
|
||||
<h3 className="text-2xl font-serif font-bold text-primary-900 mb-2">{tier.name}</h3>
|
||||
<p className="text-sm text-slate-500 leading-relaxed break-keep">{tier.tagline}</p>
|
||||
</div>
|
||||
|
||||
{/* 가격 */}
|
||||
<div className="mb-6">
|
||||
<div className="flex items-baseline gap-2">
|
||||
<span className="text-4xl font-bold text-primary-900 tracking-tight">
|
||||
{formatKRW(price)}
|
||||
</span>
|
||||
<span className="text-slate-500 text-sm">/월</span>
|
||||
</div>
|
||||
{isAnnual && (
|
||||
<p className="text-xs text-accent font-semibold mt-2">
|
||||
연 {formatKRW(tier.annualTotalKRW)} · 20% 절약
|
||||
</p>
|
||||
)}
|
||||
{!isAnnual && (
|
||||
<p className="text-xs text-slate-400 mt-2">
|
||||
연 결제 시 월 {formatKRW(tier.annualMonthlyKRW)}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* CTA — DS Primary: gradient + rounded-full (pill) */}
|
||||
<button
|
||||
onClick={() => onSelect(tier)}
|
||||
className={`w-full px-8 py-3.5 rounded-full font-medium text-sm text-white transition-shadow duration-150 shadow-md hover:shadow-xl flex items-center justify-center gap-2 group bg-gradient-to-r from-[#4F1DA1] to-[#021341] hover:from-[#AF90FF] hover:to-[#AF90FF] active:scale-[0.98] mb-6 ${
|
||||
tier.isPopular ? 'shadow-lg' : ''
|
||||
}`}
|
||||
>
|
||||
{tier.ctaLabel}
|
||||
<ArrowRight className="w-4 h-4 group-hover:translate-x-1 transition-transform" />
|
||||
</button>
|
||||
|
||||
{/* Bullet points — DS FilledIcon(CheckFilled) */}
|
||||
<ul className="space-y-3 flex-grow">
|
||||
{tier.bullets.map((bullet, i) => (
|
||||
<li key={i} className="flex items-start gap-2.5 text-sm text-slate-700">
|
||||
<CheckFilled size={16} className="text-accent shrink-0 mt-0.5" />
|
||||
<span className="leading-relaxed break-keep">{bullet}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
{/* Footnote */}
|
||||
{tier.footnote && (
|
||||
<p className="mt-6 pt-4 border-t border-slate-100 text-xs text-slate-400 text-center">
|
||||
{tier.footnote}
|
||||
</p>
|
||||
)}
|
||||
</motion.div>
|
||||
);
|
||||
};
|
||||
|
||||
// ─── 먼저 문의하기 강조 카드 ─────────────────────────────────────
|
||||
// DS 레퍼런스: CTA 카드 배경에 3-stop warm gradient (Section 2.2)
|
||||
// + 상단 filled 아이콘 squircle + Primary/Secondary pill 버튼 병렬
|
||||
//
|
||||
// PART III 피봇: "첫 리포트 무료 / 카드 등록 불필요" 표현 삭제 → 계약 기반 영업으로 일원화.
|
||||
function ContactFirstBox() {
|
||||
return (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.5 }}
|
||||
className="relative w-full rounded-3xl p-8 md:p-12 text-center overflow-hidden bg-gradient-to-r from-[#fff3eb] via-[#e4cfff] to-[#f5f9ff] border border-white/40 shadow-[3px_4px_12px_rgba(0,0,0,0.06)]"
|
||||
>
|
||||
{/* 상단 아이콘 squircle — DS filled icon 규칙 */}
|
||||
<div className="inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-white/60 backdrop-blur-sm border border-white/50 mb-6">
|
||||
<BoltFilled size={26} className="text-accent" />
|
||||
</div>
|
||||
|
||||
<h3 className="text-2xl md:text-3xl font-serif font-bold text-primary-900 mb-3">
|
||||
먼저 대화부터 시작하세요
|
||||
</h3>
|
||||
<p className="text-slate-600 leading-relaxed max-w-xl mx-auto mb-8 break-keep">
|
||||
계약 전에 병원 규모·마케팅 현황을 공유해 주시면, 전담 담당자가 적합한 플랜과
|
||||
리포트 샘플을 정리해 회신 드립니다.
|
||||
</p>
|
||||
|
||||
{/* DS 듀얼 버튼: Primary + Secondary — 모두 rounded-full (pill) */}
|
||||
<div className="flex flex-col sm:flex-row items-center justify-center gap-3">
|
||||
<a
|
||||
href={buildContactMailto('도입 상담 문의')}
|
||||
className="inline-flex items-center gap-2 px-8 py-3.5 rounded-full font-medium text-sm text-white transition-shadow duration-150 shadow-md hover:shadow-xl group bg-gradient-to-r from-[#4F1DA1] to-[#021341] hover:from-[#AF90FF] hover:to-[#AF90FF] active:scale-[0.98]"
|
||||
>
|
||||
상담 문의하기
|
||||
<ArrowRight className="w-4 h-4 group-hover:translate-x-1 transition-transform" />
|
||||
</a>
|
||||
<a
|
||||
href="#tiers"
|
||||
className="inline-flex items-center gap-2 px-8 py-3.5 rounded-full font-medium text-sm bg-white border border-slate-200 text-[#021341] hover:bg-slate-50 transition-colors"
|
||||
>
|
||||
플랜 비교 보기
|
||||
</a>
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
|
||||
// ─── Launch Promotion 배너 ───────────────────────────────────────
|
||||
// DS: 🎁 이모지 금지(Principle: No Emoji) → RocketFilled 대체
|
||||
// dark primary gradient card + Secondary pill 버튼
|
||||
function PromotionBanner() {
|
||||
return (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0.98 }}
|
||||
whileInView={{ opacity: 1, scale: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.5 }}
|
||||
className="w-full rounded-3xl bg-gradient-to-r from-[#4F1DA1] to-[#021341] text-white p-6 md:p-8 flex flex-col md:flex-row items-center gap-4 md:gap-6"
|
||||
>
|
||||
{/* Filled icon squircle — 🎁 대체 */}
|
||||
<div className="inline-flex items-center justify-center w-12 h-12 rounded-2xl bg-white/10 backdrop-blur-sm shrink-0">
|
||||
<RocketFilled size={24} className="text-white" />
|
||||
</div>
|
||||
<div className="flex-1 text-center md:text-left">
|
||||
<p className="text-xs font-semibold text-purple-200 mb-1 tracking-wide">
|
||||
런칭 프로모션 · 선착순 20병원
|
||||
</p>
|
||||
<p className="text-base md:text-lg font-serif">
|
||||
INTELLIGENCE · INTELLIGENCE+ <strong>3개월 30% 할인</strong>
|
||||
</p>
|
||||
</div>
|
||||
<a
|
||||
href={buildContactMailto('런칭 프로모션 문의')}
|
||||
className="inline-flex items-center gap-2 px-6 py-2.5 rounded-full bg-white border border-slate-200 text-[#021341] font-medium text-sm hover:bg-slate-50 transition-colors whitespace-nowrap"
|
||||
>
|
||||
혜택 문의
|
||||
</a>
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
|
||||
// ─── Enterprise Contact CTA ──────────────────────────────────────
|
||||
// DS: outlined 패턴은 DS에 없음 → Primary pill(gradient + rounded-full)
|
||||
function EnterpriseContact() {
|
||||
return (
|
||||
// outer: w-full로 섹션 정렬 / inner 콘텐츠만 max-w-2xl로 가독성 유지
|
||||
<div className="w-full text-center">
|
||||
<div className="max-w-2xl mx-auto">
|
||||
<h3 className="text-2xl font-serif font-bold text-primary-900 mb-3">
|
||||
더 많은 분원, 커스텀 플랜이 필요하신가요?
|
||||
</h3>
|
||||
<p className="text-slate-600 mb-8 break-keep">
|
||||
4개 이상 분원을 운영하시거나 데이터 커스터마이징이 필요한 경우, 전담 담당자가 상담해 드립니다.
|
||||
</p>
|
||||
<a
|
||||
href={buildContactMailto('커스텀 플랜 문의')}
|
||||
className="inline-flex items-center gap-2 px-8 py-3.5 rounded-full font-medium text-sm text-white transition-shadow duration-150 shadow-md hover:shadow-xl group bg-gradient-to-r from-[#4F1DA1] to-[#021341] hover:from-[#AF90FF] hover:to-[#AF90FF] active:scale-[0.98]"
|
||||
>
|
||||
커스텀 플랜 문의
|
||||
<ArrowRight className="w-4 h-4 group-hover:translate-x-1 transition-transform" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// ─── PricingPage 본체 ────────────────────────────────────────────
|
||||
export default function PricingPage() {
|
||||
const [searchParams] = useSearchParams();
|
||||
const [billing, setBilling] = useState<'monthly' | 'annual'>('annual');
|
||||
|
||||
// 유입 소스 추적 — 추후 Supabase `analytics_events` 테이블로 전송
|
||||
useEffect(() => {
|
||||
const from = searchParams.get('from');
|
||||
if (from) {
|
||||
// TODO(analytics): Supabase analytics_events insert
|
||||
console.info(`[pricing] referred from: ${from}`);
|
||||
}
|
||||
}, [searchParams]);
|
||||
|
||||
/**
|
||||
* Tier 선택 핸들러 — 계약 기반 영업.
|
||||
* 온라인 결제 없이 모든 Tier를 상담 문의 mailto로 통일.
|
||||
* Subject에 Tier 이름을 넣어 영업팀이 유입 경로를 구분.
|
||||
*/
|
||||
const handleTierSelect = (tier: Tier) => {
|
||||
window.location.href = buildContactMailto(`${tier.name} 플랜 상담 문의`);
|
||||
};
|
||||
|
||||
return (
|
||||
<main className="relative pt-28 md:pt-32 pb-24 overflow-hidden">
|
||||
{/* Background — 랜딩 Hero와 톤 통일 */}
|
||||
<div className="absolute inset-0 -z-10 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-indigo-100 via-purple-50 to-pink-50 opacity-60" />
|
||||
|
||||
{/* ── Section 1 · Hero ─────────────────────────── */}
|
||||
<section className="px-6 text-center max-w-4xl mx-auto mb-12">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6 }}
|
||||
>
|
||||
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-white/70 border border-white/40 text-xs font-bold text-accent mb-6">
|
||||
<PrismFilled size={14} className="text-accent" />
|
||||
Pricing · 가격 안내
|
||||
</div>
|
||||
<h1 className="text-4xl md:text-6xl font-serif font-bold text-primary-900 leading-[1.1] tracking-[-0.02em] mb-5">
|
||||
Strategic Planning,<br className="hidden md:block" />
|
||||
<span className="text-gradient">At Your Scale.</span>
|
||||
</h1>
|
||||
<p className="text-lg text-slate-600 max-w-2xl mx-auto mb-10 break-keep">
|
||||
병원 규모에 맞는 전략 파트너를 선택하세요. 계약·결제·운영 조건은 상담에서 맞춤 설계됩니다.
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
{/* ── Section 2 · Billing Toggle ────────────── */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 10 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.5, delay: 0.15 }}
|
||||
>
|
||||
<BillingToggle value={billing} onChange={setBilling} />
|
||||
</motion.div>
|
||||
</section>
|
||||
|
||||
{/* ── Section 3 · 3 Tier Cards ─────────────────── */}
|
||||
<section id="tiers" className="px-6 max-w-7xl mx-auto mb-20 scroll-mt-24">
|
||||
<div className="grid md:grid-cols-3 gap-6 md:gap-8 items-stretch">
|
||||
{tiers.map((tier) => (
|
||||
<TierCard key={tier.id} tier={tier} billing={billing} onSelect={handleTierSelect} />
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* ── Section 4 · Feature Comparison Table ─── */}
|
||||
<section className="px-6 mb-20 max-w-7xl mx-auto">
|
||||
<FeatureComparisonTable />
|
||||
</section>
|
||||
|
||||
{/* ── Section 5 · 먼저 문의하기 강조 ───────────── */}
|
||||
{/* outer max-w-7xl로 Tier Cards 섹션과 동일 정렬 (반응형 자동 축소) */}
|
||||
<section className="px-6 mb-16 max-w-7xl mx-auto">
|
||||
<ContactFirstBox />
|
||||
</section>
|
||||
|
||||
{/* ── Section 6 · Launch Promotion ───────────── */}
|
||||
<section className="px-6 mb-20 max-w-7xl mx-auto">
|
||||
<PromotionBanner />
|
||||
</section>
|
||||
|
||||
{/* ── Section 7 · FAQ ─────────────────────────── */}
|
||||
<section className="px-6 mb-20 max-w-7xl mx-auto">
|
||||
<FAQ />
|
||||
</section>
|
||||
|
||||
{/* ── Section 8 · Enterprise Contact ─────────── */}
|
||||
<section className="px-6 max-w-7xl mx-auto">
|
||||
<EnterpriseContact />
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user