feat: real API integration + YouTube Data API v3 + progressive loading

- Replace mock useReport() with real Supabase API data pipeline
- Add transformReport.ts to map API responses to MarketingReport type
- Add useEnrichment() hook for background channel data enrichment
- Replace Apify YouTube scraper with YouTube Data API v3
- Add mergeEnrichment() for progressive data loading
- Add EmptyState component for graceful empty data handling
- Add socialHandles to generate-report metadata
- Graceful empty data in ClinicSnapshot, YouTube, Instagram, Facebook
- Add Supabase Edge Functions and DB migrations
- Add developer handoff documentation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 4.6 committed 2026-04-02 10:57:14 +09:00
1 parent c6e18b6a67
commit 60cd055042
30 files changed
+2905 -142

No files matched your search

+39 -2
View File
@@ -100,8 +100,8 @@ background: linear-gradient(to right, #fff3eb, #e4cfff, #f5f9ff);
| 용도 | 폰트 | Size | Weight | Tailwind Class |
|------|-------|------|--------|---------------|
| INFINITH 로고 | Playfair Display | `3xl` (30px) | Black 900 | `font-serif text-3xl font-black tracking-[0.05em]` |
| 페이지 H1 | Playfair Display | `4xl~5xl` | Bold 700 | `font-serif text-4xl md:text-5xl font-bold` |
| 섹션 타이틀 (영문) | Playfair Display | `3xl~4xl` | Bold 700 | `font-serif text-3xl md:text-4xl font-bold` |
| 페이지 H1 | Playfair Display | `5xl~7xl` | Bold 700 | `font-serif text-5xl md:text-7xl font-bold tracking-[-0.02em]` |
| 섹션 타이틀 (영문) | Playfair Display | `3xl~5xl` | Bold 700 | `font-serif text-3xl md:text-5xl font-bold` |
| 섹션 서브타이틀 | Pretendard | `lg` (18px) | Regular 400 | `text-lg` |
| 카드 제목 | Pretendard | `lg` (18px) | Bold 700 | `text-lg font-bold` |
| 본문 | Pretendard / Inter | `sm~base` (14~16px) | Regular 400 | `text-sm` or `text-base` |
@@ -235,6 +235,43 @@ shadow-2xl /* 라이트박스 모달 */
---
## 9. Hero Section Specification
### Layout & Spacing
| Property | Value | Tailwind Class |
|----------|-------|---------------|
| Top padding | 112px / 144px | `pt-28 md:pt-36` |
| Bottom padding | 48px / 64px | `pb-12 md:pb-16` |
| Content max-width | 896px | `max-w-4xl mx-auto` |
**주의:** `min-h-screen` 사용 금지 — 다른 섹션과 일관된 간격 유지 (~160px gap between sections)
### Content Structure
1. **Badge** — `PrismFilled` infinity loop icon + "Agentic AI Marketing Automation for Premium Medical Business & Marketing Agency"
2. **H1** — "Infinite Growth Marketing Engine." (`text-5xl md:text-7xl tracking-[-0.02em]`)
3. **Subtitle** — "Marketing that learns, improves, and accelerates — automatically. 쓸수록 더 정교해지는 AI 마케팅 엔진."
4. **CTA** — URL input + Analyze button (gradient `from-[#4F1DA1] to-[#021341]`)
### Kerning Adjustments (Playfair Display ligature fix)
Playfair Display의 `fi` ligature가 겹침 발생 시 개별 문자에 `margin-left` 음수값 적용:
```tsx
<span className="tracking-[0.05em]">
In<span className="ml-[-0.04em]">f</span>
<span className="ml-[-0.04em]">inite</span>
</span>
```
**규칙:** `letter-spacing`은 문자 뒤에 적용되므로, 특정 문자 앞만 좁히려면 `margin-left` 사용
### Section Spacing Consistency
| Section Transition | Gap (approx.) |
|-------------------|---------------|
| Hero → TargetAudience | ~160px |
| TargetAudience → Problems | ~192px |
| Problems → Solution | ~192px |
| Solution → Modules | ~192px |
---
## 7. PDF Export Rules
| 규칙 | 구현 |