+
-
+
© 2026 LOLYMPUS. LOLYMPUS is not endorsed by Riot Games and does not
reflect the views or opinions of Riot Games or anyone officially
involved in producing or managing League of Legends. League of Legends
@@ -101,51 +213,42 @@ function LegalPage({
children: ReactNode;
}) {
return (
-
-
- ← 홈으로
-
- {title}
-
+
+ {title}
+
{children}
-
+
+ );
+}
+
+function NotFoundPage() {
+ return (
+
+
+ 404
+
+
+ 페이지를 찾을 수 없습니다
+
+
+ 주소가 바뀌었거나 삭제된 내전일 수 있습니다.
+
+
+ 내전 목록으로
+
+
);
}
function App() {
- const communityQuery = useCommunity(DEFAULT_COMMUNITY_ID);
- const communityLabel = communityQuery.data?.name ?? "LOLYMPUS";
-
return (
-
-
+
+
@@ -226,6 +329,7 @@ function App() {
}
/>
+ } />
diff --git a/apps/web/src/api/mappers.ts b/apps/web/src/api/mappers.ts
index 0e768888..a9b0018c 100644
--- a/apps/web/src/api/mappers.ts
+++ b/apps/web/src/api/mappers.ts
@@ -354,15 +354,15 @@ export function formatTierLabel(tier?: ApiTierInfo) {
export function getTierColorToken(tier?: ApiTierInfo) {
switch (tier?.tier) {
case "CHALLENGER":
- return "text-amber-400";
+ return "text-gold";
case "GRANDMASTER":
- return "text-red-400";
+ return "text-loss";
case "MASTER":
return "text-fuchsia-400";
case "DIAMOND":
return "text-cyan-400";
case "EMERALD":
- return "text-emerald-400";
+ return "text-leaf";
case "PLATINUM":
return "text-teal-300";
case "GOLD":
@@ -370,7 +370,7 @@ export function getTierColorToken(tier?: ApiTierInfo) {
case "SILVER":
return "text-gray-300";
case "BRONZE":
- return "text-amber-700";
+ return "text-gold";
case "IRON":
return "text-stone-400";
default:
diff --git a/apps/web/src/components/AdminPage.tsx b/apps/web/src/components/AdminPage.tsx
new file mode 100644
index 00000000..664ca528
--- /dev/null
+++ b/apps/web/src/components/AdminPage.tsx
@@ -0,0 +1,82 @@
+import type { ReactNode } from "react";
+import { NavLink } from "react-router";
+import { PageBody, PageHero } from "../ui";
+
+const ADMIN_SECTIONS = [
+ { path: "matches", label: "내전 관리" },
+ { path: "tournament-codes", label: "토너먼트 코드" },
+ { path: "legacy-import", label: "과거 기록 가져오기" },
+ { path: "legacy-matches", label: "과거 기록 정리" },
+] as const;
+
+/**
+ * 운영 화면 공통 틀. 네 개의 운영 도구를 한 줄 탭으로 오갈 수 있게 한다.
+ */
+export function AdminPage({
+ communityId,
+ title,
+ description,
+ actions,
+ children,
+}: {
+ communityId: string;
+ title: string;
+ description?: string;
+ actions?: ReactNode;
+ children: ReactNode;
+}) {
+ return (
+ <>
+
+
+
+ {children}
+
+ >
+ );
+}
+
+/** 운영 화면의 권한·설정 안내. */
+export function AdminNotice({
+ title,
+ children,
+}: {
+ title: string;
+ children?: ReactNode;
+}) {
+ return (
+
+
+
{title}
+ {children && (
+
{children}
+ )}
+
+
+ );
+}
diff --git a/apps/web/src/components/DevAuthSwitcher.tsx b/apps/web/src/components/DevAuthSwitcher.tsx
index ff2c2758..02d9d457 100644
--- a/apps/web/src/components/DevAuthSwitcher.tsx
+++ b/apps/web/src/components/DevAuthSwitcher.tsx
@@ -1,6 +1,8 @@
import { useState } from 'react';
import { useQueryClient } from '@tanstack/react-query';
+import { FlaskConical, X } from 'lucide-react';
import { setAuthUserId, useAuthUserId } from '../config';
+import { Button } from '../ui';
export default function DevAuthSwitcher() {
const authUserId = useAuthUserId();
@@ -17,12 +19,16 @@ export default function DevAuthSwitcher() {
);
}
+/**
+ * 개발 서버 전용 인증 전환기. 기본은 접힌 알약이라 화면을 가리지 않는다.
+ */
function DevAuthSwitcherForm({
authUserId,
}: {
authUserId: string | null;
}) {
const queryClient = useQueryClient();
+ const [isOpen, setIsOpen] = useState(false);
const [inputValue, setInputValue] = useState(authUserId ?? '');
function updateAuthUserId(nextValue: string | null) {
@@ -30,37 +36,60 @@ function DevAuthSwitcherForm({
void queryClient.invalidateQueries();
}
- return (
-
-
+ if (!isOpen) {
+ return (
+
-
- X-Auth-User-Id
+
+
+ );
+ }
+
+ return (
+
+
+
+ Dev Auth · X-Auth-User-Id
+
+
setInputValue(event.target.value)}
placeholder="Mongo User ID"
- className="mt-1 w-full border border-base-content/10 bg-transparent px-2 py-2 text-xs text-base-content focus:outline-none focus:border-primary/30"
+ aria-label="Mongo User ID"
+ className="lts-input mt-2 text-xs"
/>
-
-
+
+ />
-
+
현재값: {authUserId ?? '없음'}
diff --git a/apps/web/src/components/InternalGameAnalysisTabs.tsx b/apps/web/src/components/InternalGameAnalysisTabs.tsx
index 54d9594b..e52009f3 100644
--- a/apps/web/src/components/InternalGameAnalysisTabs.tsx
+++ b/apps/web/src/components/InternalGameAnalysisTabs.tsx
@@ -16,6 +16,7 @@ import {
} from "../lib/internal-game-matchups";
import { ItemIcon, RuneIcon, RuneStyleIcon } from "./ItemTooltip";
+import { Tab, TabList } from "@astryxdesign/core/TabList";
export type InternalGameDetailTab = "scoreboard" | "matchup" | "build";
type InternalGameDetail = ApiInternalMatchDetailResponse["games"][number];
@@ -36,10 +37,10 @@ const SKILL_ROWS: Array<{
label: string;
className: string;
}> = [
- { slot: 1, label: "Q", className: "bg-blue-500 text-white" },
+ { slot: 1, label: "Q", className: "bg-win text-white" },
{ slot: 2, label: "W", className: "bg-cyan-500 text-white" },
{ slot: 3, label: "E", className: "bg-amber-500 text-black" },
- { slot: 4, label: "R", className: "bg-red-500 text-white" },
+ { slot: 4, label: "R", className: "bg-loss text-white" },
];
const STAT_PERK_LABELS: Record
= {
@@ -71,16 +72,16 @@ function formatSignedNumber(value: number) {
function sideTone(side: TeamSide) {
return side === "blue"
? {
- border: "border-blue-500/20",
- bg: "bg-blue-500/5",
- text: "text-blue-400",
- bar: "bg-blue-500",
+ border: "border-win-line",
+ bg: "bg-win-tint",
+ text: "text-win",
+ bar: "bg-win",
}
: {
- border: "border-red-500/20",
- bg: "bg-red-500/5",
- text: "text-red-400",
- bar: "bg-red-500",
+ border: "border-loss-line",
+ bg: "bg-loss-tint",
+ text: "text-loss",
+ bar: "bg-loss",
};
}
@@ -672,7 +673,7 @@ function MatchupMetricRow({
{blueText}
@@ -687,7 +688,7 @@ function MatchupMetricRow({
{redText}
@@ -899,11 +900,11 @@ function LaneMatchupPanel({
-
+
{blueTeamName}
VS
- {redTeamName}
+ {redTeamName}
void;
}) {
return (
-
{
+ const tab = DETAIL_TABS.find((candidate) => candidate.id === next);
+ if (tab) onChange(tab.id);
+ }}
>
{DETAIL_TABS.map((tab) => (
-
+
))}
-
+
);
}
diff --git a/apps/web/src/components/RankBadge.tsx b/apps/web/src/components/RankBadge.tsx
index 45252a92..52bbfe87 100644
--- a/apps/web/src/components/RankBadge.tsx
+++ b/apps/web/src/components/RankBadge.tsx
@@ -1,4 +1,5 @@
import type { ApiTierInfo } from "../api/types";
+import { Tooltip } from "@astryxdesign/core/Tooltip";
import { formatRankBadge, formatRankDetail } from "./rankBadgeUtils";
type RankBadgeSize = "sm" | "md";
@@ -9,9 +10,12 @@ const SIZE_CLASSES: Record
= {
md: "h-[18px] min-w-[20px]",
};
-const TOOLTIP_CLASSES: Record = {
- left: "tooltip-left",
- bottom: "tooltip-bottom",
+const TOOLTIP_PLACEMENT: Record<
+ RankBadgeTooltipPlacement,
+ "start" | "below"
+> = {
+ left: "start",
+ bottom: "below",
};
function rankBadgeClass(tier: ApiTierInfo | undefined) {
@@ -53,17 +57,14 @@ export function RankBadge({
const tooltip = formatRankDetail(tier);
return (
-
+
{formatRankBadge(tier)}
-
+
);
}
diff --git a/apps/web/src/components/TierHistoryChart.tsx b/apps/web/src/components/TierHistoryChart.tsx
index 03b42b2e..424393b6 100644
--- a/apps/web/src/components/TierHistoryChart.tsx
+++ b/apps/web/src/components/TierHistoryChart.tsx
@@ -406,7 +406,7 @@ export default function TierHistoryChart({
))}
);
}
diff --git a/apps/web/src/components/competition/MatchDetailTabBar.tsx b/apps/web/src/components/competition/MatchDetailTabBar.tsx
index 84bfe30f..b0709206 100644
--- a/apps/web/src/components/competition/MatchDetailTabBar.tsx
+++ b/apps/web/src/components/competition/MatchDetailTabBar.tsx
@@ -55,9 +55,9 @@ export function MatchDetailTabBar({
}
return (
-
+
@@ -77,10 +77,10 @@ export function MatchDetailTabBar({
tabIndex={selected ? 0 : -1}
onClick={() => onChange(tab.id)}
onKeyDown={(event) => handleKeyDown(event, tab.id)}
- className={`min-h-11 flex-none whitespace-nowrap border-b-2 px-4 text-xs font-bold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary ${
+ className={`h-10 flex-none whitespace-nowrap rounded-[10px] px-4 text-sm font-bold transition-colors sm:px-5 ${
selected
- ? "border-primary bg-primary/5 text-base-content"
- : "border-transparent text-base-content/45 hover:bg-base-content/[0.03] hover:text-base-content"
+ ? "bg-secondary text-secondary-content dark:bg-white dark:text-[#14161b]"
+ : "text-content-muted hover:bg-sunken hover:text-content"
}`}
>
{tab.label}
diff --git a/apps/web/src/components/competition/TeamTournamentCodes.tsx b/apps/web/src/components/competition/TeamTournamentCodes.tsx
index cdaa28d0..ba4bb55b 100644
--- a/apps/web/src/components/competition/TeamTournamentCodes.tsx
+++ b/apps/web/src/components/competition/TeamTournamentCodes.tsx
@@ -251,7 +251,7 @@ function AutoSizingCodeField({