feat: polish match history UI

This commit is contained in:
dahyeon committed 2026-06-26 23:10:42 -07:00
1 parent 68afaf0cb8
commit 4906f665fd
4 files changed
+1403 -1074

No files matched your search

+8 -8
View File
@@ -33,8 +33,8 @@ const GAME_MODE_LABEL: Record<MatchGameMode, string> = {
function resultBadgeClass(won: boolean) {
return won
? "border-blue-500/20 bg-blue-500/10 text-blue-400"
: "border-red-500/20 bg-red-500/10 text-red-400";
? "border-info/20 bg-info/10 text-info"
: "border-error/20 bg-error/10 text-error";
}
function captainName(
@@ -132,7 +132,7 @@ function ParticipantLine({
{name}
</span>
{isCaptain && (
<span className="shrink-0 border border-accent/20 bg-accent/10 px-1.5 py-0.5 text-xs font-bold text-amber-500">
<span className="shrink-0 border border-accent/20 bg-accent/10 px-1.5 py-0.5 text-xs font-bold text-warning">
팀장
</span>
)}
@@ -436,7 +436,7 @@ function TeamGameCardsSection({
<div className="p-4">
{replaceError && (
<div className="mb-3 border border-red-500/20 bg-red-500/8 px-3 py-2 text-xs text-red-300">
<div className="mb-3 border border-error/20 bg-error/8 px-3 py-2 text-xs text-error">
{replaceError}
</div>
)}
@@ -534,7 +534,7 @@ export default function MatchTeamProgressPage() {
if (!DEFAULT_COMMUNITY_ID) {
return (
<main className="mx-auto max-w-5xl px-4 py-20 text-center text-sm text-amber-600">
<main className="mx-auto max-w-5xl px-4 py-20 text-center text-sm text-warning">
`VITE_DEFAULT_COMMUNITY_ID` 설정이 필요합니다.
</main>
);
@@ -704,9 +704,9 @@ export default function MatchTeamProgressPage() {
aria-modal="true"
aria-labelledby="team-tournament-code-replace-title"
>
<div className="w-full max-w-md border border-amber-500/25 bg-base-100 p-5 shadow-2xl">
<div className="w-full max-w-md border border-warning/25 bg-base-100 p-5 shadow-2xl">
<div className="flex items-start gap-3">
<span className="inline-flex h-9 w-9 shrink-0 items-center justify-center border border-amber-500/25 bg-amber-500/10 text-amber-400">
<span className="inline-flex h-9 w-9 shrink-0 items-center justify-center border border-warning/25 bg-warning/10 text-warning">
<AlertTriangle className="h-4 w-4" />
</span>
<div className="min-w-0">
@@ -746,7 +746,7 @@ export default function MatchTeamProgressPage() {
handleConfirmReplaceTournamentCode();
}
}}
className="mt-2 h-10 w-full border border-base-content/15 bg-base-100 px-3 text-sm text-base-content outline-none transition-colors focus:border-amber-400/60"
className="mt-2 h-10 w-full border border-base-content/15 bg-base-100 px-3 text-sm text-base-content outline-none transition-colors focus:border-warning/60"
placeholder="예"
/>