fix: 플랜 페이지 전체 섹션 투명 현상 완전 해결 — initial opacity:0 전수 제거
- PlanHeader: motion.div/h1/p의 initial opacity:0 → plain HTML로 교체
(배경 blob 애니메이션은 opacity 무관하여 유지)
- RepurposingProposal: 카드 motion.div → plain div, 확장 accordion도 plain div
- ChannelStrategy, ContentStrategy, AssetCollection, PlanCTA,
BrandingGuide, WorkflowTracker, StrategyAdjustmentSection:
initial={{ opacity: 0, ... }} 라인 전수 제거
- 이 환경의 framer-motion이 animate prop 완료 실패 → opacity:0에서 멈춤
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
eaf215ea6d
commit
6b3b950ad0
9 files changed
+21
-87
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import { useState } from 'react';
|
||||
import { motion } from 'motion/react';
|
||||
import {
|
||||
YoutubeFilled,
|
||||
InstagramFilled,
|
||||
@@ -63,12 +62,9 @@ export default function RepurposingProposal({ proposals }: RepurposingProposalPr
|
||||
const isExpanded = expandedIdx === idx;
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
<div
|
||||
key={item.sourceVideo.title}
|
||||
className="rounded-2xl border border-slate-100 bg-white shadow-[3px_4px_12px_rgba(0,0,0,0.06)] overflow-hidden"
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.4, delay: idx * 0.08 }}
|
||||
>
|
||||
{/* Card Header — click to expand */}
|
||||
<button
|
||||
@@ -120,26 +116,17 @@ export default function RepurposingProposal({ proposals }: RepurposingProposalPr
|
||||
|
||||
{/* Expanded: Repurpose outputs */}
|
||||
{isExpanded && (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, height: 0 }}
|
||||
animate={{ opacity: 1, height: 'auto' }}
|
||||
exit={{ opacity: 0, height: 0 }}
|
||||
transition={{ duration: 0.2 }}
|
||||
className="border-t border-slate-100"
|
||||
>
|
||||
<div className="border-t border-slate-100">
|
||||
<div className="px-6 py-4">
|
||||
<div className="flex items-center gap-2 mb-4">
|
||||
<BoltFilled size={14} className="text-[#6C5CE7]" />
|
||||
<p className="text-xs font-semibold text-slate-500 uppercase tracking-widest">REPURPOSE AS</p>
|
||||
</div>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||
{item.outputs.map((output, oIdx) => (
|
||||
<motion.div
|
||||
{item.outputs.map((output) => (
|
||||
<div
|
||||
key={output.format}
|
||||
className="flex items-start gap-3 p-4 rounded-xl bg-slate-50 border border-slate-100"
|
||||
initial={{ opacity: 0, x: -8 }}
|
||||
animate={{ opacity: 1, x: 0 }}
|
||||
transition={{ delay: oIdx * 0.06 }}
|
||||
>
|
||||
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-[#6C5CE7]/10 to-[#4F1DA1]/10 flex items-center justify-center shrink-0">
|
||||
<ChannelIcon channel={output.channel} size={16} />
|
||||
@@ -149,13 +136,13 @@ export default function RepurposingProposal({ proposals }: RepurposingProposalPr
|
||||
<p className="text-xs text-[#6C5CE7] font-medium mb-1">{output.channel}</p>
|
||||
<p className="text-xs text-slate-500 leading-relaxed">{output.description}</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
)}
|
||||
</motion.div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user