27 lines
1.4 KiB
TypeScript
27 lines
1.4 KiB
TypeScript
/** 채널명 부분 일치로 뱃지 톤 결정 (DEMO `channelColorMap`과 동등한 역할, FE 토큰 위주) */
|
|
export function contentStrategyChannelBadgeClass(channel: string): string {
|
|
const c = channel.toLowerCase();
|
|
if (c.includes("youtube")) {
|
|
return "bg-[var(--color-status-critical-bg)] text-[var(--color-status-critical-text)] border border-[var(--color-status-critical-border)]";
|
|
}
|
|
if (c.includes("instagram")) {
|
|
return "bg-[var(--color-marketing-blush)]/40 text-navy-800 border border-neutral-30";
|
|
}
|
|
if (c.includes("facebook")) {
|
|
return "bg-[var(--color-status-info-bg)] text-[var(--color-status-info-text)] border border-[var(--color-status-info-border)]";
|
|
}
|
|
if (c.includes("blog") || c.includes("블로그") || c.includes("네이버")) {
|
|
return "bg-[var(--color-status-good-bg)] text-[var(--color-status-good-text)] border border-[var(--color-status-good-border)]";
|
|
}
|
|
if (c.includes("tiktok")) {
|
|
return "bg-lavender-100 text-violet-700 border border-lavender-300";
|
|
}
|
|
if (c.includes("카카오") || c.includes("kakao")) {
|
|
return "bg-[var(--color-status-warning-bg)] text-[var(--color-status-warning-text)] border border-[var(--color-status-warning-border)]";
|
|
}
|
|
if (c.includes("홈페이지") || c.includes("website")) {
|
|
return "bg-neutral-10 text-neutral-80 border border-neutral-20";
|
|
}
|
|
return "bg-neutral-10 text-neutral-70 border border-neutral-20";
|
|
}
|