feat: refresh the home page and separate match event types

Add an inhouse hero, Hall of Fame, rankings, and event-specific schedules. Carry the event type through the API and admin tools, and improve results and player history displays.
This commit is contained in:
dahyeon committed 2026-11-10 22:13:55 +09:00
1 parent 7e0cd7cb19
commit 664af15255
58 files changed
+2316 -593

No files matched your search

+29 -31
View File
@@ -334,7 +334,7 @@ function ItemStrip({
itemId={itemId}
manifest={manifest}
trinket={index === 6}
className="h-8 w-8"
className="h-7 w-7"
imageClassName=""
/>
))}
@@ -716,7 +716,7 @@ function PostgameBreakdown({
return (
<section className="mt-5 overflow-hidden border border-base-content/10 bg-base-100">
<div className="flex flex-wrap items-center justify-between gap-3 border-b border-base-content/8 px-4 py-3">
<h2 className="text-sm font-black text-base-content">경기 요약</h2>
<h2 className="text-sm font-black">경기 요약</h2>
<div className="flex flex-wrap items-center gap-2 text-xs font-bold text-base-content/35">
{version ? <span>Ver. {version}</span> : null}
<span>{formatDuration(selectedGame.gameDuration)}</span>
@@ -1147,7 +1147,7 @@ function TimelineGraph({
<section className="mt-5 overflow-hidden border border-base-content/10 bg-base-100">
<div className="flex flex-col gap-3 border-b border-base-content/8 px-4 py-3 sm:flex-row sm:items-center sm:justify-between">
<div>
<h2 className="text-sm font-black text-base-content">경기 흐름</h2>
<h2 className="text-sm font-black">경기 흐름</h2>
<div className="mt-1 text-xs font-bold text-base-content/35">
{finalPoint
? `${finalLeader} ${formatSignedCompactNumber(finalPoint.value)}`
@@ -1241,7 +1241,7 @@ function TimelineGraph({
type="monotone"
dataKey="positive"
stroke="none"
fill="#3b82f6"
fill="var(--lts-win-fill)"
fillOpacity={0.16}
isAnimationActive={false}
/>
@@ -1249,7 +1249,7 @@ function TimelineGraph({
type="monotone"
dataKey="negative"
stroke="none"
fill="#ef4444"
fill="var(--lts-loss-fill)"
fillOpacity={0.16}
isAnimationActive={false}
/>
@@ -1282,9 +1282,9 @@ function TimelineGraph({
r={selected ? 5.5 : markerRadius}
fill={
event.side === "blue"
? "#3b82f6"
? "var(--lts-win-fill)"
: event.side === "red"
? "#ef4444"
? "var(--lts-loss-fill)"
: "currentColor"
}
stroke="currentColor"
@@ -1321,7 +1321,7 @@ function TimelineGraph({
{timelineEvents.length > 0 ? (
<div className="border-t border-base-content/8 px-4 py-3">
<div className="flex flex-wrap items-baseline justify-between gap-2">
<h3 className="text-xs font-black text-base-content">주요 사건</h3>
<h3 className="text-xs font-black">주요 사건</h3>
<p className="text-[11px] font-bold text-base-content/30">
항목을 선택하면 그래프의 해당 시점을 강조합니다
</p>
@@ -1348,7 +1348,7 @@ function TimelineGraph({
))}
</div>
<ul
className="m-0 mt-3 grid max-h-64 list-none gap-1.5 overflow-y-auto p-0 sm:grid-cols-2 lg:grid-cols-3"
className="m-0 mt-3 max-h-80 list-none divide-y divide-line overflow-y-auto rounded-field border border-line p-0"
aria-label="시간순 주요 사건"
>
{visibleEventEntries.map(({ event, key }) => {
@@ -1370,10 +1370,8 @@ function TimelineGraph({
type="button"
aria-pressed={selected}
onClick={() => setSelectedEventKey(selected ? null : key)}
className={`grid h-full w-full grid-cols-[3.25rem_3.25rem_minmax(0,1fr)] items-start gap-2 border px-2.5 py-2 text-left text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary ${
selected
? "border-primary bg-primary/8"
: "border-base-content/8 hover:bg-base-content/[0.03]"
className={`grid w-full grid-cols-[3rem_3rem_minmax(0,1fr)] items-baseline gap-2 !rounded-none px-3 py-1.5 text-left text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary ${
selected ? "bg-primary-tint" : "hover:bg-sunken"
}`}
>
<span className="font-mono font-black tabular-nums text-base-content/55">
@@ -1390,8 +1388,8 @@ function TimelineGraph({
>
{event.side ? sideLabel(event.side) : "-"}
</span>
<span className="min-w-0">
<span className="block truncate font-bold text-base-content/75">
<span className="min-w-0 sm:flex sm:items-baseline sm:gap-3">
<span className="block truncate font-bold text-base-content/75 sm:w-32 sm:shrink-0">
{teamName ? (
<span className="sr-only">{teamName} </span>
) : null}
@@ -1399,7 +1397,7 @@ function TimelineGraph({
</span>
{actorLabel ? (
<span
className="mt-0.5 block truncate text-[10px] font-bold text-base-content/35"
className="mt-0.5 block min-w-0 truncate text-[11px] text-content-muted sm:mt-0 sm:flex-1"
title={actorLabel}
>
{actorLabel}
@@ -1447,16 +1445,16 @@ function TeamTable({
))}
</div>
<div className="hidden overflow-x-auto lg:block">
<table className="w-full min-w-[1040px] table-fixed text-left">
<table className="w-full min-w-[920px] table-fixed text-left">
<thead>
<tr className="bg-base-content/[0.02] text-xs uppercase tracking-wider text-base-content/35">
<th className="w-[276px] px-3 py-2.5">선수</th>
<th className="w-[108px] px-3 py-2.5 text-center">KDA</th>
<th className="w-[120px] px-3 py-2.5 text-center">가한 피해량</th>
<th className="w-[120px] px-3 py-2.5 text-center">받은 피해량</th>
<th className="w-[80px] px-3 py-2.5 text-center">시야</th>
<th className="w-[96px] px-3 py-2.5 text-center">CS · 경제</th>
<th className="w-[260px] px-3 py-2.5">아이템</th>
<th className="w-[228px] px-3 py-2.5">선수</th>
<th className="w-[100px] px-3 py-2.5 text-center">KDA</th>
<th className="w-[104px] px-3 py-2.5 text-center">가한 피해량</th>
<th className="w-[104px] px-3 py-2.5 text-center">받은 피해량</th>
<th className="w-[72px] px-3 py-2.5 text-center">시야</th>
<th className="w-[92px] px-3 py-2.5 text-center">CS · 경제</th>
<th className="w-[232px] px-3 py-2.5">아이템</th>
</tr>
</thead>
<tbody>
@@ -1537,10 +1535,10 @@ function GameTabs({
return (
<nav
className="lts-panel sticky top-(--app-header-height) z-30 p-1"
className="lts-panel sticky top-(--app-header-nav-height) z-30 p-1 sm:flex sm:items-center sm:gap-1"
aria-label="세트 선택"
>
<label className="flex min-w-0 items-center gap-2 border-b border-line px-2 py-1.5 text-xs font-semibold text-content-muted">
<label className="flex min-w-0 items-center gap-2 border-b border-line px-2 py-1.5 text-xs font-semibold text-content-muted sm:w-72 sm:shrink-0 sm:border-b-0 sm:border-r sm:py-0 sm:pr-3">
<span className="shrink-0">대진</span>
<select
className="lts-select min-w-0"
@@ -1555,7 +1553,7 @@ function GameTabs({
))}
</select>
</label>
<div className="flex items-center gap-1">
<div className="flex min-w-0 items-center gap-1 sm:flex-1">
<Link
to={previousGame ? pathFor(previousGame.gameNumber) : "#"}
state={navigationState}
@@ -1577,9 +1575,9 @@ function GameTabs({
to={pathFor(game.gameNumber)}
state={navigationState}
aria-current={active ? "page" : undefined}
className={`flex h-10 shrink-0 items-center gap-2 rounded-[10px] px-3.5 text-sm transition-colors ${
className={`group flex h-10 shrink-0 items-center gap-2 rounded-[10px] px-3.5 text-sm transition-colors ${
active
? "bg-secondary text-secondary-content dark:bg-white dark:text-[#14161b]"
? "bg-secondary text-secondary-content"
: "text-content-muted hover:bg-sunken hover:text-content"
}`}
>
@@ -1590,7 +1588,7 @@ function GameTabs({
<span className="text-xs opacity-80">전체 {game.gameNumber}</span>
)}
<span
className={`max-w-28 truncate text-xs ${active ? "opacity-80" : "text-content-subtle"}`}
className={`max-w-28 truncate text-xs ${active ? "opacity-80" : "text-content-subtle group-hover:text-content-muted"}`}
>
{winnerTeam
? `${getTeamName(detail, winnerTeam.teamIndex)} 승`
@@ -1638,7 +1636,7 @@ function MatchScoreHero({
const showSeriesScore = selectedSeries && shouldDisplaySeriesHistoryScore(selectedSeries) && leftScore !== undefined && rightScore !== undefined;
const decision = selectedSeries?.status === "completed" ? getSeriesHistoryResultLabel(selectedSeries) : null;
const sideTone = (side: TeamSide) =>
side === "blue" ? "text-[#8fb6ff]" : "text-[#ff99a5]";
side === "blue" ? "text-win" : "text-loss";
return (
<PageHero