남아공전 투표 페이지에 마스코트 추가

This commit is contained in:
JinwooKim committed 2026-06-24 14:02:45 +09:00
1 parent 3b5f9458c4
commit beaf65ef09
17 files changed
+436 -9

No files matched your search

+12 -1
View File
@@ -3,6 +3,7 @@ import { kickoffDisplay } from "@/lib/format";
import { type Lang, dict, teamShort } from "@/lib/i18n";
import BallIcon from "./BallIcon";
import TeamFlag from "./TeamFlag";
import WaveStrip from "./WaveStrip";
export default function MatchupHUD({ match, lang = "ko" }: { match: Match; lang?: Lang }) {
const t = dict(lang);
@@ -14,13 +15,23 @@ export default function MatchupHUD({ match, lang = "ko" }: { match: Match; lang?
const right = flip ? match.teamA : match.teamB;
const leftScore = flip ? match.result?.scoreB : match.result?.scoreA;
const rightScore = flip ? match.result?.scoreA : match.result?.scoreB;
// 마스코트(파도타기 등)는 한국-남아공 경기에서만 노출.
const codes = [match.teamA.code, match.teamB.code];
const isKorRsa = codes.includes("KOR") && codes.includes("RSA");
return (
<section className="mt-6">
{/* 대결 카드 (녹색 글로우 보더) */}
<div
className="rounded-3xl border-2 border-[var(--green)] bg-[#171b21] p-5"
className="relative rounded-3xl border-2 border-[var(--green)] bg-[#171b21] p-5"
style={{ boxShadow: "0 0 28px rgba(74,255,160,0.35), inset 0 0 24px rgba(74,255,160,0.06)" }}
>
{/* 박스 오른쪽 상단 파도타기 (응원 5마리) — 한국-남아공전 전용 */}
{isKorRsa && (
<div className="absolute right-2 top-2 z-10">
<WaveStrip />
</div>
)}
{/* 헤더: 브랜드 아이콘 + 팀명 + 일시 */}
<div className="flex items-center gap-3">
<BallIcon className="h-14 w-14 shrink-0" />