Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
992c232e16 | ||
|
|
dfc04af69f | ||
|
|
9fe5862e2b |
No files matched your search
@@ -12,6 +12,8 @@ dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
.env
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
@@ -22,3 +24,5 @@ dist-ssr
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
zzz/
|
||||
@@ -10,36 +10,25 @@
|
||||
|
||||
## 디렉토리 구조
|
||||
|
||||
디렉토리 구조는 다음을 따를 예정입니다.
|
||||
```bash
|
||||
src/
|
||||
├── app/ # 애플리케이션 진입점 및 전역 설정 (Router, Providers, 글로벌 스타일)
|
||||
│ └── providers/ # React Context Provider 모음 (QueryProvider 등)
|
||||
├── assets/ # 정적 파일 (이미지, 폰트, SVG 아이콘 등)
|
||||
├── components/ # 도메인에 종속되지 않는 공통 UI 컴포넌트 (버튼, 카드, 디자인 시스템)
|
||||
├── assets/ # 정적 파일 (이미지, 폰트, 로티 애니메이션 등)
|
||||
├── components/ # 도메인에 종속되지 않는 공통 UI 컴포넌트 (버튼, 모달, 디자인 시스템)
|
||||
├── features/ # 핵심 비즈니스 로직 및 도메인 영역 (이 구조의 핵심)
|
||||
│ ├── home/ # 홈(랜딩) 도메인
|
||||
│ │ ├── content/ # 해당 도메인 전용 UI 텍스트·카피 (정적 콘텐츠)
|
||||
│ ├── auth/ # 특정 도메인 (예: 인증)
|
||||
│ │ ├── api/ # 해당 도메인 전용 API 통신 함수
|
||||
│ │ ├── hooks/ # 해당 도메인 전용 커스텀 훅
|
||||
│ │ └── ui/ # 해당 도메인 전용 UI 컴포넌트
|
||||
│ ├── report/ # 리포트 도메인
|
||||
│ │ ├── config/ # 섹션 ID·레이블 등 UI 설정값
|
||||
│ │ ├── hooks/ # 해당 도메인 전용 커스텀 훅
|
||||
│ │ ├── mocks/ # API 연동 전 임시 목업 데이터
|
||||
│ │ ├── store/ # 해당 도메인 전용 상태 (Zustand 등)
|
||||
│ │ ├── types/ # 해당 도메인 전용 타입 정의
|
||||
│ │ └── ui/ # 해당 도메인 전용 UI 컴포넌트
|
||||
│ └── plan/ # 마케팅 플랜 도메인 (report와 동일한 구조)
|
||||
│ ├── config/
|
||||
│ ├── hooks/
|
||||
│ ├── mocks/
|
||||
│ ├── types/
|
||||
│ └── ui/
|
||||
├── hooks/ # 전역에서 사용하는 공통 훅 (useInView 등)
|
||||
├── layouts/ # 페이지 레이아웃 (GNB, SubNav, Footer 등)
|
||||
├── pages/ # 라우팅과 1:1 매칭되는 페이지 진입점 (features의 컴포넌트만 조립)
|
||||
├── hooks/ # 전역에서 사용하는 공통 훅 (useClickOutside 등)
|
||||
├── layouts/ # 페이지 레이아웃 (GNB, Sidebar, 풋터 등)
|
||||
├── pages/ # 라우팅과 1:1 매칭되는 페이지 진입점 (여기서는 features의 컴포넌트만 조립)
|
||||
├── services/ # 공통 API 클라이언트 설정 (Axios 인스턴스, 인터셉터 등)
|
||||
├── store/ # 전역 상태 관리 (사용자 세션, 테마 등)
|
||||
├── types/ # 여러 도메인에서 공유하는 공통 타입 정의
|
||||
└── utils/ # 공통 유틸리티 함수 (숫자 포맷팅, URL 처리 등)
|
||||
└── utils/ # 공통 유틸리티 함수 (날짜 포맷팅, 정규식 등)
|
||||
```
|
||||
|
||||
## 시작하기
|
||||
@@ -52,4 +41,4 @@ npm install
|
||||
### 실행
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
```
|
||||
@@ -19,14 +19,5 @@ export default defineConfig([
|
||||
ecmaVersion: 2020,
|
||||
globals: globals.browser,
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{
|
||||
argsIgnorePattern: '^_',
|
||||
caughtErrorsIgnorePattern: '^_',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
])
|
||||
Generated
+19
-444
@@ -8,10 +8,9 @@
|
||||
"name": "fe",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@google/genai": "^1.48.0",
|
||||
"@tanstack/react-query": "^5.90.21",
|
||||
"axios": "^1.13.6",
|
||||
"lucide-react": "^1.7.0",
|
||||
"framer-motion": "^12.38.0",
|
||||
"motion": "^12.38.0",
|
||||
"react": "^19.2.4",
|
||||
"react-dom": "^19.2.4",
|
||||
@@ -68,6 +67,7 @@
|
||||
"integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.29.0",
|
||||
"@babel/generator": "^7.29.0",
|
||||
@@ -918,29 +918,6 @@
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@google/genai": {
|
||||
"version": "1.48.0",
|
||||
"resolved": "https://registry.npmjs.org/@google/genai/-/genai-1.48.0.tgz",
|
||||
"integrity": "sha512-plonYK4ML2PrxsRD9SeqmFt76eREWkQdPCglOA6aYDzL1AAbE+7PUnT54SvpWGfws13L0AZEqGSpL7+1IPnTxQ==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"google-auth-library": "^10.3.0",
|
||||
"p-retry": "^4.6.2",
|
||||
"protobufjs": "^7.5.4",
|
||||
"ws": "^8.18.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.25.2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@modelcontextprotocol/sdk": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@humanfs/core": {
|
||||
"version": "0.19.1",
|
||||
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
|
||||
@@ -1043,70 +1020,6 @@
|
||||
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobufjs/aspromise": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
||||
"integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@protobufjs/base64": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
|
||||
"integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@protobufjs/codegen": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",
|
||||
"integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@protobufjs/eventemitter": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",
|
||||
"integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@protobufjs/fetch": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",
|
||||
"integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@protobufjs/aspromise": "^1.1.1",
|
||||
"@protobufjs/inquire": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobufjs/float": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
|
||||
"integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@protobufjs/inquire": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",
|
||||
"integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@protobufjs/path": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
|
||||
"integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@protobufjs/pool": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
|
||||
"integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@protobufjs/utf8": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",
|
||||
"integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/@rolldown/pluginutils": {
|
||||
"version": "1.0.0-rc.3",
|
||||
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz",
|
||||
@@ -1656,6 +1569,7 @@
|
||||
"integrity": "sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.21.3",
|
||||
"@svgr/babel-preset": "8.1.0",
|
||||
@@ -2334,7 +2248,9 @@
|
||||
"version": "24.12.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.0.tgz",
|
||||
"integrity": "sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"undici-types": "~7.16.0"
|
||||
}
|
||||
@@ -2345,6 +2261,7 @@
|
||||
"integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
|
||||
"devOptional": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"csstype": "^3.2.2"
|
||||
}
|
||||
@@ -2359,12 +2276,6 @@
|
||||
"@types/react": "^19.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/retry": {
|
||||
"version": "0.12.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz",
|
||||
"integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "8.57.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.57.0.tgz",
|
||||
@@ -2410,6 +2321,7 @@
|
||||
"integrity": "sha512-XZzOmihLIr8AD1b9hL9ccNMzEMWt/dE2u7NyTY9jJG6YNiNthaD5XtUHVF2uCXZ15ng+z2hT3MVuxnUYhq6k1g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.57.0",
|
||||
"@typescript-eslint/types": "8.57.0",
|
||||
@@ -2687,6 +2599,7 @@
|
||||
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"acorn": "bin/acorn"
|
||||
},
|
||||
@@ -2704,15 +2617,6 @@
|
||||
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/agent-base": {
|
||||
"version": "7.1.4",
|
||||
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
|
||||
"integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 14"
|
||||
}
|
||||
},
|
||||
"node_modules/ajv": {
|
||||
"version": "6.14.0",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",
|
||||
@@ -2777,26 +2681,6 @@
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/base64-js": {
|
||||
"version": "1.5.1",
|
||||
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
|
||||
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/baseline-browser-mapping": {
|
||||
"version": "2.10.8",
|
||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.8.tgz",
|
||||
@@ -2810,15 +2694,6 @@
|
||||
"node": ">=6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/bignumber.js": {
|
||||
"version": "9.3.1",
|
||||
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz",
|
||||
"integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/brace-expansion": {
|
||||
"version": "1.1.13",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz",
|
||||
@@ -2850,6 +2725,7 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"baseline-browser-mapping": "^2.9.0",
|
||||
"caniuse-lite": "^1.0.30001759",
|
||||
@@ -2864,12 +2740,6 @@
|
||||
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
||||
}
|
||||
},
|
||||
"node_modules/buffer-equal-constant-time": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
|
||||
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/call-bind-apply-helpers": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
||||
@@ -3052,19 +2922,11 @@
|
||||
"devOptional": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/data-uri-to-buffer": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
|
||||
"integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 12"
|
||||
}
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.4.3",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
||||
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ms": "^2.1.3"
|
||||
@@ -3129,15 +2991,6 @@
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/ecdsa-sig-formatter": {
|
||||
"version": "1.0.11",
|
||||
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
|
||||
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/electron-to-chromium": {
|
||||
"version": "1.5.313",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.313.tgz",
|
||||
@@ -3298,6 +3151,7 @@
|
||||
"integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.8.0",
|
||||
"@eslint-community/regexpp": "^4.12.1",
|
||||
@@ -3483,12 +3337,6 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/extend": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
|
||||
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/fast-deep-equal": {
|
||||
"version": "3.1.3",
|
||||
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
|
||||
@@ -3528,29 +3376,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/fetch-blob": {
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
|
||||
"integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/jimmywarting"
|
||||
},
|
||||
{
|
||||
"type": "paypal",
|
||||
"url": "https://paypal.me/jimmywarting"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"node-domexception": "^1.0.0",
|
||||
"web-streams-polyfill": "^3.0.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^12.20 || >= 14.13"
|
||||
}
|
||||
},
|
||||
"node_modules/file-entry-cache": {
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
|
||||
@@ -3638,18 +3463,6 @@
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/formdata-polyfill": {
|
||||
"version": "4.0.10",
|
||||
"resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
|
||||
"integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"fetch-blob": "^3.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/framer-motion": {
|
||||
"version": "12.38.0",
|
||||
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.38.0.tgz",
|
||||
@@ -3701,34 +3514,6 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/gaxios": {
|
||||
"version": "7.1.4",
|
||||
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.4.tgz",
|
||||
"integrity": "sha512-bTIgTsM2bWn3XklZISBTQX7ZSddGW+IO3bMdGaemHZ3tbqExMENHLx6kKZ/KlejgrMtj8q7wBItt51yegqalrA==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"extend": "^3.0.2",
|
||||
"https-proxy-agent": "^7.0.1",
|
||||
"node-fetch": "^3.3.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/gcp-metadata": {
|
||||
"version": "8.1.2",
|
||||
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz",
|
||||
"integrity": "sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"gaxios": "^7.0.0",
|
||||
"google-logging-utils": "^1.0.0",
|
||||
"json-bigint": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/gensync": {
|
||||
"version": "1.0.0-beta.2",
|
||||
"resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
|
||||
@@ -3809,32 +3594,6 @@
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/google-auth-library": {
|
||||
"version": "10.6.2",
|
||||
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.6.2.tgz",
|
||||
"integrity": "sha512-e27Z6EThmVNNvtYASwQxose/G57rkRuaRbQyxM2bvYLLX/GqWZ5chWq2EBoUchJbCc57eC9ArzO5wMsEmWftCw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"base64-js": "^1.3.0",
|
||||
"ecdsa-sig-formatter": "^1.0.11",
|
||||
"gaxios": "^7.1.4",
|
||||
"gcp-metadata": "8.1.2",
|
||||
"google-logging-utils": "1.1.3",
|
||||
"jws": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/google-logging-utils": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz",
|
||||
"integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==",
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
}
|
||||
},
|
||||
"node_modules/gopd": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
||||
@@ -3920,19 +3679,6 @@
|
||||
"hermes-estree": "0.25.1"
|
||||
}
|
||||
},
|
||||
"node_modules/https-proxy-agent": {
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
|
||||
"integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"agent-base": "^7.1.2",
|
||||
"debug": "4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 14"
|
||||
}
|
||||
},
|
||||
"node_modules/ignore": {
|
||||
"version": "5.3.2",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
||||
@@ -4050,15 +3796,6 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/json-bigint": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz",
|
||||
"integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"bignumber.js": "^9.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/json-buffer": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
|
||||
@@ -4100,27 +3837,6 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/jwa": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",
|
||||
"integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"buffer-equal-constant-time": "^1.0.1",
|
||||
"ecdsa-sig-formatter": "1.0.11",
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/jws": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz",
|
||||
"integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"jwa": "^2.0.1",
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/keyv": {
|
||||
"version": "4.5.4",
|
||||
"resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
|
||||
@@ -4175,12 +3891,6 @@
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/long": {
|
||||
"version": "5.3.2",
|
||||
"resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",
|
||||
"integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/lower-case": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
|
||||
@@ -4201,15 +3911,6 @@
|
||||
"yallist": "^3.0.2"
|
||||
}
|
||||
},
|
||||
"node_modules/lucide-react": {
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.7.0.tgz",
|
||||
"integrity": "sha512-yI7BeItCLZJTXikmK4KNUGCKoGzSvbKlfCvw44bU4fXAL6v3gYS4uHD1jzsLkfwODYwI6Drw5Tu9Z5ulDe0TSg==",
|
||||
"license": "ISC",
|
||||
"peerDependencies": {
|
||||
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/magic-string": {
|
||||
"version": "0.30.21",
|
||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
|
||||
@@ -4308,6 +4009,7 @@
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/nanoid": {
|
||||
@@ -4347,44 +4049,6 @@
|
||||
"tslib": "^2.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/node-domexception": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
|
||||
"integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
|
||||
"deprecated": "Use your platform's native DOMException instead",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/jimmywarting"
|
||||
},
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://paypal.me/jimmywarting"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.5.0"
|
||||
}
|
||||
},
|
||||
"node_modules/node-fetch": {
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
|
||||
"integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"data-uri-to-buffer": "^4.0.0",
|
||||
"fetch-blob": "^3.1.4",
|
||||
"formdata-polyfill": "^4.0.10"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/node-fetch"
|
||||
}
|
||||
},
|
||||
"node_modules/node-releases": {
|
||||
"version": "2.0.36",
|
||||
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz",
|
||||
@@ -4442,19 +4106,6 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/p-retry": {
|
||||
"version": "4.6.2",
|
||||
"resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz",
|
||||
"integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/retry": "0.12.0",
|
||||
"retry": "^0.13.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/parent-module": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
||||
@@ -4576,30 +4227,6 @@
|
||||
"node": ">= 0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/protobufjs": {
|
||||
"version": "7.5.4",
|
||||
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz",
|
||||
"integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==",
|
||||
"hasInstallScript": true,
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@protobufjs/aspromise": "^1.1.2",
|
||||
"@protobufjs/base64": "^1.1.2",
|
||||
"@protobufjs/codegen": "^2.0.4",
|
||||
"@protobufjs/eventemitter": "^1.1.0",
|
||||
"@protobufjs/fetch": "^1.1.0",
|
||||
"@protobufjs/float": "^1.0.2",
|
||||
"@protobufjs/inquire": "^1.1.0",
|
||||
"@protobufjs/path": "^1.1.2",
|
||||
"@protobufjs/pool": "^1.1.0",
|
||||
"@protobufjs/utf8": "^1.1.0",
|
||||
"@types/node": ">=13.7.0",
|
||||
"long": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/proxy-from-env": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
||||
@@ -4621,6 +4248,7 @@
|
||||
"resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
|
||||
"integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
@@ -4630,6 +4258,7 @@
|
||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
|
||||
"integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"scheduler": "^0.27.0"
|
||||
},
|
||||
@@ -4695,21 +4324,13 @@
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/retry": {
|
||||
"version": "0.13.1",
|
||||
"resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz",
|
||||
"integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
}
|
||||
},
|
||||
"node_modules/rollup": {
|
||||
"version": "4.59.0",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz",
|
||||
"integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@types/estree": "1.0.8"
|
||||
},
|
||||
@@ -4749,26 +4370,6 @@
|
||||
"fsevents": "~2.3.2"
|
||||
}
|
||||
},
|
||||
"node_modules/safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/scheduler": {
|
||||
"version": "0.27.0",
|
||||
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
|
||||
@@ -4965,6 +4566,7 @@
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
@@ -5001,6 +4603,7 @@
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",
|
||||
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/update-browserslist-db": {
|
||||
@@ -5050,6 +4653,7 @@
|
||||
"integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.27.0",
|
||||
"fdir": "^6.5.0",
|
||||
@@ -5149,15 +4753,6 @@
|
||||
"vite": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/web-streams-polyfill": {
|
||||
"version": "3.3.3",
|
||||
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
|
||||
"integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 8"
|
||||
}
|
||||
},
|
||||
"node_modules/which": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
||||
@@ -5184,27 +4779,6 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/ws": {
|
||||
"version": "8.20.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",
|
||||
"integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"bufferutil": "^4.0.1",
|
||||
"utf-8-validate": ">=5.0.2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"bufferutil": {
|
||||
"optional": true
|
||||
},
|
||||
"utf-8-validate": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/yallist": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
|
||||
@@ -5231,6 +4805,7 @@
|
||||
"integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/colinhacks"
|
||||
}
|
||||
|
||||
+1
-2
@@ -10,10 +10,9 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@google/genai": "^1.48.0",
|
||||
"@tanstack/react-query": "^5.90.21",
|
||||
"axios": "^1.13.6",
|
||||
"lucide-react": "^1.7.0",
|
||||
"framer-motion": "^12.38.0",
|
||||
"motion": "^12.38.0",
|
||||
"react": "^19.2.4",
|
||||
"react-dom": "^19.2.4",
|
||||
|
||||
+6
-4
@@ -5,9 +5,10 @@ import MainSubNavLayout from "@/layouts/MainSubNavLayout";
|
||||
|
||||
// pages
|
||||
import { Home } from "@/pages/Home";
|
||||
import { PlanPage } from "@/pages/Plan";
|
||||
import { ChannelConnect } from "@/pages/ChannelConnect";
|
||||
import { Distribution } from "@/pages/Distribution";
|
||||
import { Performance } from "@/pages/Performance";
|
||||
import { ReportPage } from "@/pages/Report";
|
||||
import { StudioPage } from "@/pages/Studio";
|
||||
|
||||
function App() {
|
||||
|
||||
@@ -15,11 +16,12 @@ function App() {
|
||||
<Routes>
|
||||
<Route element={<MainLayout />}>
|
||||
<Route index element={<Home />} />
|
||||
<Route path="channels" element={<ChannelConnect />} />
|
||||
<Route path="distribute" element={<Distribution />} />
|
||||
<Route path="performance" element={<Performance />} />
|
||||
</Route>
|
||||
<Route element={<MainSubNavLayout />}>
|
||||
<Route path="report/:id" element={<ReportPage />} />
|
||||
<Route path="plan/:id" element={<PlanPage />} />
|
||||
<Route path="studio/:id" element={<StudioPage />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
)
|
||||
|
||||
+3
-18
@@ -130,27 +130,12 @@
|
||||
|
||||
/* ─── Utility Classes ─────────────────────────────────────────────── */
|
||||
|
||||
/* 라이트 섹션 헤딩 그라디언트 텍스트
|
||||
- base의 h2 { color: navy }와 함께 쓸 때 color를 반드시 투명으로 두어야 그라데이션이 보임
|
||||
- background 단축 속성은 clip을 리셋할 수 있어 background-image만 사용 */
|
||||
/* 라이트 섹션 헤딩 그라디언트 텍스트 */
|
||||
.text-gradient {
|
||||
color: transparent;
|
||||
background-image: linear-gradient(to right, var(--color-navy-900), #3b5998);
|
||||
background: linear-gradient(to right, var(--color-navy-900), #3b5998);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
/*
|
||||
* 그라데이션 제목(h2)과 같은 레이아웃 안의 뱃지·버튼:
|
||||
* WebKit 계열에서 -webkit-text-fill-color 가 상속되면 text-* 만으로는 글씨가 비어 보일 수 있음.
|
||||
* currentColor 는 해당 요소의 (Tailwind) color 값과 맞춘다.
|
||||
*/
|
||||
.solid-text-paint {
|
||||
-webkit-text-fill-color: currentColor !important;
|
||||
/* bg-* 와 같은 요소에 clip:text가 남으면 글리프가 배경으로만 채워져 비어 보일 수 있음 */
|
||||
-webkit-background-clip: border-box !important;
|
||||
background-clip: border-box !important;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
/* 반투명 글래스 카드 — 랜딩 섹션 */
|
||||
|
||||
Whitespace-only changes.
@@ -1,33 +0,0 @@
|
||||
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
||||
import { UI_PRIMARY_GRADIENT_CLASS } from "@/components/atoms/uiTokens";
|
||||
|
||||
export type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type"> & {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
variant?: "primary" | "outline";
|
||||
};
|
||||
|
||||
export function Button({
|
||||
children,
|
||||
className = "",
|
||||
variant = "outline",
|
||||
...rest
|
||||
}: ButtonProps) {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
className={[
|
||||
"rounded-full transition-all cursor-pointer break-keep solid-text-paint",
|
||||
variant === "primary"
|
||||
? `${UI_PRIMARY_GRADIENT_CLASS} text-white shadow-md`
|
||||
: "bg-white border border-neutral-30 text-neutral-70 hover:bg-neutral-10",
|
||||
className,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" ")}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
import type { HTMLAttributes, ReactNode } from "react";
|
||||
|
||||
export type PillProps = Omit<HTMLAttributes<HTMLSpanElement>, "className"> & {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
size?: "sm" | "md";
|
||||
weight?: "medium" | "semibold" | "none";
|
||||
inlineFlex?: boolean;
|
||||
};
|
||||
|
||||
export function Pill({
|
||||
children,
|
||||
className = "",
|
||||
size = "md",
|
||||
weight = "medium",
|
||||
inlineFlex = false,
|
||||
...rest
|
||||
}: PillProps) {
|
||||
return (
|
||||
<span
|
||||
className={[
|
||||
"rounded-full break-keep",
|
||||
inlineFlex && "inline-flex items-center",
|
||||
size === "sm" ? "px-2 py-1" : "px-3 py-1",
|
||||
weight === "semibold" ? "font-semibold" : weight === "medium" ? "font-medium" : "",
|
||||
"label-12",
|
||||
className,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" ")}
|
||||
{...rest}
|
||||
>
|
||||
{/* 배경·테두리는 바깥 span, WebKit 글자 채움은 안쪽만 solid-text-paint */}
|
||||
<span className="solid-text-paint">{children}</span>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
import type { HTMLAttributes, ReactNode } from "react";
|
||||
|
||||
const paddingMap = {
|
||||
none: "",
|
||||
sm: "p-4",
|
||||
md: "p-5",
|
||||
lg: "p-6",
|
||||
} as const;
|
||||
|
||||
export type SurfaceProps = Omit<HTMLAttributes<HTMLDivElement>, "className"> & {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
padding?: keyof typeof paddingMap;
|
||||
radius?: "xl" | "2xl";
|
||||
bordered?: boolean;
|
||||
surface?: "white" | "none";
|
||||
shadow?: boolean;
|
||||
interactive?: boolean | "lift";
|
||||
overflowHidden?: boolean;
|
||||
};
|
||||
|
||||
export function Surface({
|
||||
children,
|
||||
className = "",
|
||||
padding = "md",
|
||||
radius = "2xl",
|
||||
bordered = true,
|
||||
surface = "white",
|
||||
shadow = true,
|
||||
interactive = false,
|
||||
overflowHidden = false,
|
||||
...rest
|
||||
}: SurfaceProps) {
|
||||
const interactiveClass =
|
||||
interactive === "lift"
|
||||
? "hover:shadow-[4px_6px_16px_rgba(0,0,0,0.09)] transition-shadow"
|
||||
: interactive
|
||||
? "hover:shadow-md transition-shadow"
|
||||
: "";
|
||||
|
||||
return (
|
||||
<div
|
||||
className={[
|
||||
radius === "xl" ? "rounded-xl" : "rounded-2xl",
|
||||
bordered && "border border-neutral-20",
|
||||
surface === "white" && "bg-white",
|
||||
shadow && "card-shadow",
|
||||
paddingMap[padding],
|
||||
interactiveClass,
|
||||
overflowHidden && "overflow-hidden",
|
||||
className,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" ")}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
export { Button, type ButtonProps } from "@/components/atoms/Button";
|
||||
export { Pill, type PillProps } from "@/components/atoms/Pill";
|
||||
export { Surface, type SurfaceProps } from "@/components/atoms/Surface";
|
||||
export { UI_PRIMARY_GRADIENT_CLASS } from "@/components/atoms/uiTokens";
|
||||
@@ -1,2 +0,0 @@
|
||||
/** 앱 전역에서 쓸 수 있는 브랜드 그라데이션 배경 클래스 (버튼·블록 배경 등) */
|
||||
export const UI_PRIMARY_GRADIENT_CLASS = "bg-gradient-to-r from-violet-700 to-navy-950";
|
||||
@@ -8,29 +8,17 @@ import type { BrandInconsistency } from "@/types/brandConsistency";
|
||||
export type BrandConsistencyMapProps = {
|
||||
inconsistencies: BrandInconsistency[];
|
||||
className?: string;
|
||||
/** false면 상단 제목·설명을 숨김 (플랜 브랜딩 가이드 탭 등) */
|
||||
showHeading?: boolean;
|
||||
};
|
||||
|
||||
export function BrandConsistencyMap({
|
||||
inconsistencies,
|
||||
className = "",
|
||||
showHeading = true,
|
||||
}: BrandConsistencyMapProps) {
|
||||
export function BrandConsistencyMap({ inconsistencies, className = "" }: BrandConsistencyMapProps) {
|
||||
const [expanded, setExpanded] = useState<number | null>(0);
|
||||
|
||||
if (inconsistencies.length === 0) return null;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`${showHeading ? "mt-8 animate-fade-in-up animation-delay-200 " : ""}${className}`.trim()}
|
||||
>
|
||||
{showHeading ? (
|
||||
<>
|
||||
<h3 className="font-serif headline-20 text-navy-900 mb-2 break-keep">Brand Consistency Map</h3>
|
||||
<p className="body-14 text-neutral-60 mb-5 break-keep">전 채널 브랜드 일관성 분석</p>
|
||||
</>
|
||||
) : null}
|
||||
<div className={`mt-8 animate-fade-in-up animation-delay-200 ${className}`.trim()}>
|
||||
<h3 className="font-serif headline-20 text-navy-900 mb-2 break-keep">Brand Consistency Map</h3>
|
||||
<p className="body-14 text-neutral-60 mb-5 break-keep">전 채널 브랜드 일관성 분석</p>
|
||||
|
||||
<div className="space-y-3">
|
||||
{inconsistencies.map((item, i) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { CSSProperties } from "react";
|
||||
import EyeIcon from "@/assets/icons/eye.svg?react";
|
||||
import { formatCompactNumber } from "@/utils/formatNumber";
|
||||
import { formatCompactNumber } from "@/lib/formatNumber";
|
||||
|
||||
export type TopVideoCardProps = {
|
||||
title: string;
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@ import ExternalLinkIcon from "@/assets/icons/external-link.svg?react";
|
||||
import CheckCircleIcon from "@/assets/report/check-circle.svg?react";
|
||||
import HelpCircleIcon from "@/assets/report/help-circle.svg?react";
|
||||
import XCircleIcon from "@/assets/report/x-circle.svg?react";
|
||||
import type { OtherChannelStatus } from "@/features/report/types/otherChannels";
|
||||
import { safeUrl } from "@/utils/safeUrl";
|
||||
import type { OtherChannelStatus } from "@/types/otherChannels";
|
||||
import { safeUrl } from "@/lib/safeUrl";
|
||||
|
||||
export type OtherChannelRowProps = {
|
||||
name: string;
|
||||
File renamed without changes.
File renamed without changes.
@@ -6,20 +6,22 @@
|
||||
interface IconProps {
|
||||
size?: number;
|
||||
className?: string;
|
||||
color?: string;
|
||||
style?: { color?: string; [key: string]: unknown };
|
||||
}
|
||||
|
||||
export function YoutubeFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function YoutubeFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<rect x="2" y="4" width="20" height="16" rx="4" fill="currentColor" opacity="0.25" />
|
||||
<path d="M10 8.5v7l6-3.5-6-3.5z" fill="currentColor" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function InstagramFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function InstagramFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<rect x="2" y="2" width="20" height="20" rx="6" fill="currentColor" opacity="0.25" />
|
||||
<circle cx="12" cy="12" r="4.5" fill="currentColor" />
|
||||
<circle cx="17.5" cy="6.5" r="1.5" fill="currentColor" />
|
||||
@@ -27,18 +29,18 @@ export function InstagramFilled({ size = 20, className = '' }: IconProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export function FacebookFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function FacebookFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<rect x="2" y="2" width="20" height="20" rx="6" fill="currentColor" opacity="0.25" />
|
||||
<path d="M15.5 3.5H13.5C11.29 3.5 9.5 5.29 9.5 7.5V9.5H7.5V12.5H9.5V20.5H12.5V12.5H14.5L15.5 9.5H12.5V7.5C12.5 7.22 12.72 7 13 7H15.5V3.5Z" fill="currentColor" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function GlobeFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function GlobeFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<circle cx="12" cy="12" r="10" fill="currentColor" opacity="0.2" />
|
||||
<ellipse cx="12" cy="12" rx="4" ry="10" fill="currentColor" opacity="0.35" />
|
||||
<line x1="2" y1="12" x2="22" y2="12" stroke="currentColor" strokeWidth="1.5" opacity="0.5" />
|
||||
@@ -47,9 +49,9 @@ export function GlobeFilled({ size = 20, className = '' }: IconProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export function VideoFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function VideoFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<rect x="1" y="5" width="15" height="14" rx="3" fill="currentColor" opacity="0.25" />
|
||||
<path d="M16 9.5L22 6.5V17.5L16 14.5V9.5Z" fill="currentColor" />
|
||||
<rect x="1" y="5" width="15" height="14" rx="3" fill="currentColor" opacity="0.5" />
|
||||
@@ -57,18 +59,18 @@ export function VideoFilled({ size = 20, className = '' }: IconProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export function MessageFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function MessageFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<path d="M4 4H20C21.1 4 22 4.9 22 6V16C22 17.1 21.1 18 20 18H6L2 22V6C2 4.9 2.9 4 4 4Z" fill="currentColor" opacity="0.3" />
|
||||
<path d="M4 4H20C21.1 4 22 4.9 22 6V16C22 17.1 21.1 18 20 18H6L2 22V6C2 4.9 2.9 4 4 4Z" fill="currentColor" opacity="0.4" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function CalendarFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function CalendarFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<rect x="3" y="4" width="18" height="18" rx="3" fill="currentColor" opacity="0.25" />
|
||||
<rect x="3" y="4" width="18" height="6" rx="3" fill="currentColor" opacity="0.5" />
|
||||
<circle cx="8" cy="15" r="1.2" fill="currentColor" />
|
||||
@@ -80,9 +82,9 @@ export function CalendarFilled({ size = 20, className = '' }: IconProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export function FileTextFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function FileTextFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<path d="M6 2H14L20 8V20C20 21.1 19.1 22 18 22H6C4.9 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2Z" fill="currentColor" opacity="0.25" />
|
||||
<path d="M14 2L20 8H16C14.9 8 14 7.1 14 6V2Z" fill="currentColor" opacity="0.5" />
|
||||
<rect x="8" y="12" width="8" height="1.5" rx="0.75" fill="currentColor" />
|
||||
@@ -91,9 +93,9 @@ export function FileTextFilled({ size = 20, className = '' }: IconProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export function ShareFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function ShareFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<circle cx="18" cy="5" r="3.5" fill="currentColor" opacity="0.4" />
|
||||
<circle cx="6" cy="12" r="3.5" fill="currentColor" opacity="0.4" />
|
||||
<circle cx="18" cy="19" r="3.5" fill="currentColor" opacity="0.4" />
|
||||
@@ -103,27 +105,27 @@ export function ShareFilled({ size = 20, className = '' }: IconProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export function MegaphoneFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function MegaphoneFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<path d="M19 3L8 8H4C2.9 8 2 8.9 2 10V14C2 15.1 2.9 16 4 16H5L7 21H10L8 16L19 21V3Z" fill="currentColor" opacity="0.35" />
|
||||
<path d="M21 10C22.1 10 23 10.9 23 12C23 13.1 22.1 14 21 14" stroke="currentColor" strokeWidth="2" strokeLinecap="round" opacity="0.5" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function TiktokFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function TiktokFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<rect x="2" y="2" width="20" height="20" rx="6" fill="currentColor" opacity="0.25" />
|
||||
<path d="M16.5 4.5V12.5C16.5 15.26 14.26 17.5 11.5 17.5C8.74 17.5 6.5 15.26 6.5 12.5C6.5 9.74 8.74 7.5 11.5 7.5V10C10.12 10 9 11.12 9 12.5C9 13.88 10.12 15 11.5 15C12.88 15 14 13.88 14 12.5V4.5H16.5Z" fill="currentColor" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function MusicFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function MusicFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className}>
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" className={className} style={style ?? { color }}>
|
||||
<circle cx="7" cy="17" r="3" fill="currentColor" opacity="0.25" />
|
||||
<circle cx="17" cy="15" r="3" fill="currentColor" opacity="0.25" />
|
||||
<circle cx="7" cy="17" r="2" fill="currentColor" />
|
||||
@@ -134,17 +136,12 @@ export function MusicFilled({ size = 20, className = '' }: IconProps) {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* InfinityLoopFilled — Infinite Marketing loop icon.
|
||||
* HubSpot-style infinity loop with gradient shading.
|
||||
* Horizontal aspect ratio, scaled to match text cap-height.
|
||||
*/
|
||||
export function PrismFilled({ size = 20, className = '' }: IconProps) {
|
||||
export function PrismFilled({ size = 20, className = '', color, style }: IconProps) {
|
||||
const w = Math.round(size * 1.6);
|
||||
const h = size;
|
||||
const id = `inf-grad-${size}`;
|
||||
return (
|
||||
<svg width={w} height={h} viewBox="0 0 28 20" fill="none" className={className}>
|
||||
<svg width={w} height={h} viewBox="0 0 28 20" fill="none" className={className} style={style ?? { color }}>
|
||||
<defs>
|
||||
<linearGradient id={id} x1="0" y1="0" x2="28" y2="20" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" stopColor="currentColor" stopOpacity="0.9" />
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
export { ComparisonRow, type ComparisonRowProps } from "@/components/compare/ComparisonRow";
|
||||
export { BrandConsistencyMap, type BrandConsistencyMapProps } from "@/components/brand/BrandConsistencyMap";
|
||||
export { OtherChannelRow, type OtherChannelRowProps } from "@/components/channel/OtherChannelRow";
|
||||
export { SeverityBadge, type SeverityBadgeProps } from "@/components/badge/SeverityBadge";
|
||||
export { ChannelScoreCard, type ChannelScoreCardProps } from "@/components/card/ChannelScoreCard";
|
||||
export { InfoStatCard, type InfoStatCardProps } from "@/components/card/InfoStatCard";
|
||||
@@ -6,17 +8,9 @@ export { MetricCard, type MetricCardProps } from "@/components/card/MetricCard";
|
||||
export { PixelInstallCard, type PixelInstallCardProps } from "@/components/card/PixelInstallCard";
|
||||
export { TopVideoCard, type TopVideoCardProps } from "@/components/card/TopVideoCard";
|
||||
export { TagChipList, type TagChipListProps } from "@/components/chip/TagChipList";
|
||||
export { DiagnosisRow, type DiagnosisRowProps } from "@/components/diagnosis/DiagnosisRow";
|
||||
export { ConsolidationCallout, type ConsolidationCalloutProps } from "@/components/panel/ConsolidationCallout";
|
||||
export { HighlightPanel, type HighlightPanelProps } from "@/components/panel/HighlightPanel";
|
||||
export { ScoreRing, type ScoreRingProps } from "@/components/rating/ScoreRing";
|
||||
export { StarRatingDisplay, type StarRatingDisplayProps } from "@/components/rating/StarRatingDisplay";
|
||||
export { PageSection, type PageSectionProps } from "@/components/section/PageSection";
|
||||
export {
|
||||
Button,
|
||||
Pill,
|
||||
Surface,
|
||||
UI_PRIMARY_GRADIENT_CLASS,
|
||||
type ButtonProps,
|
||||
type PillProps,
|
||||
type SurfaceProps,
|
||||
} from "@/components/atoms";
|
||||
@@ -1,5 +1,5 @@
|
||||
import StarIcon from "@/assets/icons/star.svg?react";
|
||||
import { formatCompactNumber } from "@/utils/formatNumber";
|
||||
import { formatCompactNumber } from "@/lib/formatNumber";
|
||||
|
||||
export type StarRatingDisplayProps = {
|
||||
rating: number;
|
||||
|
||||
@@ -6,8 +6,6 @@ export type PageSectionProps = {
|
||||
subtitle?: string;
|
||||
dark?: boolean;
|
||||
className?: string;
|
||||
/** false면 섹션 입장용 `animate-fade-in-up` 미적용 (DEMO에 없는 모션을 쓰지 않을 때) */
|
||||
animateEnter?: boolean;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
@@ -17,15 +15,13 @@ export function PageSection({
|
||||
subtitle,
|
||||
dark = false,
|
||||
className = "",
|
||||
animateEnter = true,
|
||||
children,
|
||||
}: PageSectionProps) {
|
||||
return (
|
||||
<section
|
||||
id={id}
|
||||
className={[
|
||||
"py-16 md:py-20 px-6 scroll-mt-36",
|
||||
animateEnter ? "animate-fade-in-up" : "",
|
||||
"py-16 md:py-20 px-6 scroll-mt-36 animate-fade-in-up",
|
||||
dark ? "bg-navy-900 text-white relative overflow-hidden" : "bg-white",
|
||||
className,
|
||||
]
|
||||
@@ -38,30 +34,19 @@ export function PageSection({
|
||||
aria-hidden
|
||||
/>
|
||||
) : null}
|
||||
<div
|
||||
className={[
|
||||
"relative max-w-7xl mx-auto",
|
||||
dark ? "text-white" : "text-neutral-80",
|
||||
].join(" ")}
|
||||
>
|
||||
<div className="relative max-w-7xl mx-auto">
|
||||
<header className="mb-10">
|
||||
<h2
|
||||
className={
|
||||
dark
|
||||
? "font-serif text-3xl md:display-36 font-bold mb-3 bg-gradient-to-r from-lavender-200 to-marketing-ice bg-clip-text text-transparent"
|
||||
: "font-serif text-3xl md:display-36 font-bold mb-3 text-transparent text-gradient"
|
||||
: "font-serif text-3xl md:display-36 font-bold mb-3 text-gradient"
|
||||
}
|
||||
>
|
||||
{title}
|
||||
</h2>
|
||||
{subtitle ? (
|
||||
<p
|
||||
className={
|
||||
dark
|
||||
? "body-18 text-lavender-200 break-keep solid-text-paint"
|
||||
: "body-18 text-neutral-70 break-keep solid-text-paint"
|
||||
}
|
||||
>
|
||||
<p className={dark ? "body-18 text-lavender-200 break-keep" : "body-18 text-neutral-70 break-keep"}>
|
||||
{subtitle}
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
/** 채널 연결 목록 */
|
||||
|
||||
import type { ChannelDef } from '../types';
|
||||
|
||||
export const CHANNELS: ChannelDef[] = [
|
||||
{
|
||||
id: 'youtube',
|
||||
name: 'YouTube',
|
||||
description: '채널 연동으로 영상 자동 업로드, 성과 분석',
|
||||
iconKey: 'youtube',
|
||||
brandColor: '#FF0000',
|
||||
bgColor: '#FFF0F0',
|
||||
borderColor: '#F5D5DC',
|
||||
fields: [
|
||||
{ key: 'channelUrl', label: '채널 URL', placeholder: 'https://youtube.com/@YourChannel' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'tiktok',
|
||||
name: 'TikTok',
|
||||
description: 'Shorts 크로스포스팅, 트렌드 콘텐츠',
|
||||
iconKey: 'tiktok',
|
||||
brandColor: '#000000',
|
||||
bgColor: '#F5F5F5',
|
||||
borderColor: '#E0E0E0',
|
||||
fields: [
|
||||
{ key: 'handle', label: '핸들', placeholder: '@yourclinic' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'instagram_kr',
|
||||
name: 'Instagram KR',
|
||||
description: '한국 계정 — Reels, Feed, Stories 자동 게시',
|
||||
iconKey: 'instagram',
|
||||
brandColor: '#E1306C',
|
||||
bgColor: '#FFF0F5',
|
||||
borderColor: '#F5D0DC',
|
||||
fields: [
|
||||
{ key: 'handle', label: '핸들', placeholder: '@viewclinic_kr' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'instagram_en',
|
||||
name: 'Instagram EN',
|
||||
description: '글로벌 계정 — 해외 환자 대상 콘텐츠',
|
||||
iconKey: 'instagram',
|
||||
brandColor: '#E1306C',
|
||||
bgColor: '#FFF0F5',
|
||||
borderColor: '#F5D0DC',
|
||||
fields: [
|
||||
{ key: 'handle', label: '핸들', placeholder: '@viewplasticsurgery' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'facebook_kr',
|
||||
name: 'Facebook KR',
|
||||
description: '한국 페이지 — 광고 리타겟, 콘텐츠 배포',
|
||||
iconKey: 'facebook',
|
||||
brandColor: '#1877F2',
|
||||
bgColor: '#F0F4FF',
|
||||
borderColor: '#C5D5F5',
|
||||
fields: [
|
||||
{ key: 'pageUrl', label: '페이지 URL', placeholder: 'https://facebook.com/YourPage' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'facebook_en',
|
||||
name: 'Facebook EN',
|
||||
description: '글로벌 페이지 — 해외 환자 유입',
|
||||
iconKey: 'facebook',
|
||||
brandColor: '#1877F2',
|
||||
bgColor: '#F0F4FF',
|
||||
borderColor: '#C5D5F5',
|
||||
fields: [
|
||||
{ key: 'pageUrl', label: '페이지 URL', placeholder: 'https://facebook.com/YourPageEN' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'naver_blog',
|
||||
name: 'Naver Blog',
|
||||
description: 'SEO 블로그 포스트 자동 게시, 키워드 최적화',
|
||||
iconKey: 'globe',
|
||||
brandColor: '#03C75A',
|
||||
bgColor: '#F0FFF5',
|
||||
borderColor: '#C5F5D5',
|
||||
fields: [
|
||||
{ key: 'blogUrl', label: '블로그 URL', placeholder: 'https://blog.naver.com/yourblog' },
|
||||
{ key: 'apiKey', label: 'API Key', placeholder: 'Naver Open API Key', type: 'password' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'naver_place',
|
||||
name: 'Naver Place',
|
||||
description: '플레이스 정보 동기화, 리뷰 모니터링',
|
||||
iconKey: 'globe',
|
||||
brandColor: '#03C75A',
|
||||
bgColor: '#F0FFF5',
|
||||
borderColor: '#C5F5D5',
|
||||
fields: [
|
||||
{ key: 'placeUrl', label: '플레이스 URL', placeholder: 'https://map.naver.com/...' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'gangnamunni',
|
||||
name: '강남언니',
|
||||
description: '리뷰 모니터링, 평점 추적, 시술 정보 동기화',
|
||||
iconKey: 'globe',
|
||||
brandColor: '#6B2D8B',
|
||||
bgColor: '#F3F0FF',
|
||||
borderColor: '#D5CDF5',
|
||||
fields: [
|
||||
{ key: 'hospitalUrl', label: '병원 페이지 URL', placeholder: 'https://gangnamunni.com/hospitals/...' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'website',
|
||||
name: 'Website',
|
||||
description: '홈페이지 SEO 모니터링, 트래킹 픽셀 관리',
|
||||
iconKey: 'globe',
|
||||
brandColor: '#6C5CE7',
|
||||
bgColor: '#F3F0FF',
|
||||
borderColor: '#D5CDF5',
|
||||
fields: [
|
||||
{ key: 'url', label: '웹사이트 URL', placeholder: 'https://www.yourclinic.com' },
|
||||
{ key: 'gaId', label: 'Google Analytics ID', placeholder: 'G-XXXXXXXXXX' },
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,57 @@
|
||||
import { useState, useCallback } from 'react';
|
||||
import { CHANNELS } from '../constants/channels';
|
||||
import type { ChannelState } from '../types';
|
||||
|
||||
export function useChannelConnect() {
|
||||
const [channels, setChannels] = useState<Record<string, ChannelState>>(() => {
|
||||
const init: Record<string, ChannelState> = {};
|
||||
for (const ch of CHANNELS) {
|
||||
init[ch.id] = { status: 'disconnected', values: {} };
|
||||
}
|
||||
return init;
|
||||
});
|
||||
|
||||
const [expandedId, setExpandedId] = useState<string | null>(null);
|
||||
|
||||
const handleFieldChange = useCallback((channelId: string, fieldKey: string, value: string) => {
|
||||
setChannels(prev => ({
|
||||
...prev,
|
||||
[channelId]: {
|
||||
...prev[channelId],
|
||||
values: { ...prev[channelId].values, [fieldKey]: value },
|
||||
},
|
||||
}));
|
||||
}, []);
|
||||
|
||||
const handleConnect = useCallback((channelId: string) => {
|
||||
setChannels(prev => ({
|
||||
...prev,
|
||||
[channelId]: { ...prev[channelId], status: 'connecting' },
|
||||
}));
|
||||
setTimeout(() => {
|
||||
setChannels(prev => ({
|
||||
...prev,
|
||||
[channelId]: { ...prev[channelId], status: 'connected' },
|
||||
}));
|
||||
}, 2000);
|
||||
}, []);
|
||||
|
||||
const handleDisconnect = useCallback((channelId: string) => {
|
||||
setChannels(prev => ({
|
||||
...prev,
|
||||
[channelId]: { status: 'disconnected', values: {} },
|
||||
}));
|
||||
}, []);
|
||||
|
||||
const connectedCount = Object.values(channels).filter(c => c.status === 'connected').length;
|
||||
|
||||
return {
|
||||
channels,
|
||||
expandedId,
|
||||
connectedCount,
|
||||
setExpandedId,
|
||||
handleFieldChange,
|
||||
handleConnect,
|
||||
handleDisconnect,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { create } from 'zustand';
|
||||
import { persist } from 'zustand/middleware';
|
||||
import { CHANNELS } from '../constants/channels';
|
||||
import type { ChannelState } from '../types';
|
||||
|
||||
interface ChannelConnectStore {
|
||||
channels: Record<string, ChannelState>;
|
||||
expandedId: string | null;
|
||||
connectedCount: number;
|
||||
setExpandedId: (id: string | null) => void;
|
||||
handleFieldChange: (channelId: string, fieldKey: string, value: string) => void;
|
||||
handleConnect: (channelId: string) => void;
|
||||
handleDisconnect: (channelId: string) => void;
|
||||
}
|
||||
|
||||
const initialChannels: Record<string, ChannelState> = {};
|
||||
for (const ch of CHANNELS) {
|
||||
initialChannels[ch.id] = { status: 'disconnected', values: {} };
|
||||
}
|
||||
|
||||
export const useChannelConnectStore = create<ChannelConnectStore>()(
|
||||
persist(
|
||||
(set) => ({
|
||||
channels: initialChannels,
|
||||
expandedId: null,
|
||||
connectedCount: 0,
|
||||
|
||||
setExpandedId: (expandedId) => set({ expandedId }),
|
||||
|
||||
handleFieldChange: (channelId, fieldKey, value) => set((s) => ({
|
||||
channels: {
|
||||
...s.channels,
|
||||
[channelId]: {
|
||||
...s.channels[channelId],
|
||||
values: { ...s.channels[channelId].values, [fieldKey]: value },
|
||||
},
|
||||
},
|
||||
})),
|
||||
|
||||
handleConnect: (channelId) => {
|
||||
set((s) => ({
|
||||
channels: { ...s.channels, [channelId]: { ...s.channels[channelId], status: 'connecting' } },
|
||||
}));
|
||||
setTimeout(() => {
|
||||
set((s) => {
|
||||
const channels = { ...s.channels, [channelId]: { ...s.channels[channelId], status: 'connected' as const } };
|
||||
const connectedCount = Object.values(channels).filter(c => c.status === 'connected').length;
|
||||
return { channels, connectedCount };
|
||||
});
|
||||
}, 2000);
|
||||
},
|
||||
|
||||
handleDisconnect: (channelId) => set((s) => {
|
||||
const channels = { ...s.channels, [channelId]: { status: 'disconnected' as const, values: {} } };
|
||||
const connectedCount = Object.values(channels).filter(c => c.status === 'connected').length;
|
||||
return { channels, connectedCount };
|
||||
}),
|
||||
}),
|
||||
{ name: 'channel-connect' }
|
||||
)
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
export type ConnectionStatus = 'disconnected' | 'connecting' | 'connected';
|
||||
|
||||
export interface ChannelDef {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
iconKey: string;
|
||||
brandColor: string;
|
||||
bgColor: string;
|
||||
borderColor: string;
|
||||
fields: { key: string; label: string; placeholder: string; type?: string }[];
|
||||
}
|
||||
|
||||
export interface ChannelState {
|
||||
status: ConnectionStatus;
|
||||
values: Record<string, string>;
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
import { motion, AnimatePresence } from 'motion/react';
|
||||
import type { ChannelDef, ChannelState } from '../types';
|
||||
import { CHANNELS } from '../constants/channels';
|
||||
import { useChannelConnectStore } from '../store/channelConnectStore';
|
||||
import { CHANNEL_ICON_MAP } from '../utils/channelIconMap';
|
||||
|
||||
interface ChannelCardProps {
|
||||
ch: ChannelDef;
|
||||
state: ChannelState;
|
||||
isExpanded: boolean;
|
||||
onToggle: () => void;
|
||||
onFieldChange: (fieldKey: string, value: string) => void;
|
||||
onConnect: () => void;
|
||||
onDisconnect: () => void;
|
||||
}
|
||||
|
||||
function ChannelCard({ ch, state, isExpanded, onToggle, onFieldChange, onConnect, onDisconnect }: ChannelCardProps) {
|
||||
const Icon = CHANNEL_ICON_MAP[ch.iconKey];
|
||||
const allFieldsFilled = ch.fields.every(f => (state.values[f.key] ?? '').trim().length > 0);
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
layout
|
||||
className={`rounded-2xl border-2 overflow-hidden transition-all ${
|
||||
state.status === 'connected'
|
||||
? 'border-[#D5CDF5] bg-[#F3F0FF]/20'
|
||||
: isExpanded
|
||||
? 'border-[#6C5CE7] bg-white shadow-[3px_4px_12px_rgba(108,92,231,0.12)]'
|
||||
: 'border-slate-100 bg-white shadow-[3px_4px_12px_rgba(0,0,0,0.06)] hover:border-[#D5CDF5]'
|
||||
}`}
|
||||
>
|
||||
<button
|
||||
onClick={onToggle}
|
||||
className="w-full flex items-center gap-4 p-5 text-left"
|
||||
>
|
||||
<div
|
||||
className="w-11 h-11 rounded-xl flex items-center justify-center shrink-0"
|
||||
style={{ backgroundColor: ch.bgColor }}
|
||||
>
|
||||
<Icon size={22} style={{ color: ch.brandColor }} />
|
||||
</div>
|
||||
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center gap-2">
|
||||
<h3 className="font-semibold text-[#0A1128]">{ch.name}</h3>
|
||||
{state.status === 'connected' && (
|
||||
<span className="px-2 py-1 rounded-full bg-[#F3F0FF] text-[#4A3A7C] text-xs font-semibold border border-[#D5CDF5]">
|
||||
연결됨
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<p className="text-xs text-slate-500 mt-1 truncate">{ch.description}</p>
|
||||
</div>
|
||||
|
||||
<svg
|
||||
width="20" height="20" viewBox="0 0 20 20" fill="none"
|
||||
className={`shrink-0 text-slate-400 transition-transform ${isExpanded ? 'rotate-180' : ''}`}
|
||||
>
|
||||
<path d="M5 7.5L10 12.5L15 7.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<AnimatePresence>
|
||||
{isExpanded && (
|
||||
<motion.div
|
||||
initial={{ height: 0, opacity: 0 }}
|
||||
animate={{ height: 'auto', opacity: 1 }}
|
||||
exit={{ height: 0, opacity: 0 }}
|
||||
transition={{ duration: 0.25 }}
|
||||
className="overflow-hidden"
|
||||
>
|
||||
<div className="px-5 pb-5 pt-1 border-t border-slate-100">
|
||||
{state.status === 'connected' ? (
|
||||
<div>
|
||||
<div className="flex items-center gap-2 mb-4 mt-3">
|
||||
<div className="w-2 h-2 rounded-full bg-[#6C5CE7]" />
|
||||
<span className="text-sm text-[#4A3A7C] font-medium">연결 상태: 활성</span>
|
||||
</div>
|
||||
{ch.fields.map(f => (
|
||||
<div key={f.key} className="mb-2">
|
||||
<span className="text-xs text-slate-400">{f.label}</span>
|
||||
<p className="text-sm text-slate-700 font-medium">
|
||||
{f.type === 'password' ? '••••••••' : state.values[f.key]}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
<button
|
||||
onClick={onDisconnect}
|
||||
className="mt-4 w-full py-3 rounded-full bg-white border border-[#F5D5DC] text-[#7C3A4B] text-sm font-medium hover:bg-[#FFF0F0] transition-all"
|
||||
>
|
||||
연결 해제
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<div className="mt-3">
|
||||
{ch.fields.map(f => (
|
||||
<div key={f.key} className="mb-3">
|
||||
<label className="text-xs font-medium text-slate-600 mb-1 block">{f.label}</label>
|
||||
<input
|
||||
type={f.type ?? 'text'}
|
||||
value={state.values[f.key] ?? ''}
|
||||
onChange={e => onFieldChange(f.key, e.target.value)}
|
||||
placeholder={f.placeholder}
|
||||
className="w-full px-4 py-3 rounded-xl border border-slate-200 text-sm text-slate-700 placeholder:text-slate-300 focus:outline-none focus:border-[#6C5CE7] focus:ring-1 focus:ring-[#6C5CE7]/20 transition-all"
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
|
||||
<div className="flex gap-2 mt-4">
|
||||
<button
|
||||
onClick={onConnect}
|
||||
disabled={!allFieldsFilled || state.status === 'connecting'}
|
||||
className="flex-1 flex items-center justify-center gap-2 py-3 rounded-full bg-gradient-to-r from-[#4F1DA1] to-[#021341] text-white text-sm font-medium shadow-md hover:shadow-lg transition-all disabled:opacity-40 disabled:cursor-not-allowed"
|
||||
>
|
||||
{state.status === 'connecting' ? (
|
||||
<>
|
||||
<div className="w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin" />
|
||||
연결 중...
|
||||
</>
|
||||
) : (
|
||||
'연결하기'
|
||||
)}
|
||||
</button>
|
||||
<button
|
||||
className="px-4 py-3 rounded-full bg-white border border-slate-200 text-slate-500 text-sm font-medium hover:bg-slate-50 transition-all"
|
||||
>
|
||||
OAuth
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
|
||||
export function ChannelConnectSection() {
|
||||
const {
|
||||
channels,
|
||||
expandedId,
|
||||
setExpandedId,
|
||||
handleFieldChange,
|
||||
handleConnect,
|
||||
handleDisconnect,
|
||||
} = useChannelConnectStore();
|
||||
|
||||
return (
|
||||
<section className="py-12 px-6">
|
||||
<div className="max-w-5xl mx-auto">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
{CHANNELS.map(ch => (
|
||||
<ChannelCard
|
||||
key={ch.id}
|
||||
ch={ch}
|
||||
state={channels[ch.id]}
|
||||
isExpanded={expandedId === ch.id}
|
||||
onToggle={() => setExpandedId(expandedId === ch.id ? null : ch.id)}
|
||||
onFieldChange={(fieldKey, value) => handleFieldChange(ch.id, fieldKey, value)}
|
||||
onConnect={() => handleConnect(ch.id)}
|
||||
onDisconnect={() => handleDisconnect(ch.id)}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import { useNavigate } from 'react-router';
|
||||
import { CHANNELS } from '../constants/channels';
|
||||
import { useChannelConnectStore } from '../store/channelConnectStore';
|
||||
|
||||
export function ChannelConnectTitle() {
|
||||
const { connectedCount } = useChannelConnectStore();
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<div className="bg-gradient-to-r from-[#fff3eb] via-[#e4cfff] to-[#f5f9ff] py-16 px-6">
|
||||
<div className="max-w-5xl mx-auto">
|
||||
<p className="text-xs font-semibold text-[#6C5CE7] tracking-widest uppercase mb-3">Channel Integration</p>
|
||||
<h1 className="font-serif text-3xl md:text-4xl font-bold text-[#021341] mb-3">
|
||||
채널 연결
|
||||
</h1>
|
||||
<p className="text-[#021341]/60 max-w-xl">
|
||||
소셜 미디어와 플랫폼을 연결하여 콘텐츠를 자동으로 배포하고 성과를 추적하세요.
|
||||
</p>
|
||||
|
||||
<div className="flex items-center gap-4 mt-8">
|
||||
<div className="flex items-center gap-2 px-4 py-2 rounded-full bg-white/70 backdrop-blur-sm border border-white/40">
|
||||
<div className={`w-3 h-3 rounded-full ${connectedCount > 0 ? 'bg-[#6C5CE7]' : 'bg-slate-300'}`} />
|
||||
<span className="text-sm font-medium text-[#021341]">
|
||||
{connectedCount} / {CHANNELS.length} 연결됨
|
||||
</span>
|
||||
</div>
|
||||
{connectedCount > 0 && (
|
||||
<button
|
||||
onClick={() => navigate('/distribute')}
|
||||
className="flex items-center gap-2 px-5 py-2 rounded-full bg-gradient-to-r from-[#4F1DA1] to-[#021341] text-white text-sm font-medium shadow-md hover:shadow-lg transition-all"
|
||||
>
|
||||
콘텐츠 배포하기
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
||||
<path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
||||
</svg>
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { ChannelConnectTitle } from './ChannelConnectTitle';
|
||||
import { ChannelConnectSection } from './ChannelConnectSection';
|
||||
|
||||
export {
|
||||
ChannelConnectTitle,
|
||||
ChannelConnectSection,
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
import type { ComponentType } from 'react';
|
||||
import {
|
||||
YoutubeFilled,
|
||||
InstagramFilled,
|
||||
FacebookFilled,
|
||||
GlobeFilled,
|
||||
TiktokFilled,
|
||||
} from '@/components/icons/FilledIcons';
|
||||
|
||||
type IconComponent = ComponentType<{ size?: number; className?: string; color?: string; style?: { color?: string; [key: string]: unknown } }>;
|
||||
|
||||
export const CHANNEL_ICON_MAP: Record<string, IconComponent> = {
|
||||
youtube: YoutubeFilled,
|
||||
instagram: InstagramFilled,
|
||||
facebook: FacebookFilled,
|
||||
globe: GlobeFilled,
|
||||
tiktok: TiktokFilled,
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
/** 배포 페이지 상수 */
|
||||
|
||||
import {
|
||||
YoutubeFilled,
|
||||
InstagramFilled,
|
||||
FacebookFilled,
|
||||
GlobeFilled,
|
||||
TiktokFilled,
|
||||
} from '@/components/icons/FilledIcons';
|
||||
import type { ChannelTarget, MockContent } from '../types';
|
||||
|
||||
export const MOCK_CONTENT: MockContent = {
|
||||
title: '한번에 성공하는 코성형, VIEW의 비결',
|
||||
description: '코성형은 얼굴의 중심을 결정하는 중요한 수술입니다. VIEW 성형외과는 21년간 축적된 노하우를 바탕으로 자연스러운 결과를 만들어냅니다.',
|
||||
type: 'video',
|
||||
duration: '0:58',
|
||||
aspectRatio: '9:16',
|
||||
tags: ['코성형', '뷰성형외과', '강남성형외과', '코수술', '자연스러운코'],
|
||||
thumbnail: null,
|
||||
};
|
||||
|
||||
export const INITIAL_CHANNELS: ChannelTarget[] = [
|
||||
{ id: 'youtube', name: 'YouTube Shorts', icon: YoutubeFilled, brandColor: '#FF0000', bgColor: '#FFF0F0', connected: true, selected: true, status: 'ready', format: 'Shorts (9:16)' },
|
||||
{ id: 'tiktok', name: 'TikTok', icon: TiktokFilled, brandColor: '#000000', bgColor: '#F5F5F5', connected: true, selected: true, status: 'ready', format: 'Short Video (9:16)' },
|
||||
{ id: 'instagram_kr', name: 'Instagram KR', icon: InstagramFilled, brandColor: '#E1306C', bgColor: '#FFF0F5', connected: true, selected: true, status: 'ready', format: 'Reels (9:16)' },
|
||||
{ id: 'instagram_en', name: 'Instagram EN', icon: InstagramFilled, brandColor: '#E1306C', bgColor: '#FFF0F5', connected: true, selected: false, status: 'ready', format: 'Reels (9:16)' },
|
||||
{ id: 'facebook_kr', name: 'Facebook KR', icon: FacebookFilled, brandColor: '#1877F2', bgColor: '#F0F4FF', connected: true, selected: false, status: 'ready', format: 'Video Post' },
|
||||
{ id: 'facebook_en', name: 'Facebook EN', icon: FacebookFilled, brandColor: '#1877F2', bgColor: '#F0F4FF', connected: false, selected: false, status: 'ready', format: 'Video Post' },
|
||||
{ id: 'naver_blog', name: 'Naver Blog', icon: GlobeFilled, brandColor: '#03C75A', bgColor: '#F0FFF5', connected: false, selected: false, status: 'ready', format: 'Blog Post' },
|
||||
];
|
||||
@@ -0,0 +1,61 @@
|
||||
import { useState, useCallback } from 'react';
|
||||
import { MOCK_CONTENT, INITIAL_CHANNELS } from '../constants/distribution';
|
||||
|
||||
export function useDistribution() {
|
||||
const [channels, setChannels] = useState(INITIAL_CHANNELS);
|
||||
const [title, setTitle] = useState(MOCK_CONTENT.title);
|
||||
const [description, setDescription] = useState(MOCK_CONTENT.description);
|
||||
const [tags] = useState(MOCK_CONTENT.tags);
|
||||
const [scheduleMode, setScheduleMode] = useState<'now' | 'scheduled'>('now');
|
||||
const [scheduleDate, setScheduleDate] = useState('');
|
||||
const [scheduleHour, setScheduleHour] = useState(9);
|
||||
const [scheduleMinute, setScheduleMinute] = useState(0);
|
||||
const [schedulePeriod, setSchedulePeriod] = useState<'AM' | 'PM'>('AM');
|
||||
const [isPublishing, setIsPublishing] = useState(false);
|
||||
|
||||
const selectedChannels = channels.filter(c => c.connected && c.selected);
|
||||
const allPublished = selectedChannels.length > 0 && selectedChannels.every(c => c.status === 'published');
|
||||
|
||||
const toggleChannel = useCallback((id: string) => {
|
||||
setChannels(prev => prev.map(c =>
|
||||
c.id === id && c.connected ? { ...c, selected: !c.selected } : c
|
||||
));
|
||||
}, []);
|
||||
|
||||
const handlePublish = useCallback(() => {
|
||||
setIsPublishing(true);
|
||||
|
||||
const selected = channels.filter(c => c.connected && c.selected);
|
||||
selected.forEach((ch, i) => {
|
||||
setTimeout(() => {
|
||||
setChannels(prev => prev.map(c =>
|
||||
c.id === ch.id ? { ...c, status: 'publishing' } : c
|
||||
));
|
||||
}, i * 1500);
|
||||
|
||||
setTimeout(() => {
|
||||
setChannels(prev => prev.map(c =>
|
||||
c.id === ch.id ? { ...c, status: 'published' } : c
|
||||
));
|
||||
if (i === selected.length - 1) setIsPublishing(false);
|
||||
}, (i + 1) * 1500 + 500);
|
||||
});
|
||||
}, [channels]);
|
||||
|
||||
return {
|
||||
channels,
|
||||
title, setTitle,
|
||||
description, setDescription,
|
||||
tags,
|
||||
scheduleMode, setScheduleMode,
|
||||
scheduleDate, setScheduleDate,
|
||||
scheduleHour, setScheduleHour,
|
||||
scheduleMinute, setScheduleMinute,
|
||||
schedulePeriod, setSchedulePeriod,
|
||||
isPublishing,
|
||||
selectedChannels,
|
||||
allPublished,
|
||||
toggleChannel,
|
||||
handlePublish,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
import { create } from 'zustand';
|
||||
import { MOCK_CONTENT, INITIAL_CHANNELS } from '../constants/distribution';
|
||||
import type { ChannelTarget } from '../types';
|
||||
|
||||
interface DistributionStore {
|
||||
channels: ChannelTarget[];
|
||||
title: string;
|
||||
description: string;
|
||||
tags: string[];
|
||||
scheduleMode: 'now' | 'scheduled';
|
||||
scheduleDate: string;
|
||||
scheduleHour: number;
|
||||
scheduleMinute: number;
|
||||
schedulePeriod: 'AM' | 'PM';
|
||||
isPublishing: boolean;
|
||||
setTitle: (v: string) => void;
|
||||
setDescription: (v: string) => void;
|
||||
setScheduleMode: (v: 'now' | 'scheduled') => void;
|
||||
setScheduleDate: (v: string) => void;
|
||||
setScheduleHour: (fn: (h: number) => number) => void;
|
||||
setScheduleMinute: (fn: (m: number) => number) => void;
|
||||
setSchedulePeriod: (v: 'AM' | 'PM') => void;
|
||||
toggleChannel: (id: string) => void;
|
||||
handlePublish: (selectedIds: string[]) => void;
|
||||
}
|
||||
|
||||
export const useDistributionStore = create<DistributionStore>((set, get) => ({
|
||||
channels: INITIAL_CHANNELS,
|
||||
title: MOCK_CONTENT.title,
|
||||
description: MOCK_CONTENT.description,
|
||||
tags: MOCK_CONTENT.tags,
|
||||
scheduleMode: 'now',
|
||||
scheduleDate: '',
|
||||
scheduleHour: 9,
|
||||
scheduleMinute: 0,
|
||||
schedulePeriod: 'AM',
|
||||
isPublishing: false,
|
||||
|
||||
setTitle: (title) => set({ title }),
|
||||
setDescription: (description) => set({ description }),
|
||||
setScheduleMode: (scheduleMode) => set({ scheduleMode }),
|
||||
setScheduleDate: (scheduleDate) => set({ scheduleDate }),
|
||||
setScheduleHour: (fn) => set((s) => ({ scheduleHour: fn(s.scheduleHour) })),
|
||||
setScheduleMinute: (fn) => set((s) => ({ scheduleMinute: fn(s.scheduleMinute) })),
|
||||
setSchedulePeriod: (schedulePeriod) => set({ schedulePeriod }),
|
||||
|
||||
toggleChannel: (id) => set((s) => ({
|
||||
channels: s.channels.map(c =>
|
||||
c.id === id && c.connected ? { ...c, selected: !c.selected } : c
|
||||
),
|
||||
})),
|
||||
|
||||
handlePublish: (selectedIds) => {
|
||||
const { channels } = get();
|
||||
const selected = channels.filter(c => selectedIds.includes(c.id));
|
||||
set({ isPublishing: true });
|
||||
|
||||
selected.forEach((ch, i) => {
|
||||
setTimeout(() => {
|
||||
set((s) => ({
|
||||
channels: s.channels.map(c => c.id === ch.id ? { ...c, status: 'publishing' } : c),
|
||||
}));
|
||||
}, i * 1500);
|
||||
|
||||
setTimeout(() => {
|
||||
set((s) => ({
|
||||
channels: s.channels.map(c => c.id === ch.id ? { ...c, status: 'published' } : c),
|
||||
...(i === selected.length - 1 ? { isPublishing: false } : {}),
|
||||
}));
|
||||
}, (i + 1) * 1500 + 500);
|
||||
});
|
||||
},
|
||||
}));
|
||||
@@ -0,0 +1,25 @@
|
||||
import type { ComponentType } from 'react';
|
||||
|
||||
export type DistributeStatus = 'ready' | 'publishing' | 'published' | 'failed';
|
||||
|
||||
export interface ChannelTarget {
|
||||
id: string;
|
||||
name: string;
|
||||
icon: ComponentType<{ size?: number; className?: string; style?: { color?: string } }>;
|
||||
brandColor: string;
|
||||
bgColor: string;
|
||||
connected: boolean;
|
||||
selected: boolean;
|
||||
status: DistributeStatus;
|
||||
format: string;
|
||||
}
|
||||
|
||||
export interface MockContent {
|
||||
title: string;
|
||||
description: string;
|
||||
type: 'video';
|
||||
duration: string;
|
||||
aspectRatio: string;
|
||||
tags: string[];
|
||||
thumbnail: string | null;
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
import { motion } from 'motion/react';
|
||||
import { useDistributionStore } from '../store/distributionStore';
|
||||
import { useChannelConnectStore } from '@/features/channelconnect/store/channelConnectStore';
|
||||
|
||||
export function ChannelSelectSection() {
|
||||
const { channels, toggleChannel } = useDistributionStore();
|
||||
const { channels: connectedChannels } = useChannelConnectStore();
|
||||
const mergedChannels = channels.map(ch => ({
|
||||
...ch,
|
||||
connected: connectedChannels[ch.id]?.status === 'connected',
|
||||
}));
|
||||
return (
|
||||
<div className="mb-8">
|
||||
<h3 className="font-serif font-bold text-xl text-[#0A1128] mb-4">배포 채널 선택</h3>
|
||||
<div className="space-y-3">
|
||||
{mergedChannels.map(ch => {
|
||||
const Icon = ch.icon;
|
||||
return (
|
||||
<motion.div
|
||||
key={ch.id}
|
||||
layout
|
||||
className={`flex items-center gap-4 p-4 rounded-2xl border-2 transition-all ${
|
||||
!ch.connected
|
||||
? 'border-slate-100 bg-slate-50/50 opacity-50'
|
||||
: ch.selected
|
||||
? 'border-[#6C5CE7] bg-[#F3F0FF]/20 shadow-[3px_4px_12px_rgba(108,92,231,0.08)]'
|
||||
: 'border-slate-100 bg-white shadow-[3px_4px_12px_rgba(0,0,0,0.04)] hover:border-[#D5CDF5]'
|
||||
}`}
|
||||
>
|
||||
<button
|
||||
onClick={() => toggleChannel(ch.id)}
|
||||
disabled={!ch.connected}
|
||||
className={`w-5 h-5 rounded border-2 flex items-center justify-center shrink-0 transition-all ${
|
||||
ch.selected && ch.connected ? 'border-[#6C5CE7] bg-[#6C5CE7]' : 'border-slate-300 bg-white'
|
||||
} disabled:cursor-not-allowed`}
|
||||
>
|
||||
{ch.selected && ch.connected && (
|
||||
<svg width="10" height="10" viewBox="0 0 14 14" fill="none">
|
||||
<path d="M2 7L5.5 10.5L12 3.5" stroke="white" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" />
|
||||
</svg>
|
||||
)}
|
||||
</button>
|
||||
<div className="w-10 h-10 rounded-xl flex items-center justify-center shrink-0" style={{ backgroundColor: ch.bgColor }}>
|
||||
<Icon size={20} style={{ color: ch.brandColor }} />
|
||||
</div>
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-sm font-semibold text-[#0A1128]">{ch.name}</span>
|
||||
{!ch.connected && (
|
||||
<span className="px-2 py-1 rounded-full bg-[#FFF6ED] text-[#7C5C3A] text-xs font-semibold border border-[#F5E0C5]">미연결</span>
|
||||
)}
|
||||
</div>
|
||||
<p className="text-xs text-slate-400">{ch.format}</p>
|
||||
</div>
|
||||
<div className="shrink-0">
|
||||
{ch.status === 'publishing' && <div className="w-5 h-5 border-2 border-[#6C5CE7] border-t-transparent rounded-full animate-spin" />}
|
||||
{ch.status === 'published' && (
|
||||
<div className="w-6 h-6 rounded-full bg-[#6C5CE7] flex items-center justify-center">
|
||||
<svg width="12" height="12" viewBox="0 0 14 14" fill="none">
|
||||
<path d="M2 7L5.5 10.5L12 3.5" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
|
||||
</svg>
|
||||
</div>
|
||||
)}
|
||||
{ch.status === 'failed' && (
|
||||
<div className="w-6 h-6 rounded-full bg-[#FFF0F0] flex items-center justify-center border border-[#F5D5DC]">
|
||||
<span className="text-[#7C3A4B] text-xs font-bold">!</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import { VideoFilled } from '@/components/icons/FilledIcons';
|
||||
import { MOCK_CONTENT } from '../constants/distribution';
|
||||
import { useDistributionStore } from '../store/distributionStore';
|
||||
|
||||
export function ContentPreviewSection() {
|
||||
const { title, setTitle, description, setDescription, tags } = useDistributionStore();
|
||||
return (
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-xl text-[#0A1128] mb-4">콘텐츠</h3>
|
||||
<div className="w-full aspect-[9/16] max-w-[220px] mx-auto rounded-2xl bg-gradient-to-br from-[#F3F0FF] via-white to-[#FFF6ED] border border-slate-200 flex flex-col items-center justify-center mb-6">
|
||||
<VideoFilled size={32} className="text-[#9B8AD4] mb-3" />
|
||||
<p className="text-xs text-slate-500">{MOCK_CONTENT.aspectRatio}</p>
|
||||
<p className="text-xs text-slate-400 mt-1">{MOCK_CONTENT.duration}</p>
|
||||
</div>
|
||||
<div className="mb-4">
|
||||
<label className="text-xs font-medium text-slate-600 mb-1 block">제목</label>
|
||||
<input
|
||||
value={title}
|
||||
onChange={e => setTitle(e.target.value)}
|
||||
className="w-full px-4 py-3 rounded-xl border border-slate-200 text-sm text-slate-700 focus:outline-none focus:border-[#6C5CE7] focus:ring-1 focus:ring-[#6C5CE7]/20 transition-all"
|
||||
/>
|
||||
</div>
|
||||
<div className="mb-4">
|
||||
<label className="text-xs font-medium text-slate-600 mb-1 block">설명</label>
|
||||
<textarea
|
||||
value={description}
|
||||
onChange={e => setDescription(e.target.value)}
|
||||
rows={4}
|
||||
className="w-full px-4 py-3 rounded-xl border border-slate-200 text-sm text-slate-700 resize-y focus:outline-none focus:border-[#6C5CE7] focus:ring-1 focus:ring-[#6C5CE7]/20 transition-all"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="text-xs font-medium text-slate-600 mb-2 block">태그</label>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{tags.map(tag => (
|
||||
<span key={tag} className="px-3 py-1 rounded-full bg-[#F3F0FF] text-[#4A3A7C] text-xs font-medium border border-[#D5CDF5]">
|
||||
#{tag}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { ContentPreviewSection } from './ContentPreview';
|
||||
import { ChannelSelectSection } from './ChannelSelect';
|
||||
import { SchedulePublishSection } from './SchedulePublish';
|
||||
|
||||
export function DistributionSection() {
|
||||
return (
|
||||
<section className="py-10 px-6">
|
||||
<div className="max-w-5xl mx-auto w-full">
|
||||
<div className="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
||||
<ContentPreviewSection />
|
||||
<div className="lg:col-span-2 flex flex-col gap-8">
|
||||
<ChannelSelectSection />
|
||||
<SchedulePublishSection />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
export function DistributionTitle() {
|
||||
return (
|
||||
<div className="bg-[#0A1128] py-14 px-6 relative overflow-hidden">
|
||||
<div className="absolute top-0 right-0 w-[500px] h-[500px] rounded-full bg-[#6C5CE7]/10 blur-[120px]" />
|
||||
<div className="max-w-5xl mx-auto relative">
|
||||
<p className="text-xs font-semibold text-purple-300 tracking-widest uppercase mb-3">Content Distribution</p>
|
||||
<h1 className="font-serif text-3xl md:text-4xl font-bold text-white mb-3">
|
||||
콘텐츠 배포
|
||||
</h1>
|
||||
<p className="text-purple-200/70 max-w-xl">
|
||||
제작된 콘텐츠를 연결된 채널에 동시 배포합니다.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
import { motion } from 'motion/react';
|
||||
import { ShareFilled } from '@/components/icons/FilledIcons';
|
||||
import { useDistributionStore } from '../store/distributionStore';
|
||||
import { useChannelConnectStore } from '@/features/channelconnect/store/channelConnectStore';
|
||||
|
||||
export function SchedulePublishSection() {
|
||||
const {
|
||||
channels,
|
||||
scheduleMode, setScheduleMode,
|
||||
scheduleDate, setScheduleDate,
|
||||
scheduleHour, setScheduleHour,
|
||||
scheduleMinute, setScheduleMinute,
|
||||
schedulePeriod, setSchedulePeriod,
|
||||
isPublishing,
|
||||
handlePublish,
|
||||
} = useDistributionStore();
|
||||
const { channels: connectedChannels } = useChannelConnectStore();
|
||||
const mergedChannels = channels.map(ch => ({
|
||||
...ch,
|
||||
connected: connectedChannels[ch.id]?.status === 'connected',
|
||||
}));
|
||||
const selectedChannels = mergedChannels.filter(c => c.connected && c.selected);
|
||||
const allPublished = selectedChannels.length > 0 && selectedChannels.every(c => c.status === 'published');
|
||||
return (
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-xl text-[#0A1128] mb-4">배포 시간</h3>
|
||||
<div className="flex gap-2 mb-4">
|
||||
{([
|
||||
{ key: 'now' as const, label: '즉시 배포' },
|
||||
{ key: 'scheduled' as const, label: '예약 배포' },
|
||||
]).map(opt => (
|
||||
<button
|
||||
key={opt.key}
|
||||
onClick={() => setScheduleMode(opt.key)}
|
||||
className={`px-5 py-3 rounded-full text-sm font-medium transition-all ${
|
||||
scheduleMode === opt.key
|
||||
? 'bg-gradient-to-r from-[#4F1DA1] to-[#021341] text-white shadow-md'
|
||||
: 'bg-white border border-slate-200 text-slate-600 hover:bg-slate-50'
|
||||
}`}
|
||||
>
|
||||
{opt.label}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{scheduleMode === 'scheduled' && (
|
||||
<div className="mb-6 space-y-4">
|
||||
<div>
|
||||
<label className="text-xs font-medium text-slate-600 mb-2 block">날짜</label>
|
||||
<input
|
||||
type="date"
|
||||
value={scheduleDate}
|
||||
onChange={e => setScheduleDate(e.target.value)}
|
||||
className="w-full px-4 py-3 rounded-xl border border-slate-200 text-sm text-slate-700 focus:outline-none focus:border-[#6C5CE7] transition-all appearance-none"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="text-xs font-medium text-slate-600 mb-2 block">시간</label>
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="flex items-center gap-1">
|
||||
<button onClick={() => setScheduleHour(h => h <= 1 ? 12 : h - 1)} className="w-8 h-8 rounded-lg bg-slate-50 border border-slate-200 flex items-center justify-center text-slate-500 hover:bg-slate-100 transition-all">
|
||||
<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M2 6h8M6 2l-4 4 4 4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /></svg>
|
||||
</button>
|
||||
<div className="w-12 h-10 rounded-xl bg-[#F3F0FF] border border-[#D5CDF5] flex items-center justify-center text-lg font-semibold text-[#0A1128]">
|
||||
{String(scheduleHour).padStart(2, '0')}
|
||||
</div>
|
||||
<button onClick={() => setScheduleHour(h => h >= 12 ? 1 : h + 1)} className="w-8 h-8 rounded-lg bg-slate-50 border border-slate-200 flex items-center justify-center text-slate-500 hover:bg-slate-100 transition-all">
|
||||
<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M10 6H2M6 10l4-4-4-4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /></svg>
|
||||
</button>
|
||||
</div>
|
||||
<span className="text-xl font-bold text-slate-300">:</span>
|
||||
<div className="flex items-center gap-1">
|
||||
<button onClick={() => setScheduleMinute(m => m <= 0 ? 55 : m - 5)} className="w-8 h-8 rounded-lg bg-slate-50 border border-slate-200 flex items-center justify-center text-slate-500 hover:bg-slate-100 transition-all">
|
||||
<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M2 6h8M6 2l-4 4 4 4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /></svg>
|
||||
</button>
|
||||
<div className="w-12 h-10 rounded-xl bg-[#F3F0FF] border border-[#D5CDF5] flex items-center justify-center text-lg font-semibold text-[#0A1128]">
|
||||
{String(scheduleMinute).padStart(2, '0')}
|
||||
</div>
|
||||
<button onClick={() => setScheduleMinute(m => m >= 55 ? 0 : m + 5)} className="w-8 h-8 rounded-lg bg-slate-50 border border-slate-200 flex items-center justify-center text-slate-500 hover:bg-slate-100 transition-all">
|
||||
<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M10 6H2M6 10l4-4-4-4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /></svg>
|
||||
</button>
|
||||
</div>
|
||||
<div className="flex rounded-xl overflow-hidden border border-slate-200">
|
||||
{(['AM', 'PM'] as const).map(p => (
|
||||
<button
|
||||
key={p}
|
||||
onClick={() => setSchedulePeriod(p)}
|
||||
className={`px-4 py-2 text-sm font-medium transition-all ${
|
||||
schedulePeriod === p
|
||||
? 'bg-gradient-to-r from-[#4F1DA1] to-[#021341] text-white'
|
||||
: 'bg-white text-slate-500 hover:bg-slate-50'
|
||||
}`}
|
||||
>
|
||||
{p}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!allPublished ? (
|
||||
<button
|
||||
onClick={() => handlePublish(selectedChannels.map(c => c.id))}
|
||||
disabled={selectedChannels.length === 0 || isPublishing}
|
||||
className="w-full flex items-center justify-center gap-2 py-4 rounded-full bg-gradient-to-r from-[#4F1DA1] to-[#021341] text-white text-sm font-medium shadow-md hover:shadow-lg transition-all disabled:opacity-40 disabled:cursor-not-allowed"
|
||||
>
|
||||
{isPublishing ? (
|
||||
<>
|
||||
<div className="w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin" />
|
||||
배포 중... ({selectedChannels.filter(c => c.status === 'published').length}/{selectedChannels.length})
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<ShareFilled size={18} className="text-white" />
|
||||
{selectedChannels.length}개 채널에 {scheduleMode === 'now' ? '즉시 배포' : '예약 배포'}
|
||||
</>
|
||||
)}
|
||||
</button>
|
||||
) : (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 10 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
className="w-full py-6 rounded-2xl bg-[#F3F0FF] border border-[#D5CDF5] text-center"
|
||||
>
|
||||
<div className="w-12 h-12 rounded-full bg-[#6C5CE7] flex items-center justify-center mx-auto mb-3">
|
||||
<svg width="20" height="20" viewBox="0 0 14 14" fill="none">
|
||||
<path d="M2 7L5.5 10.5L12 3.5" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
|
||||
</svg>
|
||||
</div>
|
||||
<p className="text-lg font-semibold text-[#0A1128] mb-1">배포 완료</p>
|
||||
<p className="text-sm text-[#4A3A7C]">{selectedChannels.length}개 채널에 성공적으로 배포되었습니다</p>
|
||||
</motion.div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { DistributionTitle } from './DistributionTitle';
|
||||
import { DistributionSection } from './DistributionSection';
|
||||
|
||||
export {
|
||||
DistributionTitle,
|
||||
DistributionSection,
|
||||
};
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -5,7 +5,7 @@ import {
|
||||
CTA_FOOTNOTE,
|
||||
CTA_HEADLINE,
|
||||
CTA_URL_PLACEHOLDER,
|
||||
} from "@/features/home/content/cta";
|
||||
} from "@/features/home/constants/cta_contents";
|
||||
import { useAnalyze } from "@/features/home/hooks/useAnalyze";
|
||||
import { useInView } from "@/hooks/useInView";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
HERO_LEAD_EN,
|
||||
HERO_LEAD_KO,
|
||||
HERO_URL_PLACEHOLDER,
|
||||
} from "@/features/home/content/hero";
|
||||
} from "@/features/home/constants/hero_contents";
|
||||
import { useAnalyze } from "@/features/home/hooks/useAnalyze";
|
||||
|
||||
export function HeroSection() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PROBLEM_CARDS, PROBLEM_CARD_STAGGER } from "@/features/home/content/problem";
|
||||
import { PROBLEM_CARDS, PROBLEM_CARD_STAGGER } from "@/features/home/constants/problem_contents";
|
||||
import { useInView } from "@/hooks/useInView";
|
||||
|
||||
export function ProblemSection() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SOLUTION_CARDS } from "@/features/home/content/solution";
|
||||
import { SOLUTION_CARDS } from "@/features/home/constants/solution_contents";
|
||||
import { useInView } from "@/hooks/useInView";
|
||||
|
||||
export function SolutionSection() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CORE_MODULES, MODULE_CARD_STAGGER } from "@/features/home/content/modules";
|
||||
import { CORE_MODULES, MODULE_CARD_STAGGER } from "@/features/home/constants/modules_contents";
|
||||
import { useInView } from "@/hooks/useInView";
|
||||
import { CoreModuleCard } from "./system/CoreModuleCard";
|
||||
import { CoreModulesCenterHeading } from "./system/CoreModulesCenterHeading";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import CheckCircleIcon from "@/assets/home/check-circle.svg?react";
|
||||
import { USE_CASE_CARDS } from "@/features/home/content/useCases";
|
||||
import { USE_CASE_CARDS } from "@/features/home/constants/use_cases_contents";
|
||||
import { useInView } from "@/hooks/useInView";
|
||||
|
||||
export function UseCaseSection() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AGDP_NODES } from "@/features/home/content/process";
|
||||
import { AGDP_NODES } from "@/features/home/constants/process_contents";
|
||||
import { AgdpOrbitNode } from "./AgdpOrbitNode";
|
||||
import { AgdpRewardPathLabel } from "./AgdpRewardPathLabel";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { AgdpNodeDef } from "@/features/home/content/process";
|
||||
import { AGDP_SLOT_WRAPPER_CLASS } from "@/features/home/content/process";
|
||||
import type { AgdpNodeDef } from "@/features/home/constants/process_contents";
|
||||
import { AGDP_SLOT_WRAPPER_CLASS } from "@/features/home/constants/process_contents";
|
||||
|
||||
type Props = { node: AgdpNodeDef };
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { CoreModule } from "@/features/home/content/modules";
|
||||
import type { CoreModule } from "@/features/home/constants/modules_contents";
|
||||
|
||||
type Props = {
|
||||
mod: CoreModule;
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/** 성과 대시보드 상수 */
|
||||
|
||||
import {
|
||||
YoutubeFilled,
|
||||
InstagramFilled,
|
||||
FacebookFilled,
|
||||
GlobeFilled,
|
||||
TiktokFilled,
|
||||
} from '@/components/icons/FilledIcons';
|
||||
import type { ChannelMetric, ContentPerformance } from '../types';
|
||||
|
||||
export const CHANNELS: ChannelMetric[] = [
|
||||
{ id: 'youtube', name: 'YouTube', icon: YoutubeFilled, brandColor: '#FF0000', bgColor: '#FFF0F0', followers: '103K', followersDelta: '+2.1K', views: '270K', viewsDelta: '+18%', engagement: '4.2%', engagementDelta: '+0.8%', posts: 12, score: 65 },
|
||||
{ id: 'instagram_kr', name: 'Instagram KR', icon: InstagramFilled, brandColor: '#E1306C', bgColor: '#FFF0F5', followers: '14K', followersDelta: '+890', views: '45K', viewsDelta: '+32%', engagement: '3.1%', engagementDelta: '+1.2%', posts: 24, score: 35 },
|
||||
{ id: 'instagram_en', name: 'Instagram EN', icon: InstagramFilled, brandColor: '#E1306C', bgColor: '#FFF0F5', followers: '68.8K', followersDelta: '+1.2K', views: '120K', viewsDelta: '+8%', engagement: '5.6%', engagementDelta: '+0.3%', posts: 18, score: 55 },
|
||||
{ id: 'tiktok', name: 'TikTok', icon: TiktokFilled, brandColor: '#000000', bgColor: '#F5F5F5', followers: '0', followersDelta: 'NEW', views: '0', viewsDelta: '-', engagement: '0%', engagementDelta: '-', posts: 0, score: 0 },
|
||||
{ id: 'facebook', name: 'Facebook', icon: FacebookFilled, brandColor: '#1877F2', bgColor: '#F0F4FF', followers: '341', followersDelta: '+12', views: '2.1K', viewsDelta: '-5%', engagement: '0.8%', engagementDelta: '-0.2%', posts: 6, score: 40 },
|
||||
{ id: 'naver', name: 'Naver Blog', icon: GlobeFilled, brandColor: '#03C75A', bgColor: '#F0FFF5', followers: '-', followersDelta: '-', views: '8.2K', viewsDelta: '+45%', engagement: '2.4%', engagementDelta: '+1.1%', posts: 8, score: 72 },
|
||||
];
|
||||
|
||||
export const TOP_CONTENT: ContentPerformance[] = [
|
||||
{ id: '1', title: '한번에 성공하는 코성형, VIEW의 비결', channel: 'YouTube', type: 'video', views: '12.4K', likes: '342', comments: '28', ctr: '8.2%', publishedAt: '3일 전' },
|
||||
{ id: '2', title: '안면윤곽 수술 종류와 회복기간', channel: 'Naver Blog', type: 'blog', views: '3.2K', likes: '-', comments: '12', ctr: '12.5%', publishedAt: '5일 전' },
|
||||
{ id: '3', title: 'Reel: 윤곽 전후 변화', channel: 'Instagram KR', type: 'social', views: '8.7K', likes: '567', comments: '45', ctr: '6.1%', publishedAt: '2일 전' },
|
||||
{ id: '4', title: 'Shorts: 사각턱 축소 과정', channel: 'YouTube', type: 'video', views: '5.1K', likes: '189', comments: '15', ctr: '4.8%', publishedAt: '4일 전' },
|
||||
{ id: '5', title: '코성형 가이드: 내 얼굴에 맞는 코', channel: 'Naver Blog', type: 'blog', views: '2.8K', likes: '-', comments: '8', ctr: '15.2%', publishedAt: '6일 전' },
|
||||
];
|
||||
|
||||
export const OVERVIEW_STATS = [
|
||||
{ label: '총 노출', value: '445K', delta: '+24%', positive: true },
|
||||
{ label: '총 조회', value: '89.2K', delta: '+18%', positive: true },
|
||||
{ label: '평균 참여율', value: '3.8%', delta: '+0.6%', positive: true },
|
||||
{ label: '콘텐츠 발행', value: '68건', delta: '+12건', positive: true },
|
||||
{ label: '신규 팔로워', value: '+4.3K', delta: '+32%', positive: true },
|
||||
{ label: '전환 (상담)', value: '47건', delta: '+15건', positive: true },
|
||||
];
|
||||
|
||||
export const FUNNEL_STEPS = [
|
||||
{ label: '노출', labelEn: 'Impressions', value: 445000, display: '445K', color: '#6C5CE7' },
|
||||
{ label: '클릭', labelEn: 'Clicks', value: 89200, display: '89.2K', color: '#7C6DD8' },
|
||||
{ label: '웹사이트 유입', labelEn: 'Website Visits', value: 12400, display: '12.4K', color: '#9B8AD4' },
|
||||
{ label: '상담 문의', labelEn: 'Inquiries', value: 478, display: '478', color: '#B8A9E8' },
|
||||
{ label: '예약 전환', labelEn: 'Conversions', value: 47, display: '47', color: '#D5CDF5' },
|
||||
];
|
||||
|
||||
export const CHANNEL_TREND = [
|
||||
{ week: 'W1', youtube: 85, instagram: 32, naver: 18, facebook: 8 },
|
||||
{ week: 'W2', youtube: 92, instagram: 41, naver: 24, facebook: 7 },
|
||||
{ week: 'W3', youtube: 78, instagram: 55, naver: 31, facebook: 9 },
|
||||
{ week: 'W4', youtube: 105, instagram: 68, naver: 38, facebook: 6 },
|
||||
];
|
||||
|
||||
export const TREND_CHANNELS = [
|
||||
{ key: 'youtube' as const, label: 'YouTube', color: 'rgba(155,138,212,0.35)' },
|
||||
{ key: 'instagram' as const, label: 'Instagram', color: 'rgba(212,168,186,0.3)' },
|
||||
{ key: 'naver' as const, label: 'Naver', color: 'rgba(160,200,180,0.3)' },
|
||||
{ key: 'facebook' as const, label: 'Facebook', color: 'rgba(160,180,220,0.25)' },
|
||||
];
|
||||
|
||||
export const DAYS = ['월', '화', '수', '목', '금', '토', '일'];
|
||||
export const TIME_SLOTS = ['오전 (6-12)', '오후 (12-18)', '저녁 (18-24)', '심야 (0-6)'];
|
||||
|
||||
export const HEATMAP_DATA = [
|
||||
[3, 7, 8, 2],
|
||||
[4, 6, 9, 1],
|
||||
[5, 8, 7, 2],
|
||||
[6, 9, 8, 1],
|
||||
[4, 7, 10, 3],
|
||||
[2, 5, 6, 4],
|
||||
[1, 4, 5, 3],
|
||||
];
|
||||
|
||||
export const FUNNEL_INSIGHT = '병목 구간: 클릭 → 웹사이트 유입 전환율 13.9% — 랜딩 페이지 최적화가 필요합니다. 업계 평균 20% 대비 낮음.';
|
||||
|
||||
export const TREND_INSIGHT = '성장 채널: Instagram 조회수 +112% (W1→W4). Naver Blog +111% 동반 성장. YouTube는 안정적 유지.';
|
||||
|
||||
export const HEATMAP_INSIGHT = '최적 시간: 금요일 저녁 (18-24시) 참여율 최고. 평일 오후 (12-18시)가 전반적으로 높음. 주말 오전은 피하세요.';
|
||||
|
||||
export const AI_RECOMMENDATIONS = [
|
||||
{ title: 'YouTube Shorts 확대', desc: 'Shorts 조회수가 Long-form 대비 3.2배 높습니다. 주 3회 이상 Shorts 업로드를 권장합니다.' },
|
||||
{ title: 'Instagram Reels 시작', desc: 'KR 계정에 Reels 0개입니다. 경쟁 병원 평균 주 5개 — 즉시 시작이 필요합니다.' },
|
||||
{ title: '랜딩 페이지 최적화', desc: '클릭→유입 전환율 13.9%로 업계 평균 20% 대비 낮음. CTA 버튼 위치와 페이지 속도 개선 필요.' },
|
||||
];
|
||||
@@ -0,0 +1,11 @@
|
||||
import { useState } from 'react';
|
||||
import { FUNNEL_STEPS, CHANNEL_TREND } from '../constants/performance';
|
||||
|
||||
export function usePerformance() {
|
||||
const [period, setPeriod] = useState<'7d' | '30d' | '90d'>('30d');
|
||||
|
||||
const funnelMax = FUNNEL_STEPS[0].value;
|
||||
const trendMax = Math.max(...CHANNEL_TREND.flatMap(w => [w.youtube, w.instagram, w.naver, w.facebook]));
|
||||
|
||||
return { period, setPeriod, funnelMax, trendMax };
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { create } from 'zustand';
|
||||
import { FUNNEL_STEPS, CHANNEL_TREND } from '../constants/performance';
|
||||
|
||||
interface PerformanceStore {
|
||||
period: '7d' | '30d' | '90d';
|
||||
setPeriod: (p: '7d' | '30d' | '90d') => void;
|
||||
funnelMax: number;
|
||||
trendMax: number;
|
||||
}
|
||||
|
||||
export const usePerformanceStore = create<PerformanceStore>((set) => ({
|
||||
period: '30d',
|
||||
setPeriod: (period) => set({ period }),
|
||||
funnelMax: FUNNEL_STEPS[0].value,
|
||||
trendMax: Math.max(...CHANNEL_TREND.flatMap(w => [w.youtube, w.instagram, w.naver, w.facebook])),
|
||||
}));
|
||||
@@ -0,0 +1,29 @@
|
||||
import type { ComponentType } from 'react';
|
||||
|
||||
export interface ChannelMetric {
|
||||
id: string;
|
||||
name: string;
|
||||
icon: ComponentType<{ size?: number; className?: string; style?: { color?: string } }>;
|
||||
brandColor: string;
|
||||
bgColor: string;
|
||||
followers: string;
|
||||
followersDelta: string;
|
||||
views: string;
|
||||
viewsDelta: string;
|
||||
engagement: string;
|
||||
engagementDelta: string;
|
||||
posts: number;
|
||||
score: number;
|
||||
}
|
||||
|
||||
export interface ContentPerformance {
|
||||
id: string;
|
||||
title: string;
|
||||
channel: string;
|
||||
type: 'video' | 'blog' | 'social';
|
||||
views: string;
|
||||
likes: string;
|
||||
comments: string;
|
||||
ctr: string;
|
||||
publishedAt: string;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { AI_RECOMMENDATIONS } from '../constants/performance';
|
||||
|
||||
export function AIRecommendationSection() {
|
||||
return (
|
||||
<section className="py-10 px-6">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<div className="bg-gradient-to-r from-[#fff3eb] via-[#e4cfff] to-[#f5f9ff] rounded-2xl p-8">
|
||||
<h3 className="font-serif font-bold text-xl text-[#021341] mb-4">AI 개선 추천</h3>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||
{AI_RECOMMENDATIONS.map((rec, i) => (
|
||||
<div key={i} className="bg-white/70 backdrop-blur-sm rounded-xl border border-white/40 p-5">
|
||||
<h4 className="font-semibold text-[#021341] mb-2">{rec.title}</h4>
|
||||
<p className="text-sm text-[#021341]/60">{rec.desc}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
import { motion } from 'motion/react';
|
||||
import { CHANNELS } from '../constants/performance';
|
||||
|
||||
function MetricCell({ label, value, delta }: { label: string; value: string; delta: string }) {
|
||||
const isPositive = delta.startsWith('+');
|
||||
const isNew = delta === 'NEW' || delta === '-';
|
||||
return (
|
||||
<div className="text-center">
|
||||
<p className="text-xs text-slate-400 mb-1">{label}</p>
|
||||
<p className="text-sm font-semibold text-[#0A1128]">{value}</p>
|
||||
<p className={`text-xs font-medium ${
|
||||
isNew ? 'text-slate-400' : isPositive ? 'text-[#4A3A7C]' : 'text-[#7C3A4B]'
|
||||
}`}>{delta}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function ChannelPerformanceSection() {
|
||||
return (
|
||||
<section className="py-10 px-6">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<h3 className="font-serif font-bold text-xl text-[#0A1128] mb-4">채널별 성과</h3>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
||||
{CHANNELS.map((ch, i) => {
|
||||
const Icon = ch.icon;
|
||||
return (
|
||||
<motion.div
|
||||
key={ch.id}
|
||||
className="bg-white rounded-2xl border border-slate-100 shadow-[3px_4px_12px_rgba(0,0,0,0.06)] p-5"
|
||||
initial={{ opacity: 0, y: 15 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.3, delay: i * 0.08 }}
|
||||
>
|
||||
<div className="flex items-center gap-3 mb-4">
|
||||
<div className="w-10 h-10 rounded-xl flex items-center justify-center" style={{ backgroundColor: ch.bgColor }}>
|
||||
<Icon size={20} style={{ color: ch.brandColor }} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<h4 className="text-sm font-semibold text-[#0A1128]">{ch.name}</h4>
|
||||
<p className="text-xs text-slate-400">{ch.posts}개 콘텐츠</p>
|
||||
</div>
|
||||
<div className={`w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold ${
|
||||
ch.score >= 70 ? 'bg-[#F3F0FF] text-[#4A3A7C]' :
|
||||
ch.score >= 40 ? 'bg-[#FFF6ED] text-[#7C5C3A]' :
|
||||
ch.score > 0 ? 'bg-[#FFF0F0] text-[#7C3A4B]' :
|
||||
'bg-slate-50 text-slate-400'
|
||||
}`}>
|
||||
{ch.score || '-'}
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid grid-cols-3 gap-3">
|
||||
<MetricCell label="팔로워" value={ch.followers} delta={ch.followersDelta} />
|
||||
<MetricCell label="조회수" value={ch.views} delta={ch.viewsDelta} />
|
||||
<MetricCell label="참여율" value={ch.engagement} delta={ch.engagementDelta} />
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { motion } from 'motion/react';
|
||||
import { FUNNEL_STEPS, FUNNEL_INSIGHT } from '../constants/performance';
|
||||
import { usePerformanceStore } from '../store/performanceStore';
|
||||
|
||||
export function FunnelSection() {
|
||||
const { funnelMax } = usePerformanceStore();
|
||||
return (
|
||||
<section className="py-10 px-6">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<div className="bg-white rounded-2xl border border-slate-100 shadow-[3px_4px_12px_rgba(0,0,0,0.06)] p-6">
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-xl text-[#0A1128]">마케팅 퍼널</h3>
|
||||
<p className="text-xs text-slate-500 mt-1">노출부터 전환까지 — 어디서 이탈하는지 파악</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-3">
|
||||
{FUNNEL_STEPS.map((step, i) => {
|
||||
const widthPct = Math.max((step.value / funnelMax) * 100, 8);
|
||||
const convRate = i > 0
|
||||
? ((step.value / FUNNEL_STEPS[i - 1].value) * 100).toFixed(1)
|
||||
: null;
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
key={step.label}
|
||||
className="flex items-center gap-4"
|
||||
initial={{ opacity: 0, x: -20 }}
|
||||
animate={{ opacity: 1, x: 0 }}
|
||||
transition={{ duration: 0.4, delay: i * 0.1 }}
|
||||
>
|
||||
<div className="w-24 shrink-0 text-right">
|
||||
<p className="text-sm font-medium text-[#0A1128]">{step.label}</p>
|
||||
<p className="text-xs text-slate-400">{step.labelEn}</p>
|
||||
</div>
|
||||
|
||||
<div className="flex-1 relative">
|
||||
<motion.div
|
||||
className="h-10 rounded-xl flex items-center px-4"
|
||||
style={{ backgroundColor: step.color }}
|
||||
initial={{ width: 0 }}
|
||||
animate={{ width: `${widthPct}%` }}
|
||||
transition={{ duration: 0.7, delay: i * 0.12 }}
|
||||
>
|
||||
<span className="text-sm font-bold text-white whitespace-nowrap">{step.display}</span>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
<div className="w-16 shrink-0 text-right">
|
||||
{convRate ? (
|
||||
<span className={`text-xs font-semibold px-2 py-1 rounded-full ${
|
||||
parseFloat(convRate) >= 10
|
||||
? 'bg-[#F3F0FF] text-[#4A3A7C]'
|
||||
: 'bg-[#FFF6ED] text-[#7C5C3A]'
|
||||
}`}>
|
||||
{convRate}%
|
||||
</span>
|
||||
) : (
|
||||
<span className="text-xs text-slate-300">—</span>
|
||||
)}
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div className="mt-6 p-4 rounded-xl bg-[#FFF6ED] border border-[#F5E0C5]">
|
||||
<p className="text-sm text-[#7C5C3A]">{FUNNEL_INSIGHT}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
import { motion } from 'motion/react';
|
||||
import { DAYS, TIME_SLOTS, HEATMAP_DATA, HEATMAP_INSIGHT } from '../constants/performance';
|
||||
|
||||
function heatmapColor(value: number): string {
|
||||
if (value >= 9) return 'bg-[#2d2640] text-white';
|
||||
if (value >= 7) return 'bg-[#4a4460] text-white';
|
||||
if (value >= 5) return 'bg-[#8e89a8] text-white';
|
||||
if (value >= 3) return 'bg-[#c8c4d8] text-[#4a4460]';
|
||||
return 'bg-[#f0eef5] text-[#8e89a8]';
|
||||
}
|
||||
|
||||
export function HeatmapSection() {
|
||||
return (
|
||||
<section className="py-10 px-6">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<div className="bg-white rounded-2xl border border-slate-100 shadow-[3px_4px_12px_rgba(0,0,0,0.06)] p-6">
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-xl text-[#0A1128]">최적 게시 시간</h3>
|
||||
<p className="text-xs text-slate-500 mt-1">요일×시간대별 참여율 히트맵 — 진할수록 성과가 높음</p>
|
||||
</div>
|
||||
<div className="flex items-center gap-1">
|
||||
<span className="text-xs text-slate-400">낮음</span>
|
||||
{[1, 3, 5, 7, 9].map(v => (
|
||||
<div key={v} className={`w-4 h-4 rounded ${heatmapColor(v)}`} />
|
||||
))}
|
||||
<span className="text-xs text-slate-400">높음</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="overflow-x-auto">
|
||||
<div className="min-w-[500px]">
|
||||
<div className="grid grid-cols-[60px_repeat(4,1fr)] gap-2 mb-2">
|
||||
<div />
|
||||
{TIME_SLOTS.map(slot => (
|
||||
<div key={slot} className="text-center text-xs text-slate-500 font-medium">{slot}</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{DAYS.map((day, di) => (
|
||||
<motion.div
|
||||
key={day}
|
||||
className="grid grid-cols-[60px_repeat(4,1fr)] gap-2 mb-2"
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ duration: 0.3, delay: di * 0.05 }}
|
||||
>
|
||||
<div className="flex items-center justify-center text-sm font-medium text-[#0A1128]">{day}</div>
|
||||
{HEATMAP_DATA[di].map((val, ti) => (
|
||||
<div
|
||||
key={ti}
|
||||
className={`h-12 rounded-xl flex items-center justify-center text-sm font-semibold transition-all hover:scale-95 cursor-default ${heatmapColor(val)}`}
|
||||
>
|
||||
{val > 0 ? `${val * 10}%` : '-'}
|
||||
</div>
|
||||
))}
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-6 p-4 rounded-xl bg-[#F3F0FF] border border-[#D5CDF5]">
|
||||
<p className="text-sm text-[#4A3A7C]">{HEATMAP_INSIGHT}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { MetricCard } from '@/components/card/MetricCard';
|
||||
import { OVERVIEW_STATS } from '../constants/performance';
|
||||
|
||||
export function OverviewStatsSection() {
|
||||
return (
|
||||
<section className="py-10 px-6">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3">
|
||||
{OVERVIEW_STATS.map((stat) => (
|
||||
<MetricCard
|
||||
key={stat.label}
|
||||
label={stat.label}
|
||||
value={stat.value}
|
||||
subtext={stat.delta}
|
||||
trend={stat.positive ? 'up' : 'down'}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { usePerformanceStore } from '../store/performanceStore';
|
||||
|
||||
export function PerformanceTitle() {
|
||||
const { period, setPeriod } = usePerformanceStore();
|
||||
return (
|
||||
<div className="bg-[#0A1128] py-14 px-6">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<p className="text-xs font-semibold text-purple-300 tracking-widest uppercase mb-3">Performance Intelligence</p>
|
||||
<h1 className="font-serif text-3xl md:text-4xl font-bold text-white mb-3">성과 대시보드</h1>
|
||||
<p className="text-purple-200/70 max-w-xl mb-8">모든 채널의 마케팅 성과를 실시간으로 모니터링합니다.</p>
|
||||
<div className="flex gap-2">
|
||||
{([
|
||||
{ key: '7d' as const, label: '7일' },
|
||||
{ key: '30d' as const, label: '30일' },
|
||||
{ key: '90d' as const, label: '90일' },
|
||||
]).map(p => (
|
||||
<button
|
||||
key={p.key}
|
||||
onClick={() => setPeriod(p.key)}
|
||||
className={`px-4 py-2 rounded-full text-sm font-medium transition-all ${
|
||||
period === p.key ? 'bg-white text-[#0A1128]' : 'bg-white/10 text-purple-200 hover:bg-white/20'
|
||||
}`}
|
||||
>
|
||||
{p.label}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
import { motion } from 'motion/react';
|
||||
import type { ComponentType } from 'react';
|
||||
import { VideoFilled, FileTextFilled, ShareFilled } from '@/components/icons/FilledIcons';
|
||||
import { TOP_CONTENT } from '../constants/performance';
|
||||
|
||||
const typeIcons: Record<string, ComponentType<{ size?: number; className?: string }>> = {
|
||||
video: VideoFilled,
|
||||
blog: FileTextFilled,
|
||||
social: ShareFilled,
|
||||
};
|
||||
|
||||
const typeColors: Record<string, { bg: string; text: string }> = {
|
||||
video: { bg: 'bg-[#F3F0FF]', text: 'text-[#4A3A7C]' },
|
||||
blog: { bg: 'bg-[#EFF0FF]', text: 'text-[#3A3F7C]' },
|
||||
social: { bg: 'bg-[#FFF6ED]', text: 'text-[#7C5C3A]' },
|
||||
};
|
||||
|
||||
export function TopContentSection() {
|
||||
return (
|
||||
<section className="py-10 px-6">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<h3 className="font-serif font-bold text-xl text-[#0A1128] mb-4">인기 콘텐츠 TOP 5</h3>
|
||||
<div className="bg-white rounded-2xl border border-slate-100 shadow-[3px_4px_12px_rgba(0,0,0,0.06)] overflow-hidden">
|
||||
<div className="grid grid-cols-[1fr_100px_80px_80px_60px_70px_70px] gap-2 px-5 py-3 bg-[#0A1128] text-white text-xs font-medium">
|
||||
<span>콘텐츠</span>
|
||||
<span>채널</span>
|
||||
<span className="text-right">조회수</span>
|
||||
<span className="text-right">좋아요</span>
|
||||
<span className="text-right">댓글</span>
|
||||
<span className="text-right">CTR</span>
|
||||
<span className="text-right">게시일</span>
|
||||
</div>
|
||||
{TOP_CONTENT.map((content, i) => {
|
||||
const TypeIcon = typeIcons[content.type] ?? FileTextFilled;
|
||||
const colors = typeColors[content.type] ?? typeColors.blog;
|
||||
return (
|
||||
<motion.div
|
||||
key={content.id}
|
||||
className={`grid grid-cols-[1fr_100px_80px_80px_60px_70px_70px] gap-2 px-5 py-4 items-center ${
|
||||
i % 2 === 0 ? 'bg-white' : 'bg-slate-50/50'
|
||||
} border-b border-slate-50 last:border-0`}
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ duration: 0.3, delay: i * 0.08 }}
|
||||
>
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<div className={`w-7 h-7 rounded-lg flex items-center justify-center shrink-0 ${colors.bg}`}>
|
||||
<TypeIcon size={14} className={colors.text} />
|
||||
</div>
|
||||
<span className="text-sm text-[#0A1128] truncate">{content.title}</span>
|
||||
</div>
|
||||
<span className="text-xs text-slate-500">{content.channel}</span>
|
||||
<span className="text-sm font-medium text-[#0A1128] text-right">{content.views}</span>
|
||||
<span className="text-sm text-slate-600 text-right">{content.likes}</span>
|
||||
<span className="text-sm text-slate-600 text-right">{content.comments}</span>
|
||||
<span className={`text-sm font-medium text-right ${
|
||||
parseFloat(content.ctr) >= 10 ? 'text-[#4A3A7C]' : 'text-slate-600'
|
||||
}`}>{content.ctr}</span>
|
||||
<span className="text-xs text-slate-400 text-right">{content.publishedAt}</span>
|
||||
</motion.div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
import { motion } from 'motion/react';
|
||||
import { CHANNEL_TREND, TREND_CHANNELS, TREND_INSIGHT } from '../constants/performance';
|
||||
import { usePerformanceStore } from '../store/performanceStore';
|
||||
|
||||
export function TrendSection() {
|
||||
const { trendMax } = usePerformanceStore();
|
||||
return (
|
||||
<section className="py-10 px-6">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<div className="bg-white rounded-2xl border border-slate-100 shadow-[3px_4px_12px_rgba(0,0,0,0.06)] p-6">
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-xl text-[#0A1128]">채널별 주간 트렌드</h3>
|
||||
<p className="text-xs text-slate-500 mt-1">채널별 조회수 추이 비교 (단위: K)</p>
|
||||
</div>
|
||||
<div className="flex gap-3">
|
||||
{TREND_CHANNELS.map(ch => (
|
||||
<div key={ch.key} className="flex items-center gap-2">
|
||||
<div className="w-3 h-3 rounded-full" style={{ backgroundColor: ch.color }} />
|
||||
<span className="text-xs text-slate-500">{ch.label}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-end justify-center gap-10 h-[220px] px-8">
|
||||
{CHANNEL_TREND.map((week, wi) => {
|
||||
const total = week.youtube + week.instagram + week.naver + week.facebook;
|
||||
return (
|
||||
<div key={week.week} className="flex flex-col items-center gap-2" style={{ width: '80px' }}>
|
||||
<p className="text-xs text-slate-500 font-medium">{total}K</p>
|
||||
<div className="w-full flex flex-col-reverse items-stretch" style={{ height: `${(total / (trendMax * 1.5)) * 160}px` }}>
|
||||
{TREND_CHANNELS.map((ch, ci) => {
|
||||
const val = week[ch.key];
|
||||
const segH = (val / total) * 100;
|
||||
const isFirst = ci === 0;
|
||||
const isLast = ci === TREND_CHANNELS.length - 1;
|
||||
return (
|
||||
<motion.div
|
||||
key={ch.key}
|
||||
className={`w-full relative group ${isFirst ? 'rounded-b-xl' : ''} ${isLast ? 'rounded-t-xl' : ''}`}
|
||||
style={{ height: `${segH}%`, backgroundColor: ch.color }}
|
||||
initial={{ scaleY: 0 }}
|
||||
animate={{ scaleY: 1 }}
|
||||
transition={{ duration: 0.5, delay: wi * 0.1 }}
|
||||
>
|
||||
<div className="absolute -top-8 left-1/2 -translate-x-1/2 hidden group-hover:block bg-[#0A1128] text-white text-xs px-2 py-1 rounded whitespace-nowrap z-10">
|
||||
{ch.label}: {val}K
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<p className="text-xs font-medium text-slate-600">{week.week}</p>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div className="mt-6 p-4 rounded-xl bg-[#F3F0FF] border border-[#D5CDF5]">
|
||||
<p className="text-sm text-[#4A3A7C]">{TREND_INSIGHT}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { PerformanceTitle } from './PerformanceTitle';
|
||||
import { OverviewStatsSection } from './OverviewStatsSection';
|
||||
import { FunnelSection } from './FunnelSection';
|
||||
import { TrendSection } from './TrendSection';
|
||||
import { HeatmapSection } from './HeatmapSection';
|
||||
import { ChannelPerformanceSection } from './ChannelPerformanceSection';
|
||||
import { TopContentSection } from './TopContentSection';
|
||||
import { AIRecommendationSection } from './AIRecommendationSection';
|
||||
|
||||
export {
|
||||
PerformanceTitle,
|
||||
OverviewStatsSection,
|
||||
FunnelSection,
|
||||
TrendSection,
|
||||
HeatmapSection,
|
||||
ChannelPerformanceSection,
|
||||
TopContentSection,
|
||||
AIRecommendationSection,
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
/**
|
||||
* SubNav·IntersectionObserver와 각 섹션 `id`가 일치해야 합니다.
|
||||
* (`DEMO/src/pages/MarketingPlanPage.tsx`의 PLAN_SECTIONS와 동일)
|
||||
*/
|
||||
export const PLAN_SECTIONS = [
|
||||
{ id: "branding-guide", label: "브랜딩 가이드" },
|
||||
{ id: "channel-strategy", label: "채널 전략" },
|
||||
{ id: "content-strategy", label: "콘텐츠 전략" },
|
||||
{ id: "content-calendar", label: "콘텐츠 캘린더" },
|
||||
{ id: "asset-collection", label: "에셋 수집" },
|
||||
{ id: "my-asset-upload", label: "My Assets" },
|
||||
] as const;
|
||||
|
||||
export type PlanSectionId = (typeof PLAN_SECTIONS)[number]["id"];
|
||||
@@ -1,11 +0,0 @@
|
||||
import { useParams } from "react-router-dom";
|
||||
import { useMarketingPlan } from "@/features/plan/hooks/useMarketingPlan";
|
||||
|
||||
/**
|
||||
* 현재 `plan/:id` 라우트의 마케팅 플랜.
|
||||
* Zustand 등 전역 소스로 바꿀 때는 이 훅만 수정하면 섹션들은 그대로 둘 수 있습니다.
|
||||
*/
|
||||
export function useCurrentMarketingPlan() {
|
||||
const { id } = useParams<{ id: string }>();
|
||||
return useMarketingPlan(id);
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
import { useMemo } from "react";
|
||||
import { MOCK_PLAN } from "@/features/plan/mocks/plan";
|
||||
import type { MarketingPlan } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
type UseMarketingPlanResult = {
|
||||
data: MarketingPlan | null;
|
||||
isLoading: boolean;
|
||||
error: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Phase 1: 항상 `MOCK_PLAN` 반환.
|
||||
* `_planRouteId`는 `plan/:id`·추후 API 조회에 사용 예정(현재 목만 반환).
|
||||
*/
|
||||
export function useMarketingPlan(_planRouteId: string | undefined): UseMarketingPlanResult {
|
||||
return useMemo(
|
||||
() => ({ data: MOCK_PLAN, isLoading: false, error: null }),
|
||||
[],
|
||||
);
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import { useMainSubNav } from "@/layouts/MainSubNavLayout";
|
||||
import type { SubNavItem } from "@/layouts/SubNav";
|
||||
import { PLAN_SECTIONS } from "@/features/plan/config/planSections";
|
||||
|
||||
export function usePlanSubNav() {
|
||||
const { setSubNav } = useMainSubNav();
|
||||
const [activeId, setActiveId] = useState<string>(PLAN_SECTIONS[0]?.id ?? "");
|
||||
|
||||
const items: SubNavItem[] = useMemo(
|
||||
() =>
|
||||
PLAN_SECTIONS.map((s) => ({
|
||||
id: s.id,
|
||||
label: s.label,
|
||||
targetId: s.id,
|
||||
})),
|
||||
[]
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
const observer = new IntersectionObserver(
|
||||
(entries) => {
|
||||
const visible = entries
|
||||
.filter((e) => e.isIntersecting)
|
||||
.sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top);
|
||||
if (visible.length > 0) {
|
||||
setActiveId(visible[0].target.id);
|
||||
}
|
||||
},
|
||||
{ rootMargin: "-100px 0px -60% 0px", threshold: 0 }
|
||||
);
|
||||
|
||||
PLAN_SECTIONS.forEach(({ id: sectionId }) => {
|
||||
const el = document.getElementById(sectionId);
|
||||
if (el) observer.observe(el);
|
||||
});
|
||||
|
||||
return () => observer.disconnect();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
setSubNav({
|
||||
items,
|
||||
activeId,
|
||||
scrollActiveIntoView: true,
|
||||
});
|
||||
}, [activeId, items, setSubNav]);
|
||||
|
||||
useEffect(() => {
|
||||
return () => setSubNav(null);
|
||||
}, [setSubNav]);
|
||||
}
|
||||
@@ -1,272 +0,0 @@
|
||||
import type { MarketingPlan } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
export const MOCK_PLAN: MarketingPlan = {
|
||||
id: 'view-clinic',
|
||||
reportId: 'view-clinic',
|
||||
clinicName: '뷰성형외과의원',
|
||||
clinicNameEn: 'VIEW Plastic Surgery',
|
||||
createdAt: '2026-03-22',
|
||||
targetUrl: 'https://www.viewclinic.com',
|
||||
|
||||
// ─── Section 1: Brand Guide ───
|
||||
brandGuide: {
|
||||
colors: [
|
||||
{ name: 'VIEW Purple', hex: '#7B2D8E', usage: '공식 로고 메인 컬러, 깃털 아이콘, 브랜드 텍스트' },
|
||||
{ name: 'VIEW Gold', hex: '#E8B931', usage: '깃털 악센트, 강조 요소, CTA 포인트' },
|
||||
{ name: 'VIEW Text Purple', hex: '#6B2D7B', usage: '한글/영문 브랜드명, 헤딩 텍스트' },
|
||||
{ name: 'Warm White', hex: '#FAF8F5', usage: '배경, 카드, 여백 공간' },
|
||||
{ name: 'Deep Charcoal', hex: '#2D2D2D', usage: '본문 텍스트, 서브 텍스트' },
|
||||
],
|
||||
fonts: [
|
||||
{ family: 'Pretendard', weight: 'Bold 700', usage: '헤딩, 섹션 타이틀, CTA 버튼', sampleText: '안전이 예술이 되는 곳' },
|
||||
{ family: 'Pretendard', weight: 'Regular 400', usage: '본문 텍스트, 설명, 캡션', sampleText: '21년 무사고 VIEW 성형외과' },
|
||||
{ family: 'Playfair Display', weight: 'Bold 700', usage: '영문 헤딩, 프리미엄 강조', sampleText: 'VIEW Plastic Surgery' },
|
||||
],
|
||||
logoRules: [
|
||||
{ rule: '보라색+골드 깃털 로고 통일 사용', description: '공식 깃털 심볼(보라색+골드) + VIEW 텍스트를 모든 채널에서 동일하게 사용', correct: true },
|
||||
{ rule: '원형 로고: 보라색 테두리 버전', description: '프로필 사진용 원형 버전은 보라색 원 테두리 안에 깃털 심볼 + VIEW 텍스트 배치', correct: true },
|
||||
{ rule: '가로형 로고: 깃털 + 텍스트 조합', description: '배너, 헤더에는 깃털 심볼 옆에 View Plastic Surgery 텍스트를 가로 배치', correct: true },
|
||||
{ rule: '모델 사진 프로필 금지', description: '프로필 사진에 모델/환자 사진 대신 반드시 공식 깃털 로고 사용 (Instagram KR 위반 중)', correct: false },
|
||||
{ rule: '비공식 변형 로고 사용 금지', description: 'YouTube의 VIEW 골드 텍스트 전용 로고는 비공식 — 깃털 심볼이 반드시 포함되어야 함', correct: false },
|
||||
{ rule: '로고 주변 여백 확보', description: '로고 크기의 50% 이상 여백을 유지하여 가독성 확보', correct: true },
|
||||
],
|
||||
toneOfVoice: {
|
||||
personality: ['차분한 전문가', '신뢰감 있는', '과장 없는', '환자 중심', '결과로 증명하는'],
|
||||
communicationStyle: '환자의 불안과 고민을 이해하고, 전문적인 판단력으로 신뢰를 구축합니다. 유행을 좇지 않고 원칙을 말하는 병원으로서, 과장된 표현 대신 정확한 정보와 설명으로 설득합니다.',
|
||||
doExamples: [
|
||||
'"수술을 권하기 전에, 판단을 설명합니다"',
|
||||
'"결과가 설명되는 수술"',
|
||||
'"21년간 안전을 최우선으로"',
|
||||
'"환자의 관점에서 생각합니다"',
|
||||
],
|
||||
dontExamples: [
|
||||
'"강남 최고! 파격 할인!"',
|
||||
'"연예인이 선택한 병원"',
|
||||
'"이 가격은 오늘까지만!"',
|
||||
'"100% 만족 보장"',
|
||||
],
|
||||
},
|
||||
channelBranding: [
|
||||
{ channel: 'YouTube', icon: 'youtube', profilePhoto: '보라색+골드 깃털 원형 로고', bannerSpec: '2560x1440px, 퍼플+골드 그라디언트 배경, 깃털 심볼 + "VIEW Plastic Surgery" 슬로건', bioTemplate: '안전이 예술이 되는 곳 — 21년 무사고 VIEW 성형외과\n02-539-1177 | 카톡: @뷰성형외과의원', currentStatus: 'incorrect' },
|
||||
{ channel: 'Instagram KR', icon: 'instagram', profilePhoto: '보라색+골드 깃털 원형 로고', bannerSpec: 'N/A (하이라이트 커버: 퍼플 톤 아이콘 세트)', bioTemplate: '안전이 예술이 되는 곳 — VIEW 성형외과\n신논현역 3번 출구 | 02-539-1177\nviewclinic.com', currentStatus: 'incorrect' },
|
||||
{ channel: 'Instagram EN', icon: 'instagram', profilePhoto: '보라색+골드 깃털 원형 로고', bannerSpec: 'N/A', bioTemplate: 'Where Safety Becomes Art — VIEW Plastic Surgery\nGangnam, Seoul | +82-2-539-1177\nviewclinic.com/en', currentStatus: 'incorrect' },
|
||||
{ channel: 'Facebook KR', icon: 'facebook', profilePhoto: '보라색+골드 깃털 원형 로고', bannerSpec: '820x312px, 퍼플+골드 배너, 깃털 심볼 + 슬로건', bioTemplate: '안전이 예술이 되는 곳 — 21년 무사고 VIEW 성형외과', currentStatus: 'correct' },
|
||||
{ channel: 'Facebook EN', icon: 'facebook', profilePhoto: '보라색+골드 깃털 원형 로고', bannerSpec: '820x312px, 동일 디자인 시스템', bioTemplate: 'Where Safety Becomes Art — VIEW Plastic Surgery', currentStatus: 'incorrect' },
|
||||
{ channel: 'Naver Blog', icon: 'globe', profilePhoto: '보라색+골드 깃털 로고', bannerSpec: '블로그 상단: 깃털 심볼 + 대표 이미지', bioTemplate: '21년 무사고 VIEW 성형외과 공식 블로그\n가슴성형·안면윤곽·양악·눈코·리프팅', currentStatus: 'missing' },
|
||||
{ channel: 'TikTok', icon: 'video', profilePhoto: '보라색+골드 깃털 원형 로고', bannerSpec: 'N/A', bioTemplate: 'VIEW 성형외과 — 안전이 예술이 되는 곳\n강남 신논현역 | 02-539-1177', currentStatus: 'missing' },
|
||||
],
|
||||
brandInconsistencies: [
|
||||
{
|
||||
field: '로고',
|
||||
values: [
|
||||
{ channel: 'YouTube', value: 'VIEW 텍스트 전용 골드 로고 (깃털 심볼 없음)', isCorrect: false },
|
||||
{ channel: 'Instagram KR', value: '모델 프로필 사진 (로고 아님)', isCorrect: false },
|
||||
{ channel: 'Instagram EN', value: 'VIEW 텍스트 전용 골드 로고 (깃털 심볼 없음)', isCorrect: false },
|
||||
{ channel: 'Facebook KR', value: '보라색+골드 깃털 로고 (공식 로고)', isCorrect: true },
|
||||
{ channel: 'Facebook EN', value: 'VIEW 텍스트 전용 골드 로고 (깃털 심볼 없음)', isCorrect: false },
|
||||
{ channel: 'Website', value: '보라색+골드 깃털 로고 (공식 로고)', isCorrect: true },
|
||||
],
|
||||
impact: '공식 깃털 로고를 사용하는 채널은 Facebook KR과 웹사이트 2곳뿐. 나머지 4개 채널은 비공식 변형 로고 또는 모델 사진을 사용',
|
||||
recommendation: '전 채널에 보라색+골드 깃털 공식 로고 통일 적용 (원형 버전: 프로필, 가로형 버전: 배너)',
|
||||
},
|
||||
{
|
||||
field: '바이오/소개 메시지',
|
||||
values: [
|
||||
{ channel: 'YouTube', value: '💜뷰성형외과💜 VIEW가 예술이다!', isCorrect: false },
|
||||
{ channel: 'Instagram KR', value: '뷰 성형외과 | 가슴성형·안면윤곽·눈성형', isCorrect: false },
|
||||
{ channel: 'Facebook KR', value: '예쁨이 일상이 되는 순간!', isCorrect: false },
|
||||
{ channel: 'Facebook EN', value: 'Official Account by VIEW Partners', isCorrect: false },
|
||||
],
|
||||
impact: '4개 채널, 4개의 서로 다른 소개 메시지 → 통일된 브랜드 포지셔닝 부재',
|
||||
recommendation: '핵심 USP 포함 통일 바이오: "안전이 예술이 되는 곳 — 21년 무사고 VIEW"',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
// ─── Section 2: Channel Strategies ───
|
||||
channelStrategies: [
|
||||
{
|
||||
channelId: 'youtube', channelName: 'YouTube', icon: 'youtube',
|
||||
currentStatus: '103K 구독자, 주 1회 업로드', targetGoal: '200K 구독자, 주 3회 업로드',
|
||||
contentTypes: ['Shorts', 'Long-form', 'Community'],
|
||||
postingFrequency: '주 3회 (롱폼 1 + Shorts 2)',
|
||||
tone: '차분한 전문가 — 원장이 직접 설명하는 교육 콘텐츠',
|
||||
formatGuidelines: ['Shorts: 15-60초, 세로형, 후크 3초 내', 'Long-form: 5-15분, 원장 설명 + B-roll', '썸네일: VIEW 골드 워터마크 + 통일 폰트'],
|
||||
priority: 'P0',
|
||||
},
|
||||
{
|
||||
channelId: 'instagram_kr', channelName: 'Instagram KR', icon: 'instagram',
|
||||
currentStatus: '14K 팔로워, Reels 0개', targetGoal: '50K 팔로워, Reels 주 5개',
|
||||
contentTypes: ['Reels', 'Carousel', 'Stories', 'Feed Image'],
|
||||
postingFrequency: '일 1회 + Stories 일 2-3개',
|
||||
tone: '차분하지만 접근 가능한 — 환자 관점의 Q&A',
|
||||
formatGuidelines: ['Reels: YouTube Shorts 동시 게시', 'Carousel: 시술 가이드 5-7장', 'Stories: 병원 일상, 상담 비하인드, 투표'],
|
||||
priority: 'P0',
|
||||
},
|
||||
{
|
||||
channelId: 'instagram_en', channelName: 'Instagram EN', icon: 'instagram',
|
||||
currentStatus: '68.8K 팔로워, Reels 활발', targetGoal: '100K 팔로워',
|
||||
contentTypes: ['Reels', 'Before/After', 'Patient Stories'],
|
||||
postingFrequency: '주 5회',
|
||||
tone: 'Professional & warm — medical tourism storytelling',
|
||||
formatGuidelines: ['Patient journey videos (English subtitles)', 'Before/After with consent', 'Korea travel + surgery content'],
|
||||
priority: 'P1',
|
||||
},
|
||||
{
|
||||
channelId: 'facebook', channelName: 'Facebook', icon: 'facebook',
|
||||
currentStatus: 'KR 253명 + EN 88K, 로고 불일치', targetGoal: '통합 관리, 광고 리타겟 전용',
|
||||
contentTypes: ['광고 크리에이티브', '리타겟 콘텐츠'],
|
||||
postingFrequency: '주 2-3회 (광고 소재 위주)',
|
||||
tone: '신뢰 기반 — 안전, 경험, 결과 강조',
|
||||
formatGuidelines: ['KR 페이지 폐쇄 → EN 페이지로 통합', 'Facebook Pixel 리타겟 광고 최적화', '로고 VIEW 골드로 즉시 교체'],
|
||||
priority: 'P1',
|
||||
},
|
||||
{
|
||||
channelId: 'naver_blog', channelName: 'Naver Blog', icon: 'globe',
|
||||
currentStatus: '미확인 / 미운영', targetGoal: '월 30,000 방문자',
|
||||
contentTypes: ['SEO 블로그 포스트', '시술 가이드', '환자 후기'],
|
||||
postingFrequency: '주 3회',
|
||||
tone: '정보성 전문가 — 키워드 중심, 환자 고민 해결',
|
||||
formatGuidelines: ['2,000자 이상 SEO 최적화 포스트', '시술별 FAQ 시리즈', '이미지 10장 이상 + 동영상 임베드'],
|
||||
priority: 'P0',
|
||||
},
|
||||
{
|
||||
channelId: 'tiktok', channelName: 'TikTok', icon: 'video',
|
||||
currentStatus: '계정 없음', targetGoal: '10K 팔로워',
|
||||
contentTypes: ['Shorts 크로스포스팅', '트렌드 챌린지'],
|
||||
postingFrequency: '주 5회 (YouTube Shorts 동시 배포)',
|
||||
tone: '가볍고 접근 가능한 — 20~30대 타겟',
|
||||
formatGuidelines: ['YouTube Shorts 동시 업로드', '트렌딩 사운드 활용', '자막 필수 (음소거 시청 대비)'],
|
||||
priority: 'P1',
|
||||
},
|
||||
{
|
||||
channelId: 'kakaotalk', channelName: 'KakaoTalk', icon: 'messageSquare',
|
||||
currentStatus: '상담 전용 운영', targetGoal: '상담 전환율 30% 향상',
|
||||
contentTypes: ['상담 안내', '이벤트 알림', '예약 확인'],
|
||||
postingFrequency: '주 1-2회 (메시지 발송)',
|
||||
tone: '따뜻하고 전문적인 — 1:1 상담 톤',
|
||||
formatGuidelines: ['자동 응답 + 상담사 연결 시스템', '시술별 상담 시나리오 준비', '예약 리마인더 자동 발송'],
|
||||
priority: 'P1',
|
||||
},
|
||||
],
|
||||
|
||||
// ─── Section 3: Content Strategy ───
|
||||
contentStrategy: {
|
||||
pillars: [
|
||||
{ title: '수술 전문성', description: '원장의 경험과 판단력을 보여주는 교육 콘텐츠', relatedUSP: 'Surgical Authority', exampleTopics: ['코성형 Q&A', '가슴보형물 선택 가이드', '양악수술 오해와 진실'], color: '#6C5CE7' },
|
||||
{ title: '안전 & 신뢰', description: '21년 무사고 이력과 안전 시스템을 증명하는 콘텐츠', relatedUSP: 'Trust & Safety', exampleTopics: ['수술실 CCTV 공개', '마취 전문의 인터뷰', '회복 관리 시스템'], color: '#7A84D4' },
|
||||
{ title: '결과 예측', description: '자연스러운 결과와 밸런스를 강조하는 비포/애프터', relatedUSP: 'Result Predictability', exampleTopics: ['자연스러운 코 라인', '얼굴 밸런스 분석', '과교정 방지 철학'], color: '#9B8AD4' },
|
||||
{ title: '환자 여정', description: '상담부터 회복까지의 환자 경험을 보여주는 스토리텔링', relatedUSP: 'Patient Guidance', exampleTopics: ['상담 시뮬레이션', '수술 당일 브이로그', '회복 타임라인'], color: '#D4A872' },
|
||||
],
|
||||
typeMatrix: [
|
||||
{ format: 'YouTube Long-form', channels: ['YouTube'], frequency: '주 1회', purpose: '깊은 신뢰 구축, 전문성 증명' },
|
||||
{ format: 'Shorts / Reels', channels: ['YouTube', 'Instagram', 'TikTok'], frequency: '주 5회', purpose: '도달 확대, 첫 관심 유도' },
|
||||
{ format: 'Carousel', channels: ['Instagram KR'], frequency: '주 2회', purpose: '정보 전달, 저장 유도' },
|
||||
{ format: 'Blog Post', channels: ['Naver Blog'], frequency: '주 3회', purpose: 'SEO 검색 유입, 키워드 확보' },
|
||||
{ format: 'Stories', channels: ['Instagram KR', 'Instagram EN'], frequency: '일 2-3개', purpose: '일상 소통, 친밀감 형성' },
|
||||
{ format: 'Ad Creative', channels: ['Facebook', 'Instagram'], frequency: '월 4-8개', purpose: '신규 환자 유입, 리타겟' },
|
||||
],
|
||||
workflow: [
|
||||
{ step: 1, name: '주제 선정', description: '키워드 분석 + 콘텐츠 필러 매칭', owner: '마케팅 매니저', duration: '1일' },
|
||||
{ step: 2, name: '원고 작성', description: 'AI 초안 생성 + 의료 검수', owner: 'AI + 의료진', duration: '1-2일' },
|
||||
{ step: 3, name: '비주얼 제작', description: '촬영/영상 편집/디자인', owner: '콘텐츠 팀', duration: '2-3일' },
|
||||
{ step: 4, name: '검토 & 승인', description: '원장 최종 검토 + 의료광고 규정 체크', owner: '원장 / 법무', duration: '1일' },
|
||||
{ step: 5, name: '배포 & 모니터링', description: '채널별 최적 시간 게시 + 성과 추적', owner: '마케팅 매니저', duration: '당일' },
|
||||
],
|
||||
repurposingSource: '1개 원장 롱폼 영상 (10분)',
|
||||
repurposingOutputs: [
|
||||
{ format: 'YouTube Long-form', channel: 'YouTube', description: '원본 풀 영상 업로드' },
|
||||
{ format: 'Shorts 3-5개', channel: 'YouTube / Instagram / TikTok', description: '핵심 구간 15-60초 클립 추출' },
|
||||
{ format: 'Carousel 1-2개', channel: 'Instagram KR', description: '영상 내용을 카드뉴스로 재구성' },
|
||||
{ format: 'Blog Post 1개', channel: 'Naver Blog', description: '영상 스크립트 → SEO 블로그 포스트 변환' },
|
||||
{ format: 'Stories 3-5개', channel: 'Instagram', description: '비하인드 + 촬영 현장 스니펫' },
|
||||
{ format: 'Ad Creative 2개', channel: 'Facebook / Instagram', description: '가장 임팩트 있는 장면 + CTA 오버레이' },
|
||||
],
|
||||
},
|
||||
|
||||
// ─── Section 4: Content Calendar ───
|
||||
calendar: {
|
||||
weeks: [
|
||||
{
|
||||
weekNumber: 1, label: 'Week 1: 브랜드 정비 & 첫 콘텐츠',
|
||||
entries: [
|
||||
{ dayOfWeek: 0, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: '원장 인터뷰: VIEW의 수술 철학' },
|
||||
{ dayOfWeek: 1, channel: 'Instagram KR', channelIcon: 'instagram', contentType: 'social', title: '프로필 리뉴얼 공지 + 첫 Reel' },
|
||||
{ dayOfWeek: 2, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: 'Shorts: 코성형 Q&A #1' },
|
||||
{ dayOfWeek: 2, channel: 'Naver', channelIcon: 'globe', contentType: 'blog', title: '코성형 가이드: 내 얼굴에 맞는 코' },
|
||||
{ dayOfWeek: 3, channel: 'Instagram KR', channelIcon: 'instagram', contentType: 'social', title: 'Carousel: 가슴보형물 종류 비교' },
|
||||
{ dayOfWeek: 4, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: 'Shorts: 전후 Before/After #1' },
|
||||
{ dayOfWeek: 4, channel: 'Naver', channelIcon: 'globe', contentType: 'blog', title: '가슴성형 절개 위치별 장단점' },
|
||||
],
|
||||
},
|
||||
{
|
||||
weekNumber: 2, label: 'Week 2: 콘텐츠 엔진 가동',
|
||||
entries: [
|
||||
{ dayOfWeek: 0, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: '원장이 설명하는: 안면윤곽' },
|
||||
{ dayOfWeek: 0, channel: 'Naver', channelIcon: 'globe', contentType: 'blog', title: '안면윤곽 수술 종류와 회복기간' },
|
||||
{ dayOfWeek: 1, channel: 'Instagram KR', channelIcon: 'instagram', contentType: 'social', title: 'Reel: 윤곽 전후 변화' },
|
||||
{ dayOfWeek: 2, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: 'Shorts: 사각턱 축소 과정' },
|
||||
{ dayOfWeek: 3, channel: 'Instagram KR', channelIcon: 'instagram', contentType: 'social', title: 'Carousel: 리프팅 시술 비교' },
|
||||
{ dayOfWeek: 3, channel: 'Facebook', channelIcon: 'facebook', contentType: 'ad', title: '광고: 코성형 상담 유도 (리타겟)' },
|
||||
{ dayOfWeek: 4, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: 'Shorts: 눈성형 자연스러운 라인' },
|
||||
{ dayOfWeek: 4, channel: 'Naver', channelIcon: 'globe', contentType: 'blog', title: '눈성형 쌍꺼풀 수술 FAQ' },
|
||||
],
|
||||
},
|
||||
{
|
||||
weekNumber: 3, label: 'Week 3: 신뢰 콘텐츠 강화',
|
||||
entries: [
|
||||
{ dayOfWeek: 0, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: '원장이 설명하는: 수술 안전 시스템' },
|
||||
{ dayOfWeek: 1, channel: 'Instagram KR', channelIcon: 'instagram', contentType: 'social', title: 'Reel: 수술실 안전 장비 소개' },
|
||||
{ dayOfWeek: 1, channel: 'Naver', channelIcon: 'globe', contentType: 'blog', title: '성형외과 선택 시 확인할 안전 기준 5가지' },
|
||||
{ dayOfWeek: 2, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: 'Shorts: 마취 전문의가 함께합니다' },
|
||||
{ dayOfWeek: 3, channel: 'Instagram KR', channelIcon: 'instagram', contentType: 'social', title: 'Carousel: 21년 무사고의 비결' },
|
||||
{ dayOfWeek: 4, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: 'Shorts: 상담 전 꼭 알아야 할 것' },
|
||||
{ dayOfWeek: 4, channel: 'Facebook', channelIcon: 'facebook', contentType: 'ad', title: '광고: 안전 시스템 소개 (신규 유입)' },
|
||||
],
|
||||
},
|
||||
{
|
||||
weekNumber: 4, label: 'Week 4: 전환 최적화',
|
||||
entries: [
|
||||
{ dayOfWeek: 0, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: '원장이 설명하는: 재수술 케이스' },
|
||||
{ dayOfWeek: 0, channel: 'Naver', channelIcon: 'globe', contentType: 'blog', title: '재수술이 필요한 경우와 주의사항' },
|
||||
{ dayOfWeek: 1, channel: 'Instagram KR', channelIcon: 'instagram', contentType: 'social', title: 'Reel: 재수술 전후 변화' },
|
||||
{ dayOfWeek: 2, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: 'Shorts: 원장 한 줄 답변 모음' },
|
||||
{ dayOfWeek: 3, channel: 'Instagram KR', channelIcon: 'instagram', contentType: 'social', title: 'Carousel: 상담 예약 가이드' },
|
||||
{ dayOfWeek: 3, channel: 'Naver', channelIcon: 'globe', contentType: 'blog', title: '첫 성형 상담, 이것만 준비하세요' },
|
||||
{ dayOfWeek: 4, channel: 'YouTube', channelIcon: 'youtube', contentType: 'video', title: 'Shorts: 이 달의 베스트 케이스' },
|
||||
{ dayOfWeek: 4, channel: 'Facebook', channelIcon: 'facebook', contentType: 'ad', title: '광고: 월말 상담 예약 CTA' },
|
||||
],
|
||||
},
|
||||
],
|
||||
monthlySummary: [
|
||||
{ type: 'video', label: '영상', count: 16, color: '#8B5CF6' },
|
||||
{ type: 'blog', label: '블로그', count: 8, color: '#7A84D4' },
|
||||
{ type: 'social', label: '소셜', count: 12, color: '#9B8AD4' },
|
||||
{ type: 'ad', label: '광고', count: 4, color: '#D4A872' },
|
||||
],
|
||||
},
|
||||
|
||||
// ─── Section 5: Asset Collection ───
|
||||
assetCollection: {
|
||||
assets: [
|
||||
{ id: 'a1', source: 'homepage', sourceLabel: '홈페이지', type: 'photo', title: '병원 내부 인테리어 사진', description: '로비, 상담실, 수술실 외관, 대기 공간 고화질 사진', repurposingSuggestions: ['Instagram Feed 배경', '유튜브 B-roll', 'Naver 블로그 대표 이미지'], status: 'collected' },
|
||||
{ id: 'a2', source: 'homepage', sourceLabel: '홈페이지', type: 'photo', title: '의료진 프로필 사진', description: '28명 의료진 개인 프로필 사진 및 경력 정보', repurposingSuggestions: ['원장 소개 Carousel', '유튜브 섬네일', '네이버 블로그 프로필'], status: 'collected' },
|
||||
{ id: 'a3', source: 'homepage', sourceLabel: '홈페이지', type: 'text', title: '시술 설명 텍스트', description: '가슴성형, 안면윤곽, 눈코 등 시술별 상세 설명', repurposingSuggestions: ['Naver 블로그 포스트 소스', 'Carousel 텍스트', '광고 카피'], status: 'collected' },
|
||||
{ id: 'a4', source: 'youtube', sourceLabel: 'YouTube', type: 'video', title: '기존 롱폼 영상 1,064개', description: '10년간 축적된 시술 설명, Q&A, 인터뷰 영상 아카이브', repurposingSuggestions: ['AI Shorts 추출 100+개', 'Instagram Reels 변환', 'TikTok 크로스포스팅'], status: 'collected' },
|
||||
{ id: 'a5', source: 'youtube', sourceLabel: 'YouTube', type: 'video', title: '고성과 Shorts (10만+ 조회)', description: '574K, 525K, 392K 조회 Shorts — 전후 변화 중심', repurposingSuggestions: ['Instagram Reels 재업로드', 'TikTok 동시 게시', '광고 소재 활용'], status: 'collected' },
|
||||
{ id: 'a6', source: 'social', sourceLabel: '소셜미디어', type: 'photo', title: 'Instagram EN Before/After 사진', description: '@view_plastic_surgery 계정의 2,524개 게시물 중 B/A 사진', repurposingSuggestions: ['KR 계정 크로스포스팅', '유튜브 롱폼 삽입', 'Naver 블로그 활용'], status: 'collected' },
|
||||
{ id: 'a7', source: 'social', sourceLabel: '소셜미디어', type: 'text', title: '강남언니 환자 리뷰 18,840건', description: '9.5점 평균, 시술별 실 환자 후기 텍스트', repurposingSuggestions: ['후기 기반 Carousel 시리즈', '블로그 환자 스토리', '광고 사회적 증거'], status: 'pending' },
|
||||
{ id: 'a8', source: 'naver_place', sourceLabel: '네이버 플레이스', type: 'photo', title: '네이버 플레이스 사진', description: '병원 외관, 위치, 시설 사진', repurposingSuggestions: ['블로그 위치 안내 포스트', '구글 마이비즈니스 동기화'], status: 'pending' },
|
||||
{ id: 'a9', source: 'blog', sourceLabel: '블로그', type: 'text', title: '네이버 블로그 기존 포스트', description: '기존 블로그 포스트 (수량 미확인)', repurposingSuggestions: ['SEO 최적화 리라이팅', '영상 스크립트 소스'], status: 'pending' },
|
||||
{ id: 'a10', source: 'homepage', sourceLabel: '홈페이지', type: 'video', title: '개원 20주년 기념 영상', description: '뷰성형외과 20년 역사 + 시설 소개 영상 (1:30)', repurposingSuggestions: ['브랜드 스토리 Reel', '웹사이트 히어로 영상', '신뢰 광고 소재'], status: 'collected' },
|
||||
{ id: 'a11', source: 'homepage', sourceLabel: '홈페이지', type: 'photo', title: '시술별 전후 사진 갤러리', description: '눈, 코, 가슴, 윤곽 시술별 비포/애프터 사진', repurposingSuggestions: ['Instagram B/A 시리즈', 'Shorts 전환 소스', '상담 자료'], status: 'needs_creation' },
|
||||
],
|
||||
youtubeRepurpose: [
|
||||
{ title: '한번에 성공하는 성형', views: 574000, type: 'Short', repurposeAs: ['Instagram Reel', 'TikTok', '광고 소재'] },
|
||||
{ title: '코성형+지방이식 전후', views: 525000, type: 'Short', repurposeAs: ['Instagram Reel', 'TikTok', 'Naver 블로그 삽입'] },
|
||||
{ title: '코성형! 내 얼굴에 가장 예쁜 코', views: 124000, type: 'Long', repurposeAs: ['Shorts 5개 추출', 'Carousel 3개', 'Blog Post 변환'] },
|
||||
{ title: '아나운서 박은영, 가슴 할 결심', views: 127000, type: 'Long', repurposeAs: ['Shorts 3개 추출', '스토리 시리즈', '광고 소재'] },
|
||||
{ title: '서울대 의학박사의 가슴재수술 성공전략', views: 1400, type: 'Long', repurposeAs: ['Shorts 추출', 'SEO 블로그', 'Carousel'] },
|
||||
],
|
||||
},
|
||||
};
|
||||
@@ -1,176 +0,0 @@
|
||||
import type { BrandInconsistency } from "@/types/brandConsistency";
|
||||
|
||||
// ─── 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;
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
import { PageSection } from "@/components/section/PageSection";
|
||||
import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan";
|
||||
import { AssetCollectionPanel } from "@/features/plan/ui/assetCollection/AssetCollectionPanel";
|
||||
|
||||
export function PlanAssetCollectionSection() {
|
||||
const { data, error } = useCurrentMarketingPlan();
|
||||
|
||||
if (error || !data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<PageSection
|
||||
id="asset-collection"
|
||||
title="에셋 수집"
|
||||
subtitle="에셋 수집 & 리퍼포징 소스"
|
||||
animateEnter={false}
|
||||
>
|
||||
<AssetCollectionPanel data={data.assetCollection} />
|
||||
</PageSection>
|
||||
);
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
import { PageSection } from "@/components/section/PageSection";
|
||||
import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan";
|
||||
import { BrandingGuidePanel } from "@/features/plan/ui/branding/BrandingGuidePanel";
|
||||
|
||||
export function PlanBrandingGuideSection() {
|
||||
const { data, error } = useCurrentMarketingPlan();
|
||||
|
||||
if (error || !data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<PageSection
|
||||
id="branding-guide"
|
||||
title="브랜딩 가이드"
|
||||
subtitle="브랜딩 가이드 빌드"
|
||||
animateEnter={false}
|
||||
>
|
||||
<BrandingGuidePanel data={data.brandGuide} />
|
||||
</PageSection>
|
||||
);
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
import { PageSection } from "@/components/section/PageSection";
|
||||
import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan";
|
||||
import { ChannelStrategyGrid } from "@/features/plan/ui/channelStrategy/ChannelStrategyGrid";
|
||||
|
||||
export function PlanChannelStrategySection() {
|
||||
const { data, error } = useCurrentMarketingPlan();
|
||||
|
||||
if (error || !data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<PageSection
|
||||
id="channel-strategy"
|
||||
title="채널 전략"
|
||||
subtitle="채널별 커뮤니케이션 전략"
|
||||
dark
|
||||
animateEnter={false}
|
||||
>
|
||||
<ChannelStrategyGrid channels={data.channelStrategies} />
|
||||
</PageSection>
|
||||
);
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
import { PageSection } from "@/components/section/PageSection";
|
||||
import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan";
|
||||
import { ContentCalendarPanel } from "@/features/plan/ui/contentCalendar/ContentCalendarPanel";
|
||||
|
||||
export function PlanContentCalendarSection() {
|
||||
const { data, error } = useCurrentMarketingPlan();
|
||||
|
||||
if (error || !data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<PageSection
|
||||
id="content-calendar"
|
||||
title="콘텐츠 캘린더"
|
||||
subtitle="콘텐츠 캘린더 (월간)"
|
||||
dark
|
||||
animateEnter={false}
|
||||
>
|
||||
<ContentCalendarPanel data={data.calendar} />
|
||||
</PageSection>
|
||||
);
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
import { PageSection } from "@/components/section/PageSection";
|
||||
import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan";
|
||||
import { ContentStrategyPanel } from "@/features/plan/ui/contentStrategy/ContentStrategyPanel";
|
||||
|
||||
export function PlanContentStrategySection() {
|
||||
const { data, error } = useCurrentMarketingPlan();
|
||||
|
||||
if (error || !data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<PageSection
|
||||
id="content-strategy"
|
||||
title="콘텐츠 전략"
|
||||
subtitle="콘텐츠 마케팅 전략"
|
||||
animateEnter={false}
|
||||
>
|
||||
<ContentStrategyPanel data={data.contentStrategy} />
|
||||
</PageSection>
|
||||
);
|
||||
}
|
||||
@@ -1,118 +0,0 @@
|
||||
import { useState } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import DownloadIcon from "@/assets/report/download.svg?react";
|
||||
import { Button } from "@/components/atoms/Button";
|
||||
import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan";
|
||||
|
||||
function PlanCtaRocketIcon({ className }: { className?: string }) {
|
||||
return (
|
||||
<svg
|
||||
className={className}
|
||||
width={28}
|
||||
height={28}
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
aria-hidden
|
||||
>
|
||||
<path
|
||||
d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
/** `DEMO/src/components/plan/PlanCTA.tsx` 레이아웃·카피·버튼 구성과 동일 (PDF는 Phase 1 목 동작). */
|
||||
export function PlanCtaSection() {
|
||||
const navigate = useNavigate();
|
||||
const { data, error } = useCurrentMarketingPlan();
|
||||
const [isExporting, setIsExporting] = useState(false);
|
||||
|
||||
if (error || !data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const planId = data.id;
|
||||
|
||||
const exportPdf = () => {
|
||||
setIsExporting(true);
|
||||
window.setTimeout(() => setIsExporting(false), 900);
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="py-16 md:py-20 px-6 scroll-mt-36" aria-label="다음 단계 안내">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<div
|
||||
data-cta-card
|
||||
className="rounded-2xl bg-gradient-to-r from-[var(--color-marketing-cream)] via-[var(--color-marketing-lilac)] to-[var(--color-marketing-ice)] p-10 md:p-14 text-center"
|
||||
>
|
||||
<div className="flex justify-center mb-6">
|
||||
<div className="w-14 h-14 rounded-full bg-white/80 backdrop-blur-sm border border-white/40 flex items-center justify-center">
|
||||
<PlanCtaRocketIcon className="text-violet-700" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 className="font-serif text-2xl md:text-3xl font-bold text-navy-950 mb-3 break-keep">
|
||||
콘텐츠 제작을 시작하세요
|
||||
</h3>
|
||||
|
||||
<p className="text-navy-950/60 mb-8 max-w-lg mx-auto break-keep">
|
||||
INFINITH가 브랜딩부터 콘텐츠 제작, 채널 배포까지 자동화합니다.
|
||||
</p>
|
||||
|
||||
<div className="flex flex-col sm:flex-row gap-3 justify-center">
|
||||
<Button
|
||||
variant="primary"
|
||||
onClick={() => navigate(`/studio/${planId}`)}
|
||||
className="inline-flex items-center justify-center gap-2 px-6 py-3 text-sm font-medium hover:shadow-lg transition-shadow"
|
||||
>
|
||||
<span className="break-keep">콘텐츠 제작 시작</span>
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={exportPdf}
|
||||
disabled={isExporting}
|
||||
className="inline-flex items-center justify-center gap-2 px-6 py-3 text-sm font-medium text-navy-950 shadow-sm hover:shadow-md disabled:opacity-60 disabled:cursor-not-allowed"
|
||||
>
|
||||
{isExporting ? (
|
||||
<span
|
||||
className="w-4 h-4 border-2 border-navy-950 border-t-transparent rounded-full animate-spin shrink-0"
|
||||
aria-hidden
|
||||
/>
|
||||
) : (
|
||||
<DownloadIcon width={16} height={16} className="shrink-0" aria-hidden />
|
||||
)}
|
||||
<span className="break-keep">플랜 다운로드</span>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan";
|
||||
import { PlanHeaderDaysBadge } from "@/features/plan/ui/header/PlanHeaderDaysBadge";
|
||||
import { PlanHeaderHeroBlobs } from "@/features/plan/ui/header/PlanHeaderHeroBlobs";
|
||||
import { PlanHeaderHeroColumn } from "@/features/plan/ui/header/PlanHeaderHeroColumn";
|
||||
import { PLAN_HEADER_BG_CLASS } from "@/features/plan/ui/header/planHeaderSectionClasses";
|
||||
|
||||
export function PlanHeaderSection() {
|
||||
const { data, error } = useCurrentMarketingPlan();
|
||||
|
||||
if (error || !data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<section
|
||||
aria-label="마케팅 플랜 헤더"
|
||||
className={`relative overflow-hidden scroll-mt-36 py-20 md:py-28 px-6 ${PLAN_HEADER_BG_CLASS}`}
|
||||
>
|
||||
<PlanHeaderHeroBlobs />
|
||||
|
||||
<div className="relative max-w-7xl mx-auto">
|
||||
<div className="flex flex-col md:flex-row items-center md:items-start justify-between gap-10">
|
||||
<PlanHeaderHeroColumn
|
||||
clinicName={data.clinicName}
|
||||
clinicNameEn={data.clinicNameEn}
|
||||
date={data.createdAt}
|
||||
targetUrl={data.targetUrl}
|
||||
/>
|
||||
<PlanHeaderDaysBadge />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import { PageSection } from "@/components/section/PageSection";
|
||||
import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan";
|
||||
import { MyAssetUploadPanel } from "@/features/plan/ui/myAssets/MyAssetUploadPanel";
|
||||
|
||||
export function PlanMyAssetUploadSection() {
|
||||
const { data, error } = useCurrentMarketingPlan();
|
||||
|
||||
if (error || !data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div data-no-print>
|
||||
<PageSection id="my-asset-upload" title="My Assets" subtitle="나의 에셋 업로드" animateEnter={false}>
|
||||
<MyAssetUploadPanel />
|
||||
</PageSection>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
||||
import { Button } from "@/components/atoms/Button";
|
||||
|
||||
export type SegmentTabButtonProps = Omit<
|
||||
ButtonHTMLAttributes<HTMLButtonElement>,
|
||||
"type" | "className"
|
||||
> & {
|
||||
active: boolean;
|
||||
onClick: () => void;
|
||||
children: ReactNode;
|
||||
/** 비활성 탭에 `card-shadow` (에셋 업로드 필터 등) */
|
||||
inactiveShadow?: boolean;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export function SegmentTabButton({
|
||||
active,
|
||||
onClick,
|
||||
children,
|
||||
inactiveShadow = false,
|
||||
className = "",
|
||||
...rest
|
||||
}: SegmentTabButtonProps) {
|
||||
return (
|
||||
<Button
|
||||
variant={active ? "primary" : "outline"}
|
||||
onClick={onClick}
|
||||
className={[
|
||||
"px-4 py-2 body-14-medium",
|
||||
!active && inactiveShadow ? "card-shadow" : "",
|
||||
className,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" ")}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
import { useState } from "react";
|
||||
import ChannelYoutubeIcon from "@/assets/icons/channel-youtube.svg?react";
|
||||
import { Pill } from "@/components/atoms/Pill";
|
||||
import { Surface } from "@/components/atoms/Surface";
|
||||
import { SegmentTabButton } from "@/features/plan/ui/SegmentTabButton";
|
||||
import type { AssetCollectionData } from "@/features/plan/types/marketingPlan";
|
||||
import {
|
||||
ASSET_COLLECTION_FILTER_TABS,
|
||||
type AssetCollectionFilterKey,
|
||||
} from "@/features/plan/ui/assetCollection/assetCollectionFilterTabs";
|
||||
import {
|
||||
assetSourceBadgeClass,
|
||||
assetStatusConfig,
|
||||
assetTypeBadgeClass,
|
||||
assetTypeDisplayLabel,
|
||||
formatYoutubeViews,
|
||||
} from "@/features/plan/ui/assetCollection/assetCollectionBadgeClasses";
|
||||
|
||||
type AssetCollectionPanelProps = {
|
||||
data: AssetCollectionData;
|
||||
};
|
||||
|
||||
export function AssetCollectionPanel({ data }: AssetCollectionPanelProps) {
|
||||
const [activeFilter, setActiveFilter] = useState<AssetCollectionFilterKey>("all");
|
||||
|
||||
const filteredAssets =
|
||||
activeFilter === "all" ? data.assets : data.assets.filter((a) => a.source === activeFilter);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="flex flex-wrap gap-2 mb-8" role="tablist" aria-label="에셋 출처 필터">
|
||||
{ASSET_COLLECTION_FILTER_TABS.map((tab) => {
|
||||
const isActive = activeFilter === tab.key;
|
||||
return (
|
||||
<SegmentTabButton
|
||||
key={tab.key}
|
||||
role="tab"
|
||||
aria-selected={isActive}
|
||||
active={isActive}
|
||||
onClick={() => setActiveFilter(tab.key)}
|
||||
>
|
||||
{tab.label}
|
||||
</SegmentTabButton>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mb-12">
|
||||
{filteredAssets.map((asset) => {
|
||||
const statusInfo = assetStatusConfig(asset.status);
|
||||
return (
|
||||
<Surface key={asset.id}>
|
||||
<div className="flex items-center gap-2 mb-3 flex-wrap">
|
||||
<Pill className={`shrink-0 ${assetSourceBadgeClass(asset.source)}`}>{asset.sourceLabel}</Pill>
|
||||
<Pill className={`shrink-0 ${assetTypeBadgeClass(asset.type)}`}>{assetTypeDisplayLabel(asset.type)}</Pill>
|
||||
<Pill className={`ml-auto shrink-0 ${statusInfo.className}`}>{statusInfo.label}</Pill>
|
||||
</div>
|
||||
|
||||
<h4 className="title-14 text-navy-900 mb-1 break-keep">{asset.title}</h4>
|
||||
<p className="body-14 text-neutral-70 mb-3 break-keep">{asset.description}</p>
|
||||
|
||||
{asset.repurposingSuggestions.length > 0 ? (
|
||||
<div>
|
||||
<p className="label-12 font-semibold text-neutral-60 uppercase mb-2 break-keep">
|
||||
Repurposing →
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{asset.repurposingSuggestions.map((suggestion, j) => (
|
||||
<Pill key={j} size="sm" className="shrink-0 bg-lavender-100 text-violet-700">
|
||||
{suggestion}
|
||||
</Pill>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
</Surface>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{data.youtubeRepurpose.length > 0 ? (
|
||||
<div>
|
||||
<h3 className="font-serif headline-24 text-navy-900 mb-4 break-keep">
|
||||
YouTube Top Videos for Repurposing
|
||||
</h3>
|
||||
<div className="flex overflow-x-auto gap-4 pb-4 scrollbar-hide">
|
||||
{data.youtubeRepurpose.map((video) => (
|
||||
<Surface key={video.title} className="min-w-[280px] shrink-0">
|
||||
<div className="flex items-start gap-2 mb-3 min-w-0">
|
||||
<ChannelYoutubeIcon width={18} height={18} className="text-[var(--color-status-critical-dot)] shrink-0 mt-1" aria-hidden />
|
||||
<h4 className="title-14 text-navy-900 break-keep min-w-0">{video.title}</h4>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 mb-3 flex-wrap">
|
||||
<Pill className="shrink-0 bg-neutral-10 text-neutral-80">
|
||||
{formatYoutubeViews(video.views)} views
|
||||
</Pill>
|
||||
<Pill
|
||||
className={
|
||||
video.type === "Short"
|
||||
? "shrink-0 bg-lavender-100 text-violet-700 border border-lavender-300"
|
||||
: "shrink-0 bg-[var(--color-status-info-bg)] text-[var(--color-status-info-text)] border border-[var(--color-status-info-border)]"
|
||||
}
|
||||
>
|
||||
{video.type}
|
||||
</Pill>
|
||||
</div>
|
||||
<p className="label-12 font-semibold text-neutral-60 uppercase mb-2 break-keep">Repurpose As:</p>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{video.repurposeAs.map((suggestion, j) => (
|
||||
<Pill key={j} size="sm" className="shrink-0 bg-lavender-100 text-violet-700">
|
||||
{suggestion}
|
||||
</Pill>
|
||||
))}
|
||||
</div>
|
||||
</Surface>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
import type { AssetSource, AssetStatus, AssetType } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
export function assetSourceBadgeClass(source: AssetSource): string {
|
||||
switch (source) {
|
||||
case "homepage":
|
||||
return "bg-neutral-10 text-neutral-80 border border-neutral-20";
|
||||
case "naver_place":
|
||||
return "bg-[var(--color-status-good-bg)] text-[var(--color-status-good-text)] border border-[var(--color-status-good-border)]";
|
||||
case "blog":
|
||||
return "bg-[var(--color-status-info-bg)] text-[var(--color-status-info-text)] border border-[var(--color-status-info-border)]";
|
||||
case "social":
|
||||
return "bg-[var(--color-marketing-blush)]/50 text-navy-800 border border-neutral-30";
|
||||
case "youtube":
|
||||
return "bg-[var(--color-status-critical-bg)] text-[var(--color-status-critical-text)] border border-[var(--color-status-critical-border)]";
|
||||
default:
|
||||
return "bg-neutral-10 text-neutral-70 border border-neutral-20";
|
||||
}
|
||||
}
|
||||
|
||||
export function assetTypeDisplayLabel(type: AssetType): string {
|
||||
switch (type) {
|
||||
case "photo":
|
||||
return "사진";
|
||||
case "video":
|
||||
return "영상";
|
||||
case "text":
|
||||
return "텍스트";
|
||||
default:
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
export function assetTypeBadgeClass(type: AssetType): string {
|
||||
switch (type) {
|
||||
case "photo":
|
||||
return "bg-[var(--color-status-info-bg)] text-[var(--color-status-info-text)] border border-[var(--color-status-info-border)]";
|
||||
case "video":
|
||||
return "bg-lavender-100 text-violet-700 border border-lavender-300";
|
||||
case "text":
|
||||
return "bg-[var(--color-status-warning-bg)] text-[var(--color-status-warning-text)] border border-[var(--color-status-warning-border)]";
|
||||
default:
|
||||
return "bg-neutral-10 text-neutral-70 border border-neutral-20";
|
||||
}
|
||||
}
|
||||
|
||||
export function assetStatusConfig(status: AssetStatus): { className: string; label: string } {
|
||||
switch (status) {
|
||||
case "collected":
|
||||
return {
|
||||
className:
|
||||
"bg-[var(--color-status-good-bg)] text-[var(--color-status-good-text)] border border-[var(--color-status-good-border)]",
|
||||
label: "수집완료",
|
||||
};
|
||||
case "pending":
|
||||
return {
|
||||
className:
|
||||
"bg-[var(--color-status-warning-bg)] text-[var(--color-status-warning-text)] border border-[var(--color-status-warning-border)]",
|
||||
label: "수집 대기",
|
||||
};
|
||||
case "needs_creation":
|
||||
return {
|
||||
className:
|
||||
"bg-[var(--color-status-critical-bg)] text-[var(--color-status-critical-text)] border border-[var(--color-status-critical-border)]",
|
||||
label: "제작 필요",
|
||||
};
|
||||
default:
|
||||
return { className: "bg-neutral-10 text-neutral-70 border border-neutral-20", label: status };
|
||||
}
|
||||
}
|
||||
|
||||
export function formatYoutubeViews(views: number): string {
|
||||
if (views >= 1_000_000) return `${(views / 1_000_000).toFixed(1)}M`;
|
||||
if (views >= 1_000) return `${Math.round(views / 1_000)}K`;
|
||||
return String(views);
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
export const ASSET_COLLECTION_FILTER_TABS = [
|
||||
{ key: "all", label: "전체" },
|
||||
{ key: "homepage", label: "홈페이지" },
|
||||
{ key: "naver_place", label: "네이버" },
|
||||
{ key: "blog", label: "블로그" },
|
||||
{ key: "social", label: "소셜미디어" },
|
||||
{ key: "youtube", label: "YouTube" },
|
||||
] as const;
|
||||
|
||||
export type AssetCollectionFilterKey = (typeof ASSET_COLLECTION_FILTER_TABS)[number]["key"];
|
||||
@@ -1,35 +0,0 @@
|
||||
import type { ComponentType, SVGProps } from "react";
|
||||
import ChannelFacebookIcon from "@/assets/icons/channel-facebook.svg?react";
|
||||
import ChannelInstagramIcon from "@/assets/icons/channel-instagram.svg?react";
|
||||
import ChannelYoutubeIcon from "@/assets/icons/channel-youtube.svg?react";
|
||||
import GlobeIcon from "@/assets/report/globe.svg?react";
|
||||
import MessageCircleIcon from "@/assets/report/message-circle.svg?react";
|
||||
import VideoIcon from "@/assets/icons/video.svg?react";
|
||||
|
||||
type SvgIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
||||
|
||||
const CHANNEL_ICON_MAP: Record<string, SvgIcon> = {
|
||||
youtube: ChannelYoutubeIcon,
|
||||
instagram: ChannelInstagramIcon,
|
||||
facebook: ChannelFacebookIcon,
|
||||
globe: GlobeIcon,
|
||||
video: VideoIcon,
|
||||
messagesquare: MessageCircleIcon,
|
||||
};
|
||||
|
||||
function normalizeIconKey(icon: string): string {
|
||||
return icon.toLowerCase().replace(/-/g, "");
|
||||
}
|
||||
|
||||
type BrandingChannelIconProps = {
|
||||
icon: string;
|
||||
className?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
};
|
||||
|
||||
export function BrandingChannelIcon({ icon, className, width = 18, height = 18 }: BrandingChannelIconProps) {
|
||||
const key = normalizeIconKey(icon);
|
||||
const Icon = CHANNEL_ICON_MAP[key] ?? GlobeIcon;
|
||||
return <Icon className={className} width={width} height={height} aria-hidden />;
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
import { Surface } from "@/components/atoms/Surface";
|
||||
import type { BrandGuide } from "@/features/plan/types/marketingPlan";
|
||||
import { BrandingChannelIcon } from "@/features/plan/ui/branding/BrandingChannelIcon";
|
||||
import {
|
||||
brandingChannelStatusBadgeClass,
|
||||
brandingChannelStatusLabel,
|
||||
} from "@/features/plan/ui/branding/brandingChannelStatusClasses";
|
||||
|
||||
type BrandingChannelRulesTabProps = {
|
||||
channels: BrandGuide["channelBranding"];
|
||||
};
|
||||
|
||||
export function BrandingChannelRulesTab({ channels }: BrandingChannelRulesTabProps) {
|
||||
return (
|
||||
<div className="animate-fade-in-up">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
||||
{channels.map((ch) => (
|
||||
<Surface key={ch.channel}>
|
||||
<div className="flex items-center gap-3 mb-4 min-w-0">
|
||||
<div className="w-9 h-9 rounded-lg bg-gradient-to-br from-violet-500/10 to-violet-700/10 flex items-center justify-center shrink-0">
|
||||
<BrandingChannelIcon icon={ch.icon} className="text-violet-500" />
|
||||
</div>
|
||||
<p className="font-bold text-navy-900 break-keep truncate min-w-0">{ch.channel}</p>
|
||||
<span
|
||||
className={`ml-auto text-xs font-medium px-3 py-1 rounded-full border shrink-0 break-keep ${brandingChannelStatusBadgeClass(ch.currentStatus)}`}
|
||||
>
|
||||
{brandingChannelStatusLabel(ch.currentStatus)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="space-y-3 body-14">
|
||||
<div>
|
||||
<p className="text-neutral-60 label-12 uppercase tracking-wide mb-1 break-keep">Profile Photo</p>
|
||||
<p className="text-neutral-80 font-medium break-keep">{ch.profilePhoto}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-neutral-60 label-12 uppercase tracking-wide mb-1 break-keep">Banner Spec</p>
|
||||
<p className="text-neutral-80 font-medium break-keep">{ch.bannerSpec}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-neutral-60 label-12 uppercase tracking-wide mb-1 break-keep">Bio Template</p>
|
||||
<div className="bg-neutral-10 rounded-xl p-3 border border-neutral-20">
|
||||
<p className="font-mono label-12 text-neutral-70 whitespace-pre-wrap break-keep">{ch.bioTemplate}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Surface>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
import { useState } from "react";
|
||||
import { BrandConsistencyMap } from "@/components/brand/BrandConsistencyMap";
|
||||
import { SegmentTabButton } from "@/features/plan/ui/SegmentTabButton";
|
||||
import type { BrandGuide } from "@/features/plan/types/marketingPlan";
|
||||
import { BRANDING_GUIDE_TAB_ITEMS, type BrandingGuideTabKey } from "@/features/plan/ui/branding/brandingTabs";
|
||||
import { BrandingChannelRulesTab } from "@/features/plan/ui/branding/BrandingChannelRulesTab";
|
||||
import { BrandingToneVoiceTab } from "@/features/plan/ui/branding/BrandingToneVoiceTab";
|
||||
import { BrandingVisualIdentityTab } from "@/features/plan/ui/branding/BrandingVisualIdentityTab";
|
||||
|
||||
type BrandingGuidePanelProps = {
|
||||
data: BrandGuide;
|
||||
};
|
||||
|
||||
export function BrandingGuidePanel({ data }: BrandingGuidePanelProps) {
|
||||
const [activeTab, setActiveTab] = useState<BrandingGuideTabKey>("visual");
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="flex flex-wrap gap-2 mb-8" role="tablist" aria-label="브랜딩 가이드 탭">
|
||||
{BRANDING_GUIDE_TAB_ITEMS.map((tab) => {
|
||||
const isActive = activeTab === tab.key;
|
||||
return (
|
||||
<SegmentTabButton
|
||||
key={tab.key}
|
||||
role="tab"
|
||||
aria-selected={isActive}
|
||||
title={tab.labelKr}
|
||||
active={isActive}
|
||||
onClick={() => setActiveTab(tab.key)}
|
||||
>
|
||||
{tab.label}
|
||||
</SegmentTabButton>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{activeTab === "visual" ? <BrandingVisualIdentityTab data={data} /> : null}
|
||||
{activeTab === "tone" ? <BrandingToneVoiceTab tone={data.toneOfVoice} /> : null}
|
||||
{activeTab === "channels" ? <BrandingChannelRulesTab channels={data.channelBranding} /> : null}
|
||||
{activeTab === "consistency" ? (
|
||||
<BrandConsistencyMap inconsistencies={data.brandInconsistencies} showHeading={false} />
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
import CheckCircleIcon from "@/assets/report/check-circle.svg?react";
|
||||
import XCircleIcon from "@/assets/report/x-circle.svg?react";
|
||||
import type { BrandGuide } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
type BrandingToneVoiceTabProps = {
|
||||
tone: BrandGuide["toneOfVoice"];
|
||||
};
|
||||
|
||||
export function BrandingToneVoiceTab({ tone }: BrandingToneVoiceTabProps) {
|
||||
return (
|
||||
<div className="space-y-6 animate-fade-in-up">
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-2xl text-navy-900 mb-4 break-keep">Personality</h3>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{tone.personality.map((trait) => (
|
||||
<span
|
||||
key={trait}
|
||||
className="bg-gradient-to-r from-violet-700/10 to-navy-950/10 text-violet-700 border border-lavender-300 rounded-full px-4 py-2 body-14-medium break-keep"
|
||||
>
|
||||
{trait}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-2xl text-navy-900 mb-4 break-keep">Communication Style</h3>
|
||||
<div className="rounded-2xl bg-neutral-10 p-6 border border-neutral-20">
|
||||
<p className="body-16 text-neutral-80 leading-relaxed break-keep">{tone.communicationStyle}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<div>
|
||||
<h4 className="title-14 text-[var(--color-status-good-text)] mb-3 flex items-center gap-2 break-keep">
|
||||
<CheckCircleIcon width={16} height={16} className="shrink-0 text-[var(--color-status-good-dot)]" aria-hidden />
|
||||
DO
|
||||
</h4>
|
||||
<div className="space-y-3">
|
||||
{tone.doExamples.map((example, i) => (
|
||||
<div
|
||||
key={i}
|
||||
className="border-l-4 border-[var(--color-status-good-dot)] bg-[var(--color-status-good-bg)]/30 p-4 rounded-r-xl"
|
||||
>
|
||||
<p className="body-14 text-neutral-80 break-keep">{example}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="title-14 text-[var(--color-status-critical-text)] mb-3 flex items-center gap-2 break-keep">
|
||||
<XCircleIcon width={16} height={16} className="shrink-0 text-[var(--color-status-critical-dot)]" aria-hidden />
|
||||
DON'T
|
||||
</h4>
|
||||
<div className="space-y-3">
|
||||
{tone.dontExamples.map((example, i) => (
|
||||
<div
|
||||
key={i}
|
||||
className="border-l-4 border-[var(--color-status-critical-dot)] bg-[var(--color-status-critical-bg)]/30 p-4 rounded-r-xl"
|
||||
>
|
||||
<p className="body-14 text-neutral-80 break-keep">{example}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,92 +0,0 @@
|
||||
import CheckCircleIcon from "@/assets/report/check-circle.svg?react";
|
||||
import XCircleIcon from "@/assets/report/x-circle.svg?react";
|
||||
import { Surface } from "@/components/atoms/Surface";
|
||||
import type { BrandGuide } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
type BrandingVisualIdentityTabProps = {
|
||||
data: BrandGuide;
|
||||
};
|
||||
|
||||
export function BrandingVisualIdentityTab({ data }: BrandingVisualIdentityTabProps) {
|
||||
return (
|
||||
<div className="space-y-8 animate-fade-in-up">
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-2xl text-navy-900 mb-4 break-keep">Color Palette</h3>
|
||||
<div className="grid grid-cols-2 md:grid-cols-5 gap-4">
|
||||
{data.colors.map((swatch, i) => (
|
||||
<Surface key={`${swatch.name}-${swatch.hex}-${i}`} padding="none" overflowHidden>
|
||||
<div className="h-20" style={{ backgroundColor: swatch.hex }} />
|
||||
<div className="p-3">
|
||||
<p className="font-mono body-14 text-neutral-80">{swatch.hex}</p>
|
||||
<p className="title-14 text-navy-900 break-keep">{swatch.name}</p>
|
||||
<p className="label-12 text-neutral-60 break-keep">{swatch.usage}</p>
|
||||
</div>
|
||||
</Surface>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-2xl text-navy-900 mb-4 break-keep">Typography</h3>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||
{data.fonts.map((spec) => (
|
||||
<Surface key={`${spec.family}-${spec.weight}`}>
|
||||
<p className="label-12 text-neutral-60 uppercase tracking-wide mb-2 break-keep">{spec.family}</p>
|
||||
<p
|
||||
className={`mb-3 text-navy-900 break-keep ${
|
||||
spec.weight.toLowerCase().includes("bold") ? "text-2xl font-bold" : "text-lg"
|
||||
}`}
|
||||
style={{ fontFamily: spec.family }}
|
||||
>
|
||||
{spec.sampleText}
|
||||
</p>
|
||||
<p className="label-12 text-neutral-60 break-keep">
|
||||
<span className="font-medium text-neutral-80">{spec.weight}</span>
|
||||
{" · "}
|
||||
{spec.usage}
|
||||
</p>
|
||||
</Surface>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 className="font-serif font-bold text-2xl text-navy-900 mb-4 break-keep">Logo Rules</h3>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
{data.logoRules.map((rule) => (
|
||||
<div
|
||||
key={rule.rule}
|
||||
className={`rounded-2xl p-5 ${
|
||||
rule.correct
|
||||
? "border-2 border-[var(--color-status-good-border)] bg-[var(--color-status-good-bg)]/30"
|
||||
: "border-2 border-[var(--color-status-critical-border)] bg-[var(--color-status-critical-bg)]/30"
|
||||
}`}
|
||||
>
|
||||
<div className="flex items-start gap-3">
|
||||
{rule.correct ? (
|
||||
<CheckCircleIcon
|
||||
width={20}
|
||||
height={20}
|
||||
className="text-[var(--color-status-good-dot)] shrink-0 mt-1"
|
||||
aria-hidden
|
||||
/>
|
||||
) : (
|
||||
<XCircleIcon
|
||||
width={20}
|
||||
height={20}
|
||||
className="text-[var(--color-status-critical-dot)] shrink-0 mt-1"
|
||||
aria-hidden
|
||||
/>
|
||||
)}
|
||||
<div className="min-w-0">
|
||||
<p className="title-14 text-navy-900 break-keep">{rule.rule}</p>
|
||||
<p className="body-14 text-neutral-70 mt-1 break-keep">{rule.description}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
import type { ChannelBrandingRule } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
export function brandingChannelStatusBadgeClass(status: ChannelBrandingRule["currentStatus"]): string {
|
||||
switch (status) {
|
||||
case "correct":
|
||||
return "bg-[var(--color-status-good-bg)] text-[var(--color-status-good-text)] border-[var(--color-status-good-border)]";
|
||||
case "incorrect":
|
||||
return "bg-[var(--color-status-critical-bg)] text-[var(--color-status-critical-text)] border-[var(--color-status-critical-border)]";
|
||||
case "missing":
|
||||
return "bg-neutral-10 text-neutral-60 border-neutral-30";
|
||||
default:
|
||||
return "bg-neutral-10 text-neutral-60 border-neutral-30";
|
||||
}
|
||||
}
|
||||
|
||||
export function brandingChannelStatusLabel(status: ChannelBrandingRule["currentStatus"]): string {
|
||||
switch (status) {
|
||||
case "correct":
|
||||
return "Correct";
|
||||
case "incorrect":
|
||||
return "Incorrect";
|
||||
case "missing":
|
||||
return "Missing";
|
||||
default:
|
||||
return status;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
export const BRANDING_GUIDE_TAB_ITEMS = [
|
||||
{ key: "visual", label: "Visual Identity", labelKr: "비주얼 아이덴티티" },
|
||||
{ key: "tone", label: "Tone & Voice", labelKr: "톤 & 보이스" },
|
||||
{ key: "channels", label: "Channel Rules", labelKr: "채널별 규칙" },
|
||||
{ key: "consistency", label: "Brand Consistency", labelKr: "브랜드 일관성" },
|
||||
] as const;
|
||||
|
||||
export type BrandingGuideTabKey = (typeof BRANDING_GUIDE_TAB_ITEMS)[number]["key"];
|
||||
@@ -1,86 +0,0 @@
|
||||
import CalendarIcon from "@/assets/report/calendar.svg?react";
|
||||
import { Pill } from "@/components/atoms/Pill";
|
||||
import { Surface } from "@/components/atoms/Surface";
|
||||
import type { ChannelStrategyCard } from "@/features/plan/types/marketingPlan";
|
||||
import { BrandingChannelIcon } from "@/features/plan/ui/branding/BrandingChannelIcon";
|
||||
import { channelStrategyPriorityPillClass } from "@/features/plan/ui/channelStrategy/channelStrategyPillClasses";
|
||||
|
||||
type ChannelStrategyGridProps = {
|
||||
channels: ChannelStrategyCard[];
|
||||
};
|
||||
|
||||
function ChannelStrategyCard({ ch, index }: { ch: ChannelStrategyCard; index: number }) {
|
||||
const delayClass =
|
||||
index === 0
|
||||
? ""
|
||||
: index === 1
|
||||
? "animation-delay-100"
|
||||
: index === 2
|
||||
? "animation-delay-200"
|
||||
: "animation-delay-300";
|
||||
|
||||
return (
|
||||
<Surface
|
||||
bordered={false}
|
||||
padding="lg"
|
||||
interactive="lift"
|
||||
className={`animate-fade-in-up ${delayClass}`}
|
||||
>
|
||||
<div className="flex items-center gap-3 mb-4 min-w-0">
|
||||
<div className="w-10 h-10 rounded-xl bg-[var(--color-status-good-bg)] flex items-center justify-center shrink-0">
|
||||
<BrandingChannelIcon icon={ch.icon} className="text-[var(--color-status-good-dot)]" width={20} height={20} />
|
||||
</div>
|
||||
<h4 className="title-18-md-20 text-navy-900 flex-1 min-w-0 break-keep">{ch.channelName}</h4>
|
||||
<Pill weight="semibold" className={`shrink-0 border ${channelStrategyPriorityPillClass(ch.priority)}`}>
|
||||
{ch.priority}
|
||||
</Pill>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2 mb-4 flex-wrap">
|
||||
<Pill className="border bg-[var(--color-status-critical-bg)] text-[var(--color-status-critical-text)] border-[var(--color-status-critical-border)]">
|
||||
{ch.currentStatus}
|
||||
</Pill>
|
||||
<span className="body-14 text-neutral-60 shrink-0" aria-hidden>
|
||||
→
|
||||
</span>
|
||||
<Pill className="border bg-[var(--color-status-good-bg)] text-[var(--color-status-good-text)] border-[var(--color-status-good-border)]">
|
||||
{ch.targetGoal}
|
||||
</Pill>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-wrap gap-2 mb-4">
|
||||
{ch.contentTypes.map((type) => (
|
||||
<Pill key={type} className="bg-neutral-10 border border-neutral-20 text-neutral-70">
|
||||
{type}
|
||||
</Pill>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2 mb-3 min-w-0">
|
||||
<CalendarIcon width={14} height={14} className="text-[var(--color-status-good-dot)] shrink-0" aria-hidden />
|
||||
<p className="body-14 text-neutral-70 break-keep">{ch.postingFrequency}</p>
|
||||
</div>
|
||||
|
||||
<p className="body-14 italic text-violet-500/80 mb-4 break-keep">{ch.tone}</p>
|
||||
|
||||
<ul className="space-y-2">
|
||||
{ch.formatGuidelines.map((guideline, i) => (
|
||||
<li key={i} className="flex items-start gap-2">
|
||||
<span className="shrink-0 w-2 h-2 rounded-full bg-violet-500 mt-2" aria-hidden />
|
||||
<span className="body-14 text-neutral-80 break-keep">{guideline}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</Surface>
|
||||
);
|
||||
}
|
||||
|
||||
export function ChannelStrategyGrid({ channels }: ChannelStrategyGridProps) {
|
||||
return (
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{channels.map((ch, index) => (
|
||||
<ChannelStrategyCard key={ch.channelId} ch={ch} index={index} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
import type { ChannelStrategyCard } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
export function channelStrategyPriorityPillClass(priority: ChannelStrategyCard["priority"]): string {
|
||||
switch (priority) {
|
||||
case "P0":
|
||||
return "bg-[var(--color-status-critical-bg)] text-[var(--color-status-critical-text)] border-[var(--color-status-critical-border)]";
|
||||
case "P1":
|
||||
return "bg-[var(--color-status-warning-bg)] text-[var(--color-status-warning-text)] border-[var(--color-status-warning-border)]";
|
||||
case "P2":
|
||||
return "bg-[var(--color-status-good-bg)] text-[var(--color-status-good-text)] border-[var(--color-status-good-border)]";
|
||||
default:
|
||||
return "bg-neutral-10 text-neutral-60 border-neutral-20";
|
||||
}
|
||||
}
|
||||
@@ -1,110 +0,0 @@
|
||||
import { Pill } from "@/components/atoms/Pill";
|
||||
import { Surface } from "@/components/atoms/Surface";
|
||||
import type { CalendarData, CalendarEntry, ContentCategory } from "@/features/plan/types/marketingPlan";
|
||||
import {
|
||||
CALENDAR_CONTENT_TYPE_LABELS,
|
||||
CALENDAR_DAY_HEADERS,
|
||||
calendarContentTypeVisual,
|
||||
} from "@/features/plan/ui/contentCalendar/calendarContentTypeClasses";
|
||||
import { ContentCalendarTypeIcon } from "@/features/plan/ui/contentCalendar/ContentCalendarTypeIcon";
|
||||
|
||||
type ContentCalendarPanelProps = {
|
||||
data: CalendarData;
|
||||
};
|
||||
|
||||
function buildDayCells(entries: CalendarEntry[]): CalendarEntry[][] {
|
||||
const dayCells: CalendarEntry[][] = Array.from({ length: 7 }, () => []);
|
||||
for (const entry of entries) {
|
||||
const dayIndex = entry.dayOfWeek;
|
||||
if (dayIndex >= 0 && dayIndex <= 6) {
|
||||
dayCells[dayIndex].push(entry);
|
||||
}
|
||||
}
|
||||
return dayCells;
|
||||
}
|
||||
|
||||
export function ContentCalendarPanel({ data }: ContentCalendarPanelProps) {
|
||||
const legendTypes = Object.keys(CALENDAR_CONTENT_TYPE_LABELS) as ContentCategory[];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="flex flex-wrap gap-4 mb-8">
|
||||
{data.monthlySummary.map((item) => {
|
||||
const v = calendarContentTypeVisual(item.type);
|
||||
return (
|
||||
<Surface
|
||||
key={item.type}
|
||||
padding="sm"
|
||||
surface="none"
|
||||
className={`flex-1 min-w-[140px] ${v.summaryBg} ${v.summaryBorder}`}
|
||||
>
|
||||
<div className="flex items-center gap-2 mb-2">
|
||||
<span className="w-3 h-3 rounded-full shrink-0" style={{ backgroundColor: item.color }} aria-hidden />
|
||||
<span className={`body-14-medium break-keep ${v.summaryText}`}>{item.label}</span>
|
||||
</div>
|
||||
<span className={`text-2xl font-bold break-keep ${v.summaryText}`}>{item.count}</span>
|
||||
</Surface>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{data.weeks.map((week) => {
|
||||
const dayCells = buildDayCells(week.entries);
|
||||
return (
|
||||
<Surface key={week.weekNumber} className="mb-4">
|
||||
<p className="title-14 text-navy-900 mb-3 break-keep">{week.label}</p>
|
||||
<div className="grid grid-cols-7 gap-2">
|
||||
{CALENDAR_DAY_HEADERS.map((day) => (
|
||||
<div
|
||||
key={day}
|
||||
className="label-12 text-neutral-60 uppercase tracking-wide text-center mb-1 font-medium break-keep"
|
||||
>
|
||||
{day}
|
||||
</div>
|
||||
))}
|
||||
{dayCells.map((entries, dayIdx) => (
|
||||
<div
|
||||
key={dayIdx}
|
||||
className={`min-h-[80px] rounded-xl p-2 ${
|
||||
entries.length > 0
|
||||
? "bg-neutral-10/80 border border-neutral-20"
|
||||
: "border border-dashed border-neutral-30/80"
|
||||
}`}
|
||||
>
|
||||
{entries.map((entry, entryIdx) => {
|
||||
const v = calendarContentTypeVisual(entry.contentType);
|
||||
return (
|
||||
<div
|
||||
key={`${entry.title}-${entryIdx}`}
|
||||
className={`${v.entryBg} border ${v.entryBorder} rounded-lg p-2 mb-1 card-shadow`}
|
||||
>
|
||||
<div className="flex items-center gap-1 mb-1">
|
||||
<ContentCalendarTypeIcon type={entry.contentType} className={v.entryText} />
|
||||
</div>
|
||||
<p className="body-14 text-neutral-80 leading-tight break-keep">{entry.title}</p>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</Surface>
|
||||
);
|
||||
})}
|
||||
|
||||
<div className="flex flex-wrap gap-3 mt-4">
|
||||
{legendTypes.map((type) => {
|
||||
const v = calendarContentTypeVisual(type);
|
||||
return (
|
||||
<Pill
|
||||
key={type}
|
||||
className={`${v.summaryBg} ${v.summaryText} border ${v.summaryBorder} card-shadow`}
|
||||
>
|
||||
{CALENDAR_CONTENT_TYPE_LABELS[type]}
|
||||
</Pill>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
import type { ComponentType, SVGProps } from "react";
|
||||
import ExternalLinkIcon from "@/assets/icons/external-link.svg?react";
|
||||
import TrendingUpIcon from "@/assets/icons/trending-up.svg?react";
|
||||
import VideoIcon from "@/assets/icons/video.svg?react";
|
||||
import Link2Icon from "@/assets/report/link-2.svg?react";
|
||||
import type { ContentCategory } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
type Svg = ComponentType<SVGProps<SVGSVGElement>>;
|
||||
|
||||
const MAP: Record<ContentCategory, Svg> = {
|
||||
video: VideoIcon,
|
||||
blog: Link2Icon,
|
||||
social: ExternalLinkIcon,
|
||||
ad: TrendingUpIcon,
|
||||
};
|
||||
|
||||
type ContentCalendarTypeIconProps = {
|
||||
type: ContentCategory;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export function ContentCalendarTypeIcon({ type, className }: ContentCalendarTypeIconProps) {
|
||||
const Icon = MAP[type];
|
||||
return <Icon width={11} height={11} className={className} aria-hidden />;
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
import type { ContentCategory } from "@/features/plan/types/marketingPlan";
|
||||
|
||||
export type CalendarTypeVisual = {
|
||||
summaryBg: string;
|
||||
summaryBorder: string;
|
||||
summaryText: string;
|
||||
entryBg: string;
|
||||
entryBorder: string;
|
||||
entryText: string;
|
||||
};
|
||||
|
||||
export function calendarContentTypeVisual(type: ContentCategory): CalendarTypeVisual {
|
||||
switch (type) {
|
||||
case "video":
|
||||
return {
|
||||
summaryBg: "bg-[var(--color-status-good-bg)]",
|
||||
summaryBorder: "border-[var(--color-status-good-border)]",
|
||||
summaryText: "text-[var(--color-status-good-text)]",
|
||||
entryBg: "bg-[var(--color-status-good-bg)]",
|
||||
entryBorder: "border-[var(--color-status-good-border)]",
|
||||
entryText: "text-[var(--color-status-good-text)]",
|
||||
};
|
||||
case "blog":
|
||||
return {
|
||||
summaryBg: "bg-[var(--color-status-info-bg)]",
|
||||
summaryBorder: "border-[var(--color-status-info-border)]",
|
||||
summaryText: "text-[var(--color-status-info-text)]",
|
||||
entryBg: "bg-[var(--color-status-info-bg)]",
|
||||
entryBorder: "border-[var(--color-status-info-border)]",
|
||||
entryText: "text-[var(--color-status-info-text)]",
|
||||
};
|
||||
case "social":
|
||||
return {
|
||||
summaryBg: "bg-[var(--color-status-warning-bg)]",
|
||||
summaryBorder: "border-[var(--color-status-warning-border)]",
|
||||
summaryText: "text-[var(--color-status-warning-text)]",
|
||||
entryBg: "bg-[var(--color-status-warning-bg)]",
|
||||
entryBorder: "border-[var(--color-status-warning-border)]",
|
||||
entryText: "text-[var(--color-status-warning-text)]",
|
||||
};
|
||||
case "ad":
|
||||
return {
|
||||
summaryBg: "bg-[var(--color-status-critical-bg)]",
|
||||
summaryBorder: "border-[var(--color-status-critical-border)]",
|
||||
summaryText: "text-[var(--color-status-critical-text)]",
|
||||
entryBg: "bg-[var(--color-status-critical-bg)]",
|
||||
entryBorder: "border-[var(--color-status-critical-border)]",
|
||||
entryText: "text-[var(--color-status-critical-text)]",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
summaryBg: "bg-neutral-10",
|
||||
summaryBorder: "border-neutral-20",
|
||||
summaryText: "text-neutral-80",
|
||||
entryBg: "bg-neutral-10",
|
||||
entryBorder: "border-neutral-20",
|
||||
entryText: "text-neutral-80",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export const CALENDAR_CONTENT_TYPE_LABELS: Record<ContentCategory, string> = {
|
||||
video: "Video",
|
||||
blog: "Blog",
|
||||
social: "Social",
|
||||
ad: "Ad",
|
||||
};
|
||||
|
||||
export const CALENDAR_DAY_HEADERS = ["월", "화", "수", "목", "금", "토", "일"] as const;
|
||||
@@ -1,48 +0,0 @@
|
||||
import { useState } from "react";
|
||||
import { SegmentTabButton } from "@/features/plan/ui/SegmentTabButton";
|
||||
import type { ContentStrategyData } from "@/features/plan/types/marketingPlan";
|
||||
import {
|
||||
CONTENT_STRATEGY_TAB_ITEMS,
|
||||
type ContentStrategyTabKey,
|
||||
} from "@/features/plan/ui/contentStrategy/contentStrategyTabs";
|
||||
import { ContentStrategyPillarsTab } from "@/features/plan/ui/contentStrategy/ContentStrategyPillarsTab";
|
||||
import { ContentStrategyRepurposingTab } from "@/features/plan/ui/contentStrategy/ContentStrategyRepurposingTab";
|
||||
import { ContentStrategyTypesTab } from "@/features/plan/ui/contentStrategy/ContentStrategyTypesTab";
|
||||
import { ContentStrategyWorkflowTab } from "@/features/plan/ui/contentStrategy/ContentStrategyWorkflowTab";
|
||||
|
||||
type ContentStrategyPanelProps = {
|
||||
data: ContentStrategyData;
|
||||
};
|
||||
|
||||
export function ContentStrategyPanel({ data }: ContentStrategyPanelProps) {
|
||||
const [activeTab, setActiveTab] = useState<ContentStrategyTabKey>("pillars");
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="flex flex-wrap gap-2 mb-8" role="tablist" aria-label="콘텐츠 전략 탭">
|
||||
{CONTENT_STRATEGY_TAB_ITEMS.map((tab) => {
|
||||
const isActive = activeTab === tab.key;
|
||||
return (
|
||||
<SegmentTabButton
|
||||
key={tab.key}
|
||||
role="tab"
|
||||
aria-selected={isActive}
|
||||
title={tab.labelKr}
|
||||
active={isActive}
|
||||
onClick={() => setActiveTab(tab.key)}
|
||||
>
|
||||
{tab.label}
|
||||
</SegmentTabButton>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{activeTab === "pillars" ? <ContentStrategyPillarsTab pillars={data.pillars} /> : null}
|
||||
{activeTab === "types" ? <ContentStrategyTypesTab rows={data.typeMatrix} /> : null}
|
||||
{activeTab === "workflow" ? <ContentStrategyWorkflowTab steps={data.workflow} /> : null}
|
||||
{activeTab === "repurposing" ? (
|
||||
<ContentStrategyRepurposingTab source={data.repurposingSource} outputs={data.repurposingOutputs} />
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loaded 100 of 203 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user