브랜드 분석, 콘텐츠 완료 페이지 수정 .
This commit is contained in:
1 parent
b89cf027af
commit
e448d8189d
12 files changed
+1456
-689
No files matched your search
@@ -9,105 +9,13 @@ interface AnalysisResultSectionProps {
|
||||
data: CrawlingResponse;
|
||||
}
|
||||
|
||||
const SparklesIcon = ({ className = '' }: { className?: string }) => (
|
||||
<svg className={className} viewBox="0 0 24 24" fill="currentColor" aria-hidden>
|
||||
<path d="M12 2l2.4 6.8L22 12l-7.6 3.2L12 22l-2.4-6.8L2 12l7.6-3.2L12 2z" />
|
||||
</svg>
|
||||
);
|
||||
|
||||
const MapPinIcon = () => (
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
||||
<path d="M12 22s7-6.1 7-12a7 7 0 10-14 0c0 5.9 7 12 7 12z" />
|
||||
<circle cx="12" cy="10" r="3" />
|
||||
</svg>
|
||||
);
|
||||
|
||||
|
||||
// 범용 애니메이션 아이템 컴포넌트
|
||||
interface AnimatedItemProps {
|
||||
children: React.ReactNode;
|
||||
index: number;
|
||||
baseDelay?: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const AnimatedItem: React.FC<AnimatedItemProps> = ({ children, index, baseDelay = 0, className = '' }) => {
|
||||
const [isVisible, setIsVisible] = useState(false);
|
||||
const delay = baseDelay + index * 150;
|
||||
|
||||
useEffect(() => {
|
||||
const timer = setTimeout(() => {
|
||||
setIsVisible(true);
|
||||
}, delay);
|
||||
return () => clearTimeout(timer);
|
||||
}, [delay]);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`transition-all duration-500 ${
|
||||
isVisible ? 'opacity-100 translate-y-0' : 'opacity-0 -translate-y-4'
|
||||
} ${className}`}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
// 애니메이션 USP 아이템 컴포넌트
|
||||
interface AnimatedUSPItemProps {
|
||||
usp: SellingPoint;
|
||||
index: number;
|
||||
isTop?: boolean;
|
||||
}
|
||||
|
||||
const AnimatedUSPItem: React.FC<AnimatedUSPItemProps> = ({ usp, index, isTop = false }) => {
|
||||
const [isVisible, setIsVisible] = useState(false);
|
||||
const delay = index * 150;
|
||||
|
||||
useEffect(() => {
|
||||
const timer = setTimeout(() => {
|
||||
setIsVisible(true);
|
||||
}, delay);
|
||||
return () => clearTimeout(timer);
|
||||
}, [delay]);
|
||||
|
||||
if (isTop) {
|
||||
return (
|
||||
<div
|
||||
className={`bi-usp-top transition-all duration-500 ${
|
||||
isVisible ? 'opacity-100 translate-y-0' : 'opacity-0 -translate-y-4'
|
||||
}`}
|
||||
>
|
||||
<div className="flex items-center gap-3 mb-3">
|
||||
<span className="bi-usp-category bi-usp-category-accent">{usp.english_category}</span>
|
||||
<span className="bi-usp-badge">TOP</span>
|
||||
</div>
|
||||
<div className="bi-usp-korean-category">{usp.korean_category}</div>
|
||||
<div className="bi-usp-description">{usp.description}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`bi-usp-item transition-all duration-500 ${
|
||||
isVisible ? 'opacity-100 translate-y-0' : 'opacity-0 -translate-y-4'
|
||||
}`}
|
||||
>
|
||||
<div className="bi-usp-english-category mb-2">{usp.english_category}</div>
|
||||
<div className="bi-usp-korean-category">{usp.korean_category}</div>
|
||||
<div className="bi-usp-description">{usp.description}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
// 레이더 차트 컴포넌트
|
||||
interface RadarChartProps {
|
||||
data: SellingPoint[];
|
||||
size?: number;
|
||||
}
|
||||
|
||||
const RadarChart: React.FC<RadarChartProps> = ({ data, size = 280 }) => {
|
||||
const RadarChart: React.FC<RadarChartProps> = ({ data, size = 360 }) => {
|
||||
const [animatedScores, setAnimatedScores] = useState<number[]>(data.map(() => 0));
|
||||
const [isAnimating, setIsAnimating] = useState(true);
|
||||
|
||||
@@ -134,7 +42,7 @@ const RadarChart: React.FC<RadarChartProps> = ({ data, size = 280 }) => {
|
||||
requestAnimationFrame(animate);
|
||||
}, [data]);
|
||||
|
||||
const padding = 60;
|
||||
const padding = 80;
|
||||
const center = size / 2 + padding;
|
||||
const maxRadius = size / 2 - 20;
|
||||
const levels = 5;
|
||||
@@ -149,15 +57,6 @@ const RadarChart: React.FC<RadarChartProps> = ({ data, size = 280 }) => {
|
||||
};
|
||||
};
|
||||
|
||||
const getLabelPosition = (index: number) => {
|
||||
const angle = angleStep * index - Math.PI / 2;
|
||||
const radius = maxRadius + 25;
|
||||
return {
|
||||
x: center + radius * Math.cos(angle),
|
||||
y: center + radius * Math.sin(angle),
|
||||
};
|
||||
};
|
||||
|
||||
const dataPoints = animatedScores.map((score, i) => getPoint(i, score));
|
||||
const dataPath = dataPoints.map((p, i) => (i === 0 ? `M ${p.x} ${p.y}` : `L ${p.x} ${p.y}`)).join(' ') + ' Z';
|
||||
|
||||
@@ -182,8 +81,17 @@ const RadarChart: React.FC<RadarChartProps> = ({ data, size = 280 }) => {
|
||||
|
||||
const svgSize = size + padding * 2;
|
||||
|
||||
// 순위별로 정렬하여 라벨 위치에 순위 번호 배치
|
||||
const sortedIndices = [...data]
|
||||
.map((item, i) => ({ index: i, score: item.score }))
|
||||
.sort((a, b) => b.score - a.score)
|
||||
.map((item, rank) => ({ ...item, rank: rank + 1 }));
|
||||
|
||||
const rankMap = new Map<number, number>();
|
||||
sortedIndices.forEach(item => rankMap.set(item.index, item.rank));
|
||||
|
||||
return (
|
||||
<div className="relative flex justify-center items-center" style={{ overflow: 'visible' }}>
|
||||
<div className="bi2-radar-container">
|
||||
<svg
|
||||
width={svgSize}
|
||||
height={svgSize}
|
||||
@@ -195,7 +103,7 @@ const RadarChart: React.FC<RadarChartProps> = ({ data, size = 280 }) => {
|
||||
key={`level-${i}`}
|
||||
d={path}
|
||||
fill="none"
|
||||
stroke="rgba(255,255,255,0.1)"
|
||||
stroke="rgba(255,255,255,0.2)"
|
||||
strokeWidth="1"
|
||||
/>
|
||||
))}
|
||||
@@ -205,7 +113,7 @@ const RadarChart: React.FC<RadarChartProps> = ({ data, size = 280 }) => {
|
||||
key={`axis-${i}`}
|
||||
d={path}
|
||||
fill="none"
|
||||
stroke="rgba(255,255,255,0.1)"
|
||||
stroke="rgba(255,255,255,0.2)"
|
||||
strokeWidth="1"
|
||||
/>
|
||||
))}
|
||||
@@ -213,7 +121,7 @@ const RadarChart: React.FC<RadarChartProps> = ({ data, size = 280 }) => {
|
||||
<path
|
||||
d={dataPath}
|
||||
fill="rgba(45, 212, 191, 0.2)"
|
||||
stroke="#2dd4bf"
|
||||
stroke="#2DD4BF"
|
||||
strokeWidth="2"
|
||||
style={{
|
||||
transition: isAnimating ? 'none' : 'd 0.3s ease-out',
|
||||
@@ -226,48 +134,62 @@ const RadarChart: React.FC<RadarChartProps> = ({ data, size = 280 }) => {
|
||||
cx={point.x}
|
||||
cy={point.y}
|
||||
r="4"
|
||||
fill="#2dd4bf"
|
||||
stroke="#1a1a2e"
|
||||
fill="#2DD4BF"
|
||||
stroke="#1A1A2E"
|
||||
strokeWidth="2"
|
||||
/>
|
||||
))}
|
||||
|
||||
{data.map((item, i) => {
|
||||
const pos = getLabelPosition(i);
|
||||
const isLeft = pos.x < center - 10;
|
||||
const isRight = pos.x > center + 10;
|
||||
const isTop = pos.y < center - 10;
|
||||
const isBottom = pos.y > center + 10;
|
||||
|
||||
let textAnchor: 'start' | 'middle' | 'end' = 'middle';
|
||||
let dy = 0;
|
||||
|
||||
if (isLeft) textAnchor = 'end';
|
||||
else if (isRight) textAnchor = 'start';
|
||||
|
||||
if (isTop && !isLeft && !isRight) dy = -8;
|
||||
else if (isBottom && !isLeft && !isRight) dy = 5;
|
||||
const angle = angleStep * i - Math.PI / 2;
|
||||
const labelRadius = maxRadius + 40;
|
||||
const pos = {
|
||||
x: center + labelRadius * Math.cos(angle),
|
||||
y: center + labelRadius * Math.sin(angle),
|
||||
};
|
||||
const rank = rankMap.get(i) || i + 1;
|
||||
const isTopThree = rank <= 3;
|
||||
|
||||
return (
|
||||
<g key={`label-${i}`}>
|
||||
<text
|
||||
x={pos.x}
|
||||
y={pos.y}
|
||||
dy={dy}
|
||||
textAnchor={textAnchor}
|
||||
className="bi-chart-label"
|
||||
>
|
||||
{item.korean_category}
|
||||
</text>
|
||||
<text
|
||||
x={pos.x}
|
||||
y={pos.y}
|
||||
dy={dy + 16}
|
||||
textAnchor={textAnchor}
|
||||
className="bi-chart-sublabel"
|
||||
>
|
||||
{item.english_category}
|
||||
</text>
|
||||
<g transform={`translate(${pos.x}, ${pos.y})`}>
|
||||
<rect
|
||||
x="-10"
|
||||
y="-10"
|
||||
width="20"
|
||||
height="20"
|
||||
rx="4"
|
||||
fill={isTopThree ? '#94FBE0' : '#206764'}
|
||||
/>
|
||||
<text
|
||||
x="0"
|
||||
y="0"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
style={{
|
||||
fontSize: '12px',
|
||||
fontWeight: 600,
|
||||
fill: isTopThree ? '#002224' : '#94FBE0',
|
||||
fontFamily: 'Pretendard',
|
||||
}}
|
||||
>
|
||||
{rank}
|
||||
</text>
|
||||
<text
|
||||
x="16"
|
||||
y="0"
|
||||
textAnchor="start"
|
||||
dominantBaseline="central"
|
||||
style={{
|
||||
fontSize: '14px',
|
||||
fontWeight: 400,
|
||||
fill: '#E5F1F2',
|
||||
fontFamily: 'Pretendard',
|
||||
}}
|
||||
>
|
||||
{item.korean_category}
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
);
|
||||
})}
|
||||
@@ -288,6 +210,9 @@ const AnalysisResultSection: React.FC<AnalysisResultSectionProps> = ({ onBack, o
|
||||
const sellingPoints = marketing_analysis?.selling_points || [];
|
||||
const targetKeywords = marketing_analysis?.target_keywords || [];
|
||||
|
||||
// 셀링 포인트를 score 내림차순으로 정렬
|
||||
const sortedSellingPoints = [...sellingPoints].sort((a, b) => b.score - a.score);
|
||||
|
||||
useEffect(() => {
|
||||
const updateButtonPosition = () => {
|
||||
if (containerRef.current) {
|
||||
@@ -308,15 +233,11 @@ const AnalysisResultSection: React.FC<AnalysisResultSectionProps> = ({ onBack, o
|
||||
};
|
||||
}, []);
|
||||
|
||||
const topUSP = sellingPoints.length > 0
|
||||
? [...sellingPoints].sort((a, b) => b.score - a.score)[0]
|
||||
: null;
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-brand-bg text-brand-text pb-24 selection:bg-brand-accent/30 font-sans">
|
||||
<div className="bi2-page">
|
||||
{/* Header */}
|
||||
<div className="asset-header">
|
||||
<button onClick={onBack} className="btn-back-new">
|
||||
<div className="bi2-header">
|
||||
<button onClick={onBack} className="bi2-back-btn">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
||||
<path d="M15 18l-6-6 6-6" />
|
||||
</svg>
|
||||
@@ -324,158 +245,124 @@ const AnalysisResultSection: React.FC<AnalysisResultSectionProps> = ({ onBack, o
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Page Header */}
|
||||
<div className="bi-page-header">
|
||||
<div className="bi-page-icon">
|
||||
<img src="/assets/images/star-icon.svg" alt="Star" className="bi-star-icon" />
|
||||
{/* Page Title */}
|
||||
<div className="bi2-page-title-section">
|
||||
<div className="bi2-title-icon">
|
||||
<img src="/assets/images/star-icon.svg" alt="" className="bi2-star-icon" />
|
||||
</div>
|
||||
<div className="bi2-title-text">
|
||||
<h1 className="bi2-main-title">{t('analysis.pageTitle')}</h1>
|
||||
<p className="bi2-subtitle">
|
||||
{t('analysis.pageDescHighlight')}{t('analysis.pageDescBefore')}{processed_info?.customer_name || t('analysis.defaultBrandName')}{t('analysis.pageDescAfter')}
|
||||
</p>
|
||||
</div>
|
||||
<h1 className="bi-page-title">{t('analysis.pageTitle')}</h1>
|
||||
<p className="bi-page-desc">
|
||||
<span className="highlight">{t('analysis.pageDescHighlight')}</span>{t('analysis.pageDescBefore')}{processed_info?.customer_name || t('analysis.defaultBrandName')}{t('analysis.pageDescAfter')}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Main Grid */}
|
||||
<div ref={containerRef} className="max-w-[1440px] mx-auto px-4 md:px-8 grid grid-cols-1 lg:grid-cols-2 gap-8">
|
||||
{/* 왼쪽 컬럼 */}
|
||||
<div className="space-y-6">
|
||||
{/* 브랜드 정체성 카드 */}
|
||||
<div className="bi-card relative overflow-hidden">
|
||||
<div className="absolute top-0 left-0 w-1.5 h-full bg-gradient-to-b from-[#2dd4bf] to-[#AE72F9]"></div>
|
||||
{/* Main Content Container */}
|
||||
<div ref={containerRef} className="bi2-main-container">
|
||||
{/* 매장명 & 주소 */}
|
||||
<div className="bi2-store-header">
|
||||
<h2 className="bi2-store-name">{processed_info?.customer_name || t('analysis.brandNameFallback')}</h2>
|
||||
<p className="bi2-store-address">{processed_info?.detail_region_info || t('analysis.addressFallback')}</p>
|
||||
</div>
|
||||
|
||||
<div className="bi-section-label mb-4">
|
||||
{t('analysis.brandIdentity')}
|
||||
</div>
|
||||
|
||||
<h2 className="bi-brand-name">{processed_info?.customer_name || t('analysis.brandNameFallback')}</h2>
|
||||
|
||||
<div className="bi-location mb-6">
|
||||
<MapPinIcon />
|
||||
<div>
|
||||
<p>{processed_info?.detail_region_info || t('analysis.addressFallback')}</p>
|
||||
<p style={{ opacity: 0.7, marginTop: '4px' }}>{processed_info?.region || ''}</p>
|
||||
{/* 브랜드 정체성 */}
|
||||
<div className="bi2-section">
|
||||
<h3 className="bi2-section-title">{t('analysis.brandIdentity')}</h3>
|
||||
<div className="bi2-identity-card">
|
||||
<div className="bi2-identity-top">
|
||||
<div className="bi2-identity-core">
|
||||
<span className="bi2-label-sm">{t('analysis.coreValue')}</span>
|
||||
<p className="bi2-core-value">{marketPositioning?.core_value || t('analysis.noInfo')}</p>
|
||||
</div>
|
||||
<p className="bi2-category-text">{t('analysis.categoryDefinition')} : {marketPositioning?.category_definition || t('analysis.noInfo')}</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-6 border-t border-white/5 pt-6">
|
||||
<AnimatedItem index={0} baseDelay={100}>
|
||||
<div className="bi-subsection-title">{t('analysis.locationAnalysis')}</div>
|
||||
<p className="bi-body-text">{brandIdentity?.location_feature_analysis || t('analysis.noInfo')}</p>
|
||||
</AnimatedItem>
|
||||
<AnimatedItem index={1} baseDelay={100}>
|
||||
<div className="bi-subsection-title">{t('analysis.conceptScalability')}</div>
|
||||
<p className="bi-body-text">{brandIdentity?.concept_scalability || t('analysis.noInfo')}</p>
|
||||
</AnimatedItem>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 시장 포지셔닝 카드 */}
|
||||
<div className="bi-card">
|
||||
<h3 className="bi-card-title">
|
||||
{t('analysis.marketPositioning')}
|
||||
</h3>
|
||||
|
||||
<div className="space-y-4">
|
||||
<AnimatedItem index={0} baseDelay={200}>
|
||||
<div className="bi-inner-box bi-inner-box-accent">
|
||||
<div className="bi-subsection-title">{t('analysis.coreValue')}</div>
|
||||
<div className="bi-value">{marketPositioning?.core_value || t('analysis.noInfo')}</div>
|
||||
</div>
|
||||
</AnimatedItem>
|
||||
<AnimatedItem index={1} baseDelay={200}>
|
||||
<div className="bi-inner-box">
|
||||
<div className="bi-subsection-title" style={{ color: '#6AB0B3' }}>{t('analysis.categoryDefinition')}</div>
|
||||
<div className="bi-value">{marketPositioning?.category_definition || t('analysis.noInfo')}</div>
|
||||
</div>
|
||||
</AnimatedItem>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 타겟 페르소나 카드 */}
|
||||
<div className="bi-card">
|
||||
<h3 className="bi-card-title">
|
||||
{t('analysis.targetPersona')}
|
||||
</h3>
|
||||
<div className="space-y-4">
|
||||
{targetPersonas.length === 0 && <p className="bi-body-text" style={{ color: '#6AB0B3' }}>{t('analysis.noInfo')}</p>}
|
||||
{targetPersonas.map((persona: TargetPersona, idx: number) => (
|
||||
<AnimatedItem key={idx} index={idx} baseDelay={300}>
|
||||
<div className="bi-inner-box">
|
||||
<div className="mb-4">
|
||||
<div className="bi-persona-name">{persona.persona}</div>
|
||||
<div className="bi-persona-age">{persona.age.min_age}~{persona.age.max_age}{t('analysis.ageSuffix')}</div>
|
||||
</div>
|
||||
|
||||
{persona.favor_target.length > 0 && (
|
||||
<div className="flex flex-wrap gap-2 mb-4">
|
||||
{persona.favor_target.map((favor: string, i: number) => (
|
||||
<span key={i} className="bi-tag">{favor}</span>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{persona.decision_trigger && (
|
||||
<p className="bi-persona-trigger">
|
||||
<strong>Trigger:</strong> {persona.decision_trigger}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</AnimatedItem>
|
||||
))}
|
||||
<div className="bi2-identity-divider"></div>
|
||||
<div className="bi2-identity-bottom">
|
||||
<div className="bi2-identity-col">
|
||||
<span className="bi2-label-sm">{t('analysis.locationAnalysis')}</span>
|
||||
<p className="bi2-body-text">{brandIdentity?.location_feature_analysis || t('analysis.noInfo')}</p>
|
||||
</div>
|
||||
<div className="bi2-identity-col">
|
||||
<span className="bi2-label-sm">{t('analysis.conceptScalability')}</span>
|
||||
<p className="bi2-body-text">{brandIdentity?.concept_scalability || t('analysis.noInfo')}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 오른쪽 컬럼 */}
|
||||
<div className="space-y-6">
|
||||
{/* 주요 셀링 포인트 카드 */}
|
||||
<div className="bi-card min-h-[500px] flex flex-col">
|
||||
<h3 className="bi-card-title mb-6">
|
||||
{t('analysis.sellingPoints')}
|
||||
</h3>
|
||||
|
||||
{/* 주요 셀링 포인트 */}
|
||||
<div className="bi2-section">
|
||||
<h3 className="bi2-section-title">{t('analysis.sellingPoints')}</h3>
|
||||
<div className="bi2-selling-card">
|
||||
{/* 레이더 차트 */}
|
||||
{sellingPoints.length > 0 && (
|
||||
<div className="mb-8">
|
||||
<RadarChart data={sellingPoints} size={280} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Top USP 하이라이트 */}
|
||||
{topUSP && (
|
||||
<AnimatedUSPItem
|
||||
usp={topUSP}
|
||||
index={0}
|
||||
isTop={true}
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* 나머지 USP 리스트 */}
|
||||
<div className="space-y-4 flex-1">
|
||||
{sellingPoints.length === 0 && <p className="bi-body-text" style={{ color: '#6AB0B3' }}>{t('analysis.noInfo')}</p>}
|
||||
{sellingPoints
|
||||
.filter((usp: SellingPoint) => usp.english_category !== topUSP?.english_category)
|
||||
.map((usp: SellingPoint, idx: number) => (
|
||||
<AnimatedUSPItem
|
||||
key={idx}
|
||||
usp={usp}
|
||||
index={idx + 1}
|
||||
isTop={false}
|
||||
/>
|
||||
))}
|
||||
<div className="bi2-selling-chart">
|
||||
{sellingPoints.length > 0 && (
|
||||
<RadarChart data={sellingPoints} size={360} />
|
||||
)}
|
||||
</div>
|
||||
{/* 셀링 포인트 리스트 */}
|
||||
<div className="bi2-selling-list">
|
||||
{sortedSellingPoints.map((sp, idx) => {
|
||||
const rank = idx + 1;
|
||||
const isTopThree = rank <= 3;
|
||||
return (
|
||||
<div key={idx} className="bi2-selling-item">
|
||||
<div className={`bi2-rank-badge ${isTopThree ? 'top' : ''}`}>
|
||||
{rank}
|
||||
</div>
|
||||
<div className="bi2-selling-item-text">
|
||||
<span className="bi2-selling-name">{sp.korean_category}</span>
|
||||
<span className="bi2-selling-desc">{sp.description}</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 추천 타겟 키워드 */}
|
||||
<div className="max-w-[1440px] mx-auto px-4 md:px-8 mt-10">
|
||||
<div className="bi-card">
|
||||
<h3 className="bi-card-title">{t('analysis.recommendedKeywords')}</h3>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
{targetKeywords.length === 0 && <span className="bi-body-text" style={{ color: '#6AB0B3' }}>{t('analysis.noInfo')}</span>}
|
||||
{/* 주요 고객 유형 */}
|
||||
<div className="bi2-section">
|
||||
<h3 className="bi2-section-title">{t('analysis.targetPersona')}</h3>
|
||||
<div className="bi2-persona-grid">
|
||||
{targetPersonas.map((persona: TargetPersona, idx: number) => (
|
||||
<div key={idx} className="bi2-persona-card">
|
||||
<div className="bi2-persona-header">
|
||||
<div className="bi2-persona-info">
|
||||
<span className="bi2-persona-name">{persona.persona}</span>
|
||||
<span className="bi2-persona-age">{persona.age.min_age}~{persona.age.max_age}{t('analysis.ageSuffix')}</span>
|
||||
</div>
|
||||
<p className="bi2-persona-desc">
|
||||
{persona.decision_trigger}
|
||||
</p>
|
||||
</div>
|
||||
<div className="bi2-persona-divider"></div>
|
||||
<div className="bi2-persona-detail grow">
|
||||
<span className="bi2-label-xs">{t('analysis.favorKeywords', { defaultValue: '선호 키워드' })}</span>
|
||||
<p className="bi2-persona-detail-text">
|
||||
{persona.favor_target.join('\n')}
|
||||
</p>
|
||||
</div>
|
||||
<div className="bi2-persona-divider"></div>
|
||||
<div className="bi2-persona-detail">
|
||||
<span className="bi2-label-xs">{t('analysis.decisionTrigger', { defaultValue: '예약 결정 포인트' })}</span>
|
||||
<p className="bi2-persona-detail-text">{persona.decision_trigger}</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 추천 타겟 키워드 */}
|
||||
<div className="bi2-section">
|
||||
<div className="bi2-keyword-header">
|
||||
<h3 className="bi2-section-title">{t('analysis.recommendedKeywords')}</h3>
|
||||
<p className="bi2-keyword-subtitle">{t('analysis.keywordHint', { defaultValue: '이런 키워드로 찾을 가능성이 높아요' })}</p>
|
||||
</div>
|
||||
<div className="bi2-keyword-tags">
|
||||
{targetKeywords.map((keyword: string, idx: number) => (
|
||||
<span key={idx} className="bi-tag-outline"># {keyword}</span>
|
||||
<span key={idx} className="bi2-keyword-pill">#{keyword}</span>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -490,7 +377,9 @@ const AnalysisResultSection: React.FC<AnalysisResultSectionProps> = ({ onBack, o
|
||||
onClick={onGenerate}
|
||||
className="pointer-events-auto bg-brand-purple hover:bg-brand-purpleHover text-white font-bold py-3 px-12 rounded-full shadow-2xl shadow-brand-purple/40 transform hover:scale-105 transition-all duration-300 flex items-center gap-2"
|
||||
>
|
||||
<SparklesIcon className="w-5 h-5" />
|
||||
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden className="w-5 h-5">
|
||||
<path d="M12 2l2.4 6.8L22 12l-7.6 3.2L12 22l-2.4-6.8L2 12l7.6-3.2L12 2z" />
|
||||
</svg>
|
||||
{t('analysis.generateContent')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user