월드컵 서비스 종료 + 응원가 MLS 확장

- 리그 탭에서 월드컵 제거, ?league=wc 는 KBO 강등, 기본 리그 kbo·mlb·mls
- index.html·OG 기본 타이틀에서 월드컵 문구 제거, 월드컵 특설 정적
  플레이리스트 제거
- 응원가 MLS 포함: 라인업 소스 없는 리그는 윈도우 진입 즉시 생성,
  스타일은 soccer 앤섬 변형, 커버 로고는 Match flag(ESPN PNG) 재사용
- MLB 도 한국 팬 표기 지시 적용, 전날 활약 조회는 kbo/mlb 만

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
JinwooKimandClaude Fable 5 committed 2026-08-25 10:47:49 +09:00
1 parent abcdf42aeb
commit 6770543318
9 files changed
+71 -58

No files matched your search

-1
View File
@@ -133,7 +133,6 @@ export default function Hero({
function LeagueTabs({ lang, current }: { lang: Lang; current: League }) {
const navigate = useNavigate();
const tabs: { key: League; label: string }[] = [
{ key: "wc", label: lang === "en" ? "World Cup" : "월드컵" },
{ key: "kbo", label: "KBO" },
{ key: "mlb", label: "MLB" },
{ key: "mls", label: "MLS" },
+2 -2
View File
@@ -172,7 +172,7 @@ export default function MatchupHUD({ match, lang = "ko" }: { match: Match; lang?
<div className="mt-5 grid grid-cols-[1fr_auto_1fr] items-center gap-3">
<div className="flex flex-col items-center gap-2.5">
<TeamFlag team={left} className={flagCls} />
{isBaseball && (
{isClub && (
<CheerSongButton matchId={match.matchId} teamCode={left.code} lang={lang} />
)}
</div>
@@ -195,7 +195,7 @@ export default function MatchupHUD({ match, lang = "ko" }: { match: Match; lang?
</div>
<div className="flex flex-col items-center gap-2.5">
<TeamFlag team={right} className={flagCls} />
{isBaseball && (
{isClub && (
<CheerSongButton matchId={match.matchId} teamCode={right.code} lang={lang} />
)}
</div>
+2 -17
View File
@@ -14,23 +14,8 @@ export type Track = {
shareText?: string;
};
// 경로별 플레이리스트 — 키가 표시할 경로, 값이 해당 경로의 트랙 목록
// VISIBLE_PATHS는 이 맵의 키에서 자동 생성됩니다.
export const PATH_PLAYLISTS: Record<string, Track[]> = {
"/match/A_MEX_KOR_20260619": [
{ title: "El Tri vs 붉은 악마", artist: "aio2o", src: "/audio/Mexico vs Korea 2026.mp3", cover: "/thumbnail/Mexico vs Korea 2026.webp" },
{ title: "Red Wave: 멕시코를 넘어", artist: "aio2o", src: "/audio/Red Wave 2026.mp3", cover: "/thumbnail/Red Wave 2026.webp" },
{ title: "붉은 물결", artist: "aio2o", src: "/audio/붉은 물결.mp3", cover: "/thumbnail/붉은 물결.webp" },
{ title: "Triple Pick, We Believe", artist: "aio2o", src: "/audio/Triple Pick, We Believe.mp3", cover: "/thumbnail/Triple Pick, We Believe.webp" },
],
"/match/A_RSA_KOR_20260625": [
{ title: "KOR vs RSA 응원가 #1", artist: "aio2o", src: "/audio/Korea vs South Africa_ TAEGEUK FIRE_Catching.mp3", cover: "/thumbnail/kor_rsa1.webp" },
{ title: "KOR vs RSA 응원가 #2", artist: "aio2o", src: "/audio/Korea vs South Africa_ TAEGEUK FIRE_Emotional.mp3", cover: "/thumbnail/kor_rsa2.webp" },
{ title: "KOR vs RSA 응원가 #3", artist: "aio2o", src: "/audio/Korea vs South Africa_ TAEGEUK FIRE_Energetic.mp3", cover: "/thumbnail/kor_rsa3.webp" },
{ title: "붉은 물결", artist: "aio2o", src: "/audio/붉은 물결.mp3", cover: "/thumbnail/붉은 물결.webp" },
{ title: "Triple Pick, We Believe", artist: "aio2o", src: "/audio/Triple Pick, We Believe.mp3", cover: "/thumbnail/Triple Pick, We Believe.webp" },
],
};
// 경로별 정적 플레이리스트 — 월드컵 종료로 비움 (구조는 특설 대비 유지)
export const PATH_PLAYLISTS: Record<string, Track[]> = {};
// 두산 베어스 응원가 — 특정 경기가 아니라 두산(OB) 전 경기 공통 적용
const DOOSAN_TRACKS: Track[] = [
+2 -3
View File
@@ -8,10 +8,9 @@ export const DEFAULT_LEAGUE: League = "kbo";
export function useLeague(): [League, (l: League) => void] {
const [params, setParams] = useSearchParams();
const raw = params.get("league");
// 월드컵(wc)은 서비스 종료 — 쿼리로 들어와도 KBO 로 강등
const league: League =
raw === "wc" || raw === "kbo" || raw === "mlb" || raw === "mls"
? raw
: DEFAULT_LEAGUE;
raw === "kbo" || raw === "mlb" || raw === "mls" ? raw : DEFAULT_LEAGUE;
const setLeague = (l: League) => {
const next = new URLSearchParams(params);
next.set("league", l);