feat: INFINITH Marketing Platform — Phase 1 MVP

Complete frontend reference implementation:
- Landing page (7 sections, responsive, animated)
- Marketing Intelligence Report (11 sections, VIEW Plastic Surgery demo)
- Marketing Execution Plan (8 sections, branding/channel/calendar)
- Content Studio wizard (channel → strategy → sound → generate)
- Channel Connect page (7 platform OAuth flows)
- Distribution page (YouTube publish flow)
- Performance Dashboard (KPI, funnel, heatmap, trends)
- PDF export (section-based, no mid-content splits)
- Design system (pastel palette, filled icons, Pretendard/Playfair)
- Page navigator (landing ↔ report ↔ plan)
- Asset upload (drag & drop, image/video/text)

Docs: PRD v2.0, DESIGN_SYSTEM.md, API_CONNECTORS.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 4.6 committed 2026-03-24 16:48:11 +09:00
commit bbb7a0de60
90 files changed
+16754

No files matched your search

+176
View File
@@ -0,0 +1,176 @@
import type { BrandInconsistency } from './report';
// ─── Section 1: Branding Guide ───
export interface ColorSwatch {
name: string;
hex: string;
usage: string;
}
export interface FontSpec {
family: string;
weight: string;
usage: string;
sampleText: string;
}
export interface LogoUsageRule {
rule: string;
description: string;
correct: boolean;
}
export interface ToneOfVoice {
personality: string[];
communicationStyle: string;
doExamples: string[];
dontExamples: string[];
}
export interface ChannelBrandingRule {
channel: string;
icon: string;
profilePhoto: string;
bannerSpec: string;
bioTemplate: string;
currentStatus: 'correct' | 'incorrect' | 'missing';
}
export interface BrandGuide {
colors: ColorSwatch[];
fonts: FontSpec[];
logoRules: LogoUsageRule[];
toneOfVoice: ToneOfVoice;
channelBranding: ChannelBrandingRule[];
brandInconsistencies: BrandInconsistency[];
}
// ─── Section 2: Channel Communication Strategy ───
export interface ChannelStrategyCard {
channelId: string;
channelName: string;
icon: string;
currentStatus: string;
targetGoal: string;
contentTypes: string[];
postingFrequency: string;
tone: string;
formatGuidelines: string[];
priority: 'P0' | 'P1' | 'P2';
}
// ─── Section 3: Content Marketing Strategy ───
export interface ContentPillar {
title: string;
description: string;
relatedUSP: string;
exampleTopics: string[];
color: string;
}
export interface ContentTypeRow {
format: string;
channels: string[];
frequency: string;
purpose: string;
}
export interface WorkflowStep {
step: number;
name: string;
description: string;
owner: string;
duration: string;
}
export interface RepurposingOutput {
format: string;
channel: string;
description: string;
}
export interface ContentStrategyData {
pillars: ContentPillar[];
typeMatrix: ContentTypeRow[];
workflow: WorkflowStep[];
repurposingSource: string;
repurposingOutputs: RepurposingOutput[];
}
// ─── Section 4: Content Calendar ───
export type ContentCategory = 'video' | 'blog' | 'social' | 'ad';
export interface CalendarEntry {
dayOfWeek: number;
channel: string;
channelIcon: string;
contentType: ContentCategory;
title: string;
}
export interface CalendarWeek {
weekNumber: number;
label: string;
entries: CalendarEntry[];
}
export interface ContentCountSummary {
type: ContentCategory;
label: string;
count: number;
color: string;
}
export interface CalendarData {
weeks: CalendarWeek[];
monthlySummary: ContentCountSummary[];
}
// ─── Section 5: Asset Collection ───
export type AssetSource = 'homepage' | 'naver_place' | 'blog' | 'social' | 'youtube';
export type AssetType = 'photo' | 'video' | 'text';
export type AssetStatus = 'collected' | 'pending' | 'needs_creation';
export interface AssetCard {
id: string;
source: AssetSource;
sourceLabel: string;
type: AssetType;
title: string;
description: string;
repurposingSuggestions: string[];
status: AssetStatus;
}
export interface YouTubeRepurposeItem {
title: string;
views: number;
type: 'Short' | 'Long';
repurposeAs: string[];
}
export interface AssetCollectionData {
assets: AssetCard[];
youtubeRepurpose: YouTubeRepurposeItem[];
}
// ─── Root Plan Type ───
export interface MarketingPlan {
id: string;
reportId: string;
clinicName: string;
clinicNameEn: string;
createdAt: string;
targetUrl: string;
brandGuide: BrandGuide;
channelStrategies: ChannelStrategyCard[];
contentStrategy: ContentStrategyData;
calendar: CalendarData;
assetCollection: AssetCollectionData;
}
+230
View File
@@ -0,0 +1,230 @@
export type Severity = 'critical' | 'warning' | 'good' | 'excellent' | 'unknown';
export interface ScreenshotAnnotation {
type: 'highlight' | 'arrow' | 'text';
x: number;
y: number;
width?: number;
height?: number;
label?: string;
color?: string;
}
export interface ScreenshotEvidence {
id: string;
url: string;
channel: string;
capturedAt: string;
caption: string;
sourceUrl?: string;
annotations?: ScreenshotAnnotation[];
}
export interface DiagnosisItem {
category: string;
detail: string;
severity: Severity;
evidenceIds?: string[];
}
export interface ClinicSnapshot {
name: string;
nameEn: string;
established: string;
yearsInBusiness: number;
staffCount: number;
leadDoctor: {
name: string;
credentials: string;
rating: number;
reviewCount: number;
};
overallRating: number;
totalReviews: number;
priceRange: { min: string; max: string; currency: string };
certifications: string[];
mediaAppearances: string[];
medicalTourism: string[];
location: string;
nearestStation: string;
phone: string;
domain: string;
logoImages?: {
circle?: string;
horizontal?: string;
korean?: string;
};
brandColors?: {
primary: string;
accent: string;
text: string;
};
}
export interface TopVideo {
title: string;
views: number;
uploadedAgo: string;
type: 'Short' | 'Long';
duration?: string;
}
export interface YouTubeAudit {
channelName: string;
handle: string;
subscribers: number;
totalVideos: number;
totalViews: number;
weeklyViewGrowth: { absolute: number; percentage: number };
estimatedMonthlyRevenue: { min: number; max: number };
avgVideoLength: string;
uploadFrequency: string;
channelCreatedDate: string;
subscriberRank: string;
channelDescription: string;
linkedUrls: { label: string; url: string }[];
playlists: string[];
topVideos: TopVideo[];
diagnosis: DiagnosisItem[];
}
export interface InstagramAccount {
handle: string;
language: 'KR' | 'EN';
label: string;
posts: number;
followers: number;
following: number;
category: string;
profileLink: string;
highlights: string[];
reelsCount: number;
contentFormat: string;
profilePhoto: string;
bio: string;
}
export interface InstagramAudit {
accounts: InstagramAccount[];
diagnosis: DiagnosisItem[];
}
export interface BrandInconsistency {
field: string;
values: { channel: string; value: string; isCorrect: boolean }[];
impact: string;
recommendation: string;
}
export interface FacebookPage {
url: string;
pageName: string;
language: 'KR' | 'EN';
label: string;
followers: number;
following: number;
category: string;
bio: string;
logo: string;
logoDescription: string;
link: string;
linkedDomain: string;
reviews: number;
recentPostAge: string;
hasWhatsApp: boolean;
postFrequency?: string;
topContentType?: string;
engagement?: string;
}
export interface FacebookAudit {
pages: FacebookPage[];
diagnosis: DiagnosisItem[];
brandInconsistencies: BrandInconsistency[];
consolidationRecommendation: string;
}
export interface OtherChannel {
name: string;
status: 'active' | 'inactive' | 'unknown' | 'not_found';
details: string;
url?: string;
}
export interface TrackingPixel {
name: string;
installed: boolean;
details?: string;
}
export interface WebsiteAudit {
primaryDomain: string;
additionalDomains: { domain: string; purpose: string }[];
snsLinksOnSite: boolean;
trackingPixels: TrackingPixel[];
mainCTA: string;
}
export interface AsIsToBeItem {
area: string;
asIs: string;
toBe: string;
}
export interface PlatformStrategy {
platform: string;
icon: string;
currentMetric: string;
targetMetric: string;
strategies: { strategy: string; detail: string }[];
}
export interface TransformationProposal {
brandIdentity: AsIsToBeItem[];
contentStrategy: AsIsToBeItem[];
platformStrategies: PlatformStrategy[];
websiteImprovements: AsIsToBeItem[];
newChannelProposals: { channel: string; priority: string; rationale: string }[];
}
export interface RoadmapMonth {
month: number;
title: string;
subtitle: string;
tasks: { task: string; completed: boolean }[];
}
export interface KPIMetric {
metric: string;
current: string;
target3Month: string;
target12Month: string;
}
export interface ChannelScore {
channel: string;
icon: string;
score: number;
maxScore: number;
status: Severity;
headline: string;
}
export interface MarketingReport {
id: string;
createdAt: string;
targetUrl: string;
overallScore: number;
clinicSnapshot: ClinicSnapshot;
channelScores: ChannelScore[];
youtubeAudit: YouTubeAudit;
instagramAudit: InstagramAudit;
facebookAudit: FacebookAudit;
otherChannels: OtherChannel[];
websiteAudit: WebsiteAudit;
problemDiagnosis: DiagnosisItem[];
transformation: TransformationProposal;
roadmap: RoadmapMonth[];
kpiDashboard: KPIMetric[];
screenshots?: ScreenshotEvidence[];
}
+126
View File
@@ -0,0 +1,126 @@
// ─── Content Creation Studio Types ───
export type StudioChannel = 'youtube' | 'instagram' | 'naver_blog' | 'tiktok' | 'facebook';
export type ContentFormat =
| 'shorts' | 'long_form' // YouTube
| 'reels' | 'carousel' | 'feed_image' | 'stories' // Instagram
| 'seo_post' | 'faq_post' // Naver Blog
| 'short_video' // TikTok
| 'ad_creative' | 'retarget_content'; // Facebook
export interface ChannelFormatOption {
channel: StudioChannel;
label: string;
icon: string;
formats: { key: ContentFormat; label: string; aspectRatio: '16:9' | '9:16' | '1:1' | '4:5' }[];
}
export type ContentPillarId = string;
export type AssetSourceType = 'collected' | 'my_assets' | 'ai_generated';
export type MusicGenre = 'calm' | 'upbeat' | 'cinematic' | 'corporate' | 'none';
export interface MusicTrack {
id: string;
name: string;
genre: MusicGenre;
duration: string;
}
export type NarrationLanguage = 'ko' | 'en' | 'ja' | 'zh';
export type NarrationVoice = 'male' | 'female';
export interface SoundSettings {
genre: MusicGenre;
trackId: string | null;
narrationEnabled: boolean;
narrationLanguage: NarrationLanguage;
narrationVoice: NarrationVoice;
subtitleEnabled: boolean;
}
export type GenerateOutputType = 'image' | 'video';
export interface StudioState {
channel: StudioChannel | null;
format: ContentFormat | null;
pillarId: ContentPillarId | null;
assetSources: AssetSourceType[];
sound: SoundSettings;
outputType: GenerateOutputType;
}
export const DEFAULT_SOUND: SoundSettings = {
genre: 'calm',
trackId: null,
narrationEnabled: false,
narrationLanguage: 'ko',
narrationVoice: 'female',
subtitleEnabled: true,
};
export const CHANNEL_OPTIONS: ChannelFormatOption[] = [
{
channel: 'youtube',
label: 'YouTube',
icon: 'youtube',
formats: [
{ key: 'shorts', label: 'Shorts', aspectRatio: '9:16' },
{ key: 'long_form', label: 'Long-form', aspectRatio: '16:9' },
],
},
{
channel: 'instagram',
label: 'Instagram',
icon: 'instagram',
formats: [
{ key: 'reels', label: 'Reels', aspectRatio: '9:16' },
{ key: 'carousel', label: 'Carousel', aspectRatio: '1:1' },
{ key: 'feed_image', label: 'Feed Image', aspectRatio: '1:1' },
{ key: 'stories', label: 'Stories', aspectRatio: '9:16' },
],
},
{
channel: 'naver_blog',
label: 'Naver Blog',
icon: 'globe',
formats: [
{ key: 'seo_post', label: 'SEO Post', aspectRatio: '16:9' },
{ key: 'faq_post', label: 'FAQ Post', aspectRatio: '16:9' },
],
},
{
channel: 'tiktok',
label: 'TikTok',
icon: 'tiktok',
formats: [
{ key: 'short_video', label: 'Short Video', aspectRatio: '9:16' },
],
},
{
channel: 'facebook',
label: 'Facebook',
icon: 'facebook',
formats: [
{ key: 'ad_creative', label: 'Ad Creative', aspectRatio: '1:1' },
{ key: 'retarget_content', label: 'Retarget Content', aspectRatio: '16:9' },
],
},
];
export const MUSIC_TRACKS: MusicTrack[] = [
{ id: 'calm-1', name: 'Gentle Morning', genre: 'calm', duration: '2:30' },
{ id: 'calm-2', name: 'Soft Healing', genre: 'calm', duration: '3:15' },
{ id: 'calm-3', name: 'Peaceful Flow', genre: 'calm', duration: '2:45' },
{ id: 'upbeat-1', name: 'Fresh Start', genre: 'upbeat', duration: '2:20' },
{ id: 'upbeat-2', name: 'Bright Day', genre: 'upbeat', duration: '2:50' },
{ id: 'upbeat-3', name: 'Energy Boost', genre: 'upbeat', duration: '3:00' },
{ id: 'cinematic-1', name: 'Grand Reveal', genre: 'cinematic', duration: '3:30' },
{ id: 'cinematic-2', name: 'Transformation', genre: 'cinematic', duration: '4:00' },
{ id: 'cinematic-3', name: 'Before & After', genre: 'cinematic', duration: '2:55' },
{ id: 'corp-1', name: 'Professional Trust', genre: 'corporate', duration: '2:40' },
{ id: 'corp-2', name: 'Clean & Modern', genre: 'corporate', duration: '3:10' },
{ id: 'corp-3', name: 'Confidence', genre: 'corporate', duration: '2:35' },
];