전체일정 스코어 조정, utc 시간 -> kst 변경
This commit is contained in:
1 parent
7185cfbb72
commit
8a4a23b0cb
9 files changed
+71
-35
No files matched your search
@@ -62,11 +62,13 @@ export default function Arena({
|
||||
const disabled = finished || !match.votingOpen;
|
||||
const ctaLabel = finished
|
||||
? t.ctaResult
|
||||
: match.phase === "scheduled" && !match.votingOpen
|
||||
? t.ctaOpens(kickoffDisplay(match.opensAt, lang))
|
||||
: match.phase === "live"
|
||||
? t.ctaLive
|
||||
: match.phase === "locked"
|
||||
? t.ctaLocked
|
||||
: t.ctaBeat;
|
||||
: match.phase === "scheduled" && !match.votingOpen
|
||||
? t.ctaOpens(kickoffDisplay(match.opensAt, lang))
|
||||
: t.ctaBeat;
|
||||
|
||||
const matched = useMemo(() => {
|
||||
if (!outcome) return [];
|
||||
|
||||
@@ -10,7 +10,8 @@ const STROKE = "#94FBE0"; // 일정 텍스트·선택 아웃라인 스트로크
|
||||
const PHASE_CLS: Record<MatchPhase, string> = {
|
||||
open: "border-[#94FBE0] text-[#94FBE0]",
|
||||
scheduled: "border-[var(--line-d)] text-[var(--ink-muted)]",
|
||||
locked: "border-[var(--line-d)] text-[var(--ink-muted)]",
|
||||
locked: "border-[var(--line-d)] text-white/45", // 투표 종료 — 비활성 톤
|
||||
live: "border-[#FF5B5B] text-[#FF5B5B]", // 경기중 — 라이브 강조
|
||||
finished: "border-white/15 text-white/55",
|
||||
};
|
||||
|
||||
@@ -102,7 +103,16 @@ function MatchCard({ match, lang }: { match: Match; lang: Lang }) {
|
||||
<TeamFlag team={match.teamA} className="h-6 w-9 shrink-0" />
|
||||
<span className="truncate text-[15px] font-extrabold">{teamShort(match.teamA, lang)}</span>
|
||||
</div>
|
||||
<span className="font-impact text-[18px] italic text-[#94FBE0]">VS</span>
|
||||
{match.result ? (
|
||||
// 종료된 경기 — 최종 스코어 (예: 3 : 2)
|
||||
<span className="whitespace-nowrap font-mono text-[18px] font-extrabold tabular-nums text-white">
|
||||
{match.result.scoreA}
|
||||
<span className="px-1.5 text-white/40">:</span>
|
||||
{match.result.scoreB}
|
||||
</span>
|
||||
) : (
|
||||
<span className="font-impact text-[18px] italic text-[#94FBE0]">VS</span>
|
||||
)}
|
||||
<div className="flex items-center justify-end gap-2">
|
||||
<span className="truncate text-right text-[15px] font-extrabold">{teamShort(match.teamB, lang)}</span>
|
||||
<TeamFlag team={match.teamB} className="h-6 w-9 shrink-0" />
|
||||
|
||||
@@ -47,7 +47,7 @@ type Dict = {
|
||||
prizeLine2: string;
|
||||
schedTitle: string;
|
||||
schedGuide: string;
|
||||
phase: { open: string; scheduled: string; locked: string; finished: string };
|
||||
phase: { open: string; scheduled: string; locked: string; live: string; finished: string };
|
||||
aiPicks: string;
|
||||
draw: string;
|
||||
joined: (n: string) => string;
|
||||
@@ -61,6 +61,7 @@ type Dict = {
|
||||
ctaBeat: string;
|
||||
ctaResult: string;
|
||||
ctaLocked: string;
|
||||
ctaLive: string;
|
||||
ctaOpens: (d: string) => string;
|
||||
emailPh: string;
|
||||
notify: string;
|
||||
@@ -104,7 +105,7 @@ export const DICT: Record<Lang, Dict> = {
|
||||
prizeLine2: "최종 우승자에게 100만원 상금",
|
||||
schedTitle: "전체 일정",
|
||||
schedGuide: "투표하고 싶은 경기를 선택해주세요",
|
||||
phase: { open: "투표 중", scheduled: "오픈 예정", locked: "투표 마감", finished: "종료" },
|
||||
phase: { open: "투표 중", scheduled: "오픈 예정", locked: "투표 종료", live: "경기중", finished: "종료" },
|
||||
aiPicks: "AI 픽",
|
||||
draw: "무",
|
||||
joined: (n) => `${n}명 참여`,
|
||||
@@ -117,7 +118,8 @@ export const DICT: Record<Lang, Dict> = {
|
||||
drawOdds: "무승부 가능성",
|
||||
ctaBeat: "AI보다 잘 맞히기",
|
||||
ctaResult: "결과 보기",
|
||||
ctaLocked: "예측 마감 (경기 시작)",
|
||||
ctaLocked: "투표 종료",
|
||||
ctaLive: "경기 진행 중",
|
||||
ctaOpens: (d) => `투표 오픈 ${d}`,
|
||||
emailPh: "이메일 (결과·다음 경기 알림)",
|
||||
notify: "경기 결과가 나오면 알려주세요. 다음 경기·100만원 챌린지 소식도 받겠습니다.",
|
||||
@@ -161,7 +163,7 @@ export const DICT: Record<Lang, Dict> = {
|
||||
prizeLine2: "overall winner takes ₩1,000,000",
|
||||
schedTitle: "All Matches",
|
||||
schedGuide: "Pick a match to predict",
|
||||
phase: { open: "Voting", scheduled: "Opens soon", locked: "Closed", finished: "Ended" },
|
||||
phase: { open: "Voting", scheduled: "Opens soon", locked: "Closed", live: "Live", finished: "Ended" },
|
||||
aiPicks: "AI picks",
|
||||
draw: "Draw",
|
||||
joined: (n) => `${n} joined`,
|
||||
@@ -174,7 +176,8 @@ export const DICT: Record<Lang, Dict> = {
|
||||
drawOdds: "Draw odds",
|
||||
ctaBeat: "Beat the AI",
|
||||
ctaResult: "View result",
|
||||
ctaLocked: "Closed (kickoff)",
|
||||
ctaLocked: "Voting closed",
|
||||
ctaLive: "Match in progress",
|
||||
ctaOpens: (d) => `Opens ${d}`,
|
||||
emailPh: "Email (result & next-match alerts)",
|
||||
notify: "Notify me when the result is out. I'll also get next-match & ₩1,000,000 challenge news.",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
export type Outcome = "TEAM_A_WIN" | "DRAW" | "TEAM_B_WIN";
|
||||
export type ModelName = "GPT" | "Claude" | "Gemini";
|
||||
export type MatchPhase = "scheduled" | "open" | "locked" | "finished";
|
||||
export type MatchPhase = "scheduled" | "open" | "locked" | "live" | "finished";
|
||||
|
||||
export interface Team {
|
||||
name: string;
|
||||
|
||||
Reference in new issue
Block a user