i18n (KO/EN), square flags, score→outcome auto, copy & legal fixes
- E. 영문 페이지: lib/i18n.ts(KO/EN 사전) + ?lang 스위치(LangSwitch, AI Prediction Arena 우측, 화이트 활성) + 전 컴포넌트 i18n. World Cup 2026(영문 연도 후행), 영문 AI 근거/날짜/카운트다운 단위 - A. "글로벌 축구"→"2026 월드컵"(Hero 알약·meta), 영문은 World Cup 2026 - B. Crowd Pick 설명 문구 삭제 - C. 국기 찌그러짐 수정(이모지 cqh 비례, CZE 비율보존) + 라운드 제거→사각형 - D. 점수 선택 시 승/무/패 자동 선택(useEffect) - F. 인트로 카피 "가장 정확하게 예측한 … 100만원 상금" - MatchupHUD 상단 진행 바(roundLabel→Final) 삭제 - 푸터: "Not official" 모호 → FIFA·공식 월드컵 비제휴 명시(KO/EN) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
c66812d954
commit
a8de6c858d
16 files changed
+504
-199
No files matched your search
@@ -62,7 +62,6 @@ body {
|
||||
|
||||
.flag-img {
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--line-d);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type { Metadata, Viewport } from "next";
|
||||
import "./globals.css";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "TriplePick 2026 | AI 글로벌 축구 승부예측 — GPT vs Claude vs Gemini",
|
||||
title: "TriplePick 2026 | AI 2026 월드컵 승부예측 — GPT vs Claude vs Gemini",
|
||||
description:
|
||||
"GPT·Claude·Gemini가 매 경기를 서로 다르게 예측합니다. 당신의 픽을 찍고 AI와 겨뤄보세요. 끝까지 잘 맞히면 100만 원 챌린지.",
|
||||
applicationName: "TriplePick",
|
||||
|
||||
@@ -6,6 +6,7 @@ import Arena from "@/components/Arena";
|
||||
import Footer from "@/components/Footer";
|
||||
import { GROUP_A } from "@/lib/schedule";
|
||||
import { getPredictions, getCrowd, matchUrl } from "@/lib/mockData";
|
||||
import { parseLang, dict, teamShort } from "@/lib/i18n";
|
||||
|
||||
// L2. 경기 상세(대결) 페이지 — 6경기 정적 생성
|
||||
export function generateStaticParams() {
|
||||
@@ -32,42 +33,56 @@ export async function generateMetadata({
|
||||
|
||||
export default async function MatchPage({
|
||||
params,
|
||||
searchParams,
|
||||
}: {
|
||||
params: Promise<{ matchId: string }>;
|
||||
searchParams: Promise<{ lang?: string }>;
|
||||
}) {
|
||||
const { matchId } = await params;
|
||||
const { lang: langParam } = await searchParams;
|
||||
const lang = parseLang(langParam);
|
||||
const t = dict(lang);
|
||||
|
||||
const match = GROUP_A.find((m) => m.matchId === matchId);
|
||||
if (!match) notFound();
|
||||
|
||||
const predictions = getPredictions(match);
|
||||
const predictions = getPredictions(match, lang);
|
||||
const crowd = getCrowd(match);
|
||||
const aShort = teamShort(match.teamA, lang);
|
||||
const bShort = teamShort(match.teamB, lang);
|
||||
const hook = lang === "en" ? t.hook(aShort, bShort) : match.hookText;
|
||||
|
||||
return (
|
||||
<main className="shell">
|
||||
<Hero
|
||||
back
|
||||
lang={lang}
|
||||
share={{
|
||||
url: matchUrl(match.matchId),
|
||||
title: `${match.teamA.shortName} vs ${match.teamB.shortName} — TriplePick`,
|
||||
text: `${match.hookText} — AI 셋의 예측을 보고 너의 픽을 찍어봐!`,
|
||||
title: `${aShort} vs ${bShort} — TriplePick`,
|
||||
text:
|
||||
lang === "en"
|
||||
? `${hook} — see all 3 AI picks and make yours!`
|
||||
: `${hook} — AI 셋의 예측을 보고 너의 픽을 찍어봐!`,
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* 경기별 후킹 카피 (한 줄) */}
|
||||
<h1 className="mt-6 flex items-center justify-center gap-2 whitespace-nowrap text-[19px] font-extrabold leading-snug">
|
||||
<span className="text-[var(--green)]">⫽</span>
|
||||
{match.hookText}
|
||||
{hook}
|
||||
<span className="text-[var(--green)]">⫽</span>
|
||||
</h1>
|
||||
|
||||
<MatchupHUD match={match} />
|
||||
<MatchupHUD match={match} lang={lang} />
|
||||
<Arena
|
||||
match={match}
|
||||
predictions={predictions}
|
||||
crowd={crowd}
|
||||
shareUrl={matchUrl(match.matchId)}
|
||||
lang={lang}
|
||||
/>
|
||||
<Footer />
|
||||
<Footer lang={lang} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
+18
-13
@@ -1,30 +1,35 @@
|
||||
import Hero from "@/components/Hero";
|
||||
import ScheduleBoard from "@/components/ScheduleBoard";
|
||||
import Footer from "@/components/Footer";
|
||||
import { parseLang, dict } from "@/lib/i18n";
|
||||
|
||||
// L1. 전체 일정 대시보드 (랜딩 진입)
|
||||
export default function Home() {
|
||||
export default async function Home({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: Promise<{ lang?: string }>;
|
||||
}) {
|
||||
const { lang: langParam } = await searchParams;
|
||||
const lang = parseLang(langParam);
|
||||
const t = dict(lang);
|
||||
return (
|
||||
<main className="shell">
|
||||
<Hero />
|
||||
<Hero lang={lang} />
|
||||
|
||||
{/* 기간 안내 + CTA 영역 */}
|
||||
<div className="mt-5 rounded-2xl border border-[var(--line-d)] bg-[var(--bg2)] p-4 text-center">
|
||||
<p className="text-[14px] font-bold leading-snug">
|
||||
GPT · Claude · Gemini가 매 경기를
|
||||
<p className="whitespace-pre-line text-[14px] font-bold leading-snug">
|
||||
{t.introLead}
|
||||
</p>
|
||||
<p className="mt-1 text-[14px] font-bold leading-snug text-[var(--green)]">
|
||||
{t.prizeLine1}
|
||||
<br />
|
||||
서로 다르게 예측합니다.
|
||||
<br />
|
||||
<span className="text-[var(--green)]">
|
||||
가장 많이 참여하고, 가장 정확한 최종 우승자에게
|
||||
<br />
|
||||
<span className="whitespace-nowrap">100만원 상금</span>
|
||||
</span>
|
||||
<span className="whitespace-nowrap">{t.prizeLine2}</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ScheduleBoard />
|
||||
<Footer />
|
||||
<ScheduleBoard lang={lang} />
|
||||
<Footer lang={lang} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user