feat: 마케팅 플랜 Phase 1~3 완성

- ContentCalendar: 드래그앤드롭(주차 내 요일 간 이동) + 엔트리 추가 버튼 + iCal Export
- BrandingGuide: 색상 팔레트 인라인 편집(스와치 클릭 → hex 팝오버) + DO/DON'T 2컬럼
- WorkflowTracker: 콘텐츠 제작 파이프라인(기획→AI초안→검토→승인→배포), 동영상/이미지+텍스트 분류
- RepurposingProposal: YouTube 인기 영상 리퍼포징 제안 아코디언 섹션
- AssetDetailModal: 에셋 카드 클릭 시 상세 모달
- 디자인 시스템 감사: Lucide 라인 아이콘 제거, 원색(pink/indigo/purple) 제거, 이모지 UI 제거
- "My Assets" → "나의 소재" 일관성 변경
- FilledIcons: DownloadFilled, RocketFilled 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Sonnet 4.6 committed 2026-04-07 16:44:21 +09:00
1 parent b84410341f
commit 2027ae9b64
19 files changed
+1547 -207

No files matched your search

+23 -11
View File
@@ -1,8 +1,13 @@
import { useState } from 'react';
import { motion } from 'motion/react';
import { Youtube } from 'lucide-react';
import { YoutubeFilled } from '../icons/FilledIcons';
import { SectionWrapper } from '../report/ui/SectionWrapper';
import type { AssetCollectionData, AssetSource, AssetStatus, AssetType } from '../../types/plan';
import AssetDetailModal from './AssetDetailModal';
import type { AssetCollectionData, AssetCard, YouTubeRepurposeItem, AssetSource, AssetStatus, AssetType } from '../../types/plan';
type ModalAsset =
| { kind: 'asset'; data: AssetCard }
| { kind: 'youtube'; data: YouTubeRepurposeItem };
interface AssetCollectionProps {
data: AssetCollectionData;
@@ -23,13 +28,13 @@ const sourceBadgeColors: Record<AssetSource, string> = {
homepage: 'bg-slate-100 text-slate-700',
naver_place: 'bg-[#F3F0FF] text-[#4A3A7C]',
blog: 'bg-[#EFF0FF] text-[#3A3F7C]',
social: 'bg-pink-100 text-pink-700',
social: 'bg-[#FFF0F0] text-[#7C3A4B]',
youtube: 'bg-[#FFF0F0] text-[#7C3A4B]',
};
const typeBadgeColors: Record<AssetType, string> = {
photo: 'bg-indigo-50 text-indigo-700',
video: 'bg-purple-50 text-purple-700',
photo: 'bg-[#EFF0FF] text-[#3A3F7C]',
video: 'bg-[#F3F0FF] text-[#4A3A7C]',
text: 'bg-[#FFF6ED] text-[#7C5C3A]',
};
@@ -47,6 +52,7 @@ function formatViews(views: number): string {
export default function AssetCollection({ data }: AssetCollectionProps) {
const [activeFilter, setActiveFilter] = useState<FilterKey>('all');
const [selectedAsset, setSelectedAsset] = useState<ModalAsset | null>(null);
const filteredAssets =
activeFilter === 'all'
@@ -83,7 +89,8 @@ export default function AssetCollection({ data }: AssetCollectionProps) {
return (
<motion.div
key={asset.id}
className="rounded-2xl border border-slate-100 bg-white shadow-sm p-5"
className="rounded-2xl border border-slate-100 bg-white shadow-sm p-5 cursor-pointer hover:shadow-[3px_4px_12px_rgba(0,0,0,0.06)] hover:border-[#D5CDF5] transition-all"
onClick={() => setSelectedAsset({ kind: 'asset', data: asset })}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
@@ -122,7 +129,7 @@ export default function AssetCollection({ data }: AssetCollectionProps) {
{asset.repurposingSuggestions.map((suggestion, j) => (
<span
key={j}
className="rounded-full bg-purple-50 text-purple-700 text-xs px-2 py-1"
className="rounded-full bg-[#F3F0FF] text-[#4A3A7C] text-xs px-2 py-1"
>
{suggestion}
</span>
@@ -145,14 +152,15 @@ export default function AssetCollection({ data }: AssetCollectionProps) {
{data.youtubeRepurpose.map((video, i) => (
<motion.div
key={video.title}
className="min-w-[280px] rounded-2xl border border-slate-100 bg-white shadow-sm p-5 shrink-0"
className="min-w-[280px] rounded-2xl border border-slate-100 bg-white shadow-sm p-5 shrink-0 cursor-pointer hover:shadow-[3px_4px_12px_rgba(0,0,0,0.06)] hover:border-[#D5CDF5] transition-all"
onClick={() => setSelectedAsset({ kind: 'youtube', data: video })}
initial={{ opacity: 0, x: 20 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.4, delay: i * 0.1 }}
>
<div className="flex items-start gap-2 mb-3">
<Youtube size={18} className="text-[#D4889A] shrink-0 mt-1" />
<YoutubeFilled size={18} className="text-[#D4889A] shrink-0 mt-0.5" />
<h4 className="font-semibold text-sm text-[#0A1128]">{video.title}</h4>
</div>
<div className="flex items-center gap-2 mb-3">
@@ -162,7 +170,7 @@ export default function AssetCollection({ data }: AssetCollectionProps) {
<span
className={`rounded-full px-3 py-1 text-xs font-medium ${
video.type === 'Short'
? 'bg-purple-50 text-purple-700'
? 'bg-[#F3F0FF] text-[#4A3A7C]'
: 'bg-[#EFF0FF] text-[#3A3F7C]'
}`}
>
@@ -176,7 +184,7 @@ export default function AssetCollection({ data }: AssetCollectionProps) {
{video.repurposeAs.map((suggestion, j) => (
<span
key={j}
className="rounded-full bg-purple-50 text-purple-700 text-xs px-2 py-1"
className="rounded-full bg-[#F3F0FF] text-[#4A3A7C] text-xs px-2 py-1"
>
{suggestion}
</span>
@@ -187,6 +195,10 @@ export default function AssetCollection({ data }: AssetCollectionProps) {
</div>
</div>
)}
<AssetDetailModal
asset={selectedAsset}
onClose={() => setSelectedAsset(null)}
/>
</SectionWrapper>
);
}