feat: enhance auction interactions and player statistics UI
This commit is contained in:
1 parent
6c582ba3cf
commit
be4de61bb7
115 files changed
+13292
-2871
No files matched your search
+69
-79
@@ -23,16 +23,18 @@ import MatchTeamProgressPage from "./pages/MatchTeamProgressPage";
|
||||
import AuctionPage from "./pages/AuctionPage";
|
||||
import UserHistoryPage from "./pages/UserHistoryPage";
|
||||
import CommunityInternalStatsPage from "./pages/CommunityInternalStatsPage";
|
||||
import CommunityInternalPlayerPage from "./pages/CommunityInternalPlayerPage";
|
||||
import InternalMatchDetailPage from "./pages/InternalMatchDetailPage";
|
||||
import LegacyImportPage from "./pages/admin/LegacyImportPage";
|
||||
import LegacyMatchesPage from "./pages/admin/LegacyMatchesPage";
|
||||
import MatchAdminPage from "./pages/admin/MatchAdminPage";
|
||||
import TournamentCodesPage from "./pages/admin/TournamentCodesPage";
|
||||
import { PlainPage, Tooltip, pageWidthClass } from "./ui";
|
||||
import "./components/app-header.css";
|
||||
|
||||
|
||||
const NAV_ICON_BUTTON_CLASS =
|
||||
"grid size-10 shrink-0 place-items-center rounded-field text-content-muted transition-colors hover:bg-sunken-strong hover:text-content md:size-11";
|
||||
"lts-header-icon-button";
|
||||
|
||||
function MsalHeaderActions() {
|
||||
const { accounts, instance } = useMsal();
|
||||
@@ -41,7 +43,7 @@ function MsalHeaderActions() {
|
||||
if (!account) {
|
||||
return (
|
||||
<Link
|
||||
className="inline-flex h-10 items-center whitespace-nowrap rounded-full border border-line-strong px-3.5 text-sm font-semibold text-content transition-colors hover:bg-sunken md:h-11 md:px-4 md:text-[15px]"
|
||||
className="inline-flex h-8 items-center whitespace-nowrap rounded-full border border-line px-3 text-[13px] font-medium text-content-muted transition-colors hover:bg-sunken hover:text-content"
|
||||
to="/login"
|
||||
>
|
||||
로그인
|
||||
@@ -63,7 +65,7 @@ function MsalHeaderActions() {
|
||||
aria-label={`${name} 로그아웃`}
|
||||
onClick={() => void instance.logoutRedirect()}
|
||||
>
|
||||
<LogOut className="size-[18px] md:size-5" aria-hidden="true" />
|
||||
<LogOut className="size-[18px]" aria-hidden="true" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
@@ -81,11 +83,11 @@ function ThemeToggle() {
|
||||
<Tooltip content={label} placement="below">
|
||||
<button
|
||||
type="button"
|
||||
className={NAV_ICON_BUTTON_CLASS}
|
||||
className={`${NAV_ICON_BUTTON_CLASS} lts-header-theme-toggle`}
|
||||
aria-label={label}
|
||||
onClick={() => setTheme(nextTheme)}
|
||||
>
|
||||
<Icon className="size-[18px] md:size-5" aria-hidden="true" />
|
||||
<Icon className="size-[18px]" aria-hidden="true" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
);
|
||||
@@ -111,11 +113,7 @@ function PrimaryNavLink({
|
||||
<Link
|
||||
to={to}
|
||||
aria-current={current}
|
||||
className={`relative inline-flex h-full items-center whitespace-nowrap px-2.5 text-base font-semibold transition-colors focus-visible:-outline-offset-2 sm:px-4 md:px-7 md:text-xl ${
|
||||
current
|
||||
? "text-content-strong after:absolute after:inset-x-2.5 after:bottom-0 after:h-[3px] after:rounded-t-full after:bg-primary sm:after:inset-x-4 md:after:inset-x-7"
|
||||
: "text-content-subtle hover:text-content-strong"
|
||||
}`}
|
||||
className="lts-primary-nav-link"
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
@@ -138,67 +136,55 @@ function AppHeader() {
|
||||
const adminPath = `/admin/communities/${DEFAULT_COMMUNITY_ID}`;
|
||||
|
||||
return (
|
||||
<>
|
||||
<header className="h-(--app-header-row-height) shrink-0 border-b border-line bg-card dark:bg-ink">
|
||||
<div
|
||||
className={`${pageWidthClass("xl")} grid h-full grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center sm:gap-x-3`}
|
||||
<header
|
||||
className={`lts-app-header${DEFAULT_COMMUNITY_ID ? "" : " lts-app-header--without-nav"}`}
|
||||
>
|
||||
<div className="lts-app-header-inner">
|
||||
<Link
|
||||
className="lts-header-brand"
|
||||
to="/"
|
||||
aria-label={`${communityLabel} 홈`}
|
||||
>
|
||||
<Link
|
||||
className="col-start-2 row-start-1 flex h-full items-center text-content-strong"
|
||||
to="/"
|
||||
aria-label={`${communityLabel} 홈`}
|
||||
>
|
||||
<span className="max-w-32 truncate text-xl font-extrabold tracking-[-0.02em] md:max-w-48 md:text-[22px]">
|
||||
{communityLabel}
|
||||
</span>
|
||||
</Link>
|
||||
<div className="contents sm:col-start-3 sm:row-start-1 sm:flex sm:min-w-0 sm:items-center sm:justify-end sm:gap-1 lg:gap-2">
|
||||
<div className="col-start-1 row-start-1 justify-self-start sm:shrink-0">
|
||||
<ThemeToggle />
|
||||
</div>
|
||||
{isMsalConfigured && (
|
||||
<div className="col-start-3 row-start-1 min-w-0 justify-self-end sm:shrink-0">
|
||||
<MsalHeaderActions />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{DEFAULT_COMMUNITY_ID && (
|
||||
<nav
|
||||
aria-label="주 메뉴"
|
||||
className="sticky top-0 z-50 flex h-(--app-header-nav-height) shrink-0 justify-center gap-0.5 border-b border-line bg-card sm:gap-2 md:gap-5 dark:bg-ink"
|
||||
>
|
||||
<PrimaryNavLink to="/">홈</PrimaryNavLink>
|
||||
<PrimaryNavLink
|
||||
to="/inhouse"
|
||||
sectionPaths={isTournamentMatch ? undefined : ["/match/*"]}
|
||||
>
|
||||
내전
|
||||
</PrimaryNavLink>
|
||||
<PrimaryNavLink
|
||||
to="/tournaments"
|
||||
sectionPaths={isTournamentMatch ? ["/match/*"] : undefined}
|
||||
>
|
||||
멸망전
|
||||
</PrimaryNavLink>
|
||||
<PrimaryNavLink
|
||||
to={statsPath}
|
||||
sectionPaths={[`${statsPath}/*`, "/users/:userId/history"]}
|
||||
>
|
||||
전적
|
||||
</PrimaryNavLink>
|
||||
{canManage && (
|
||||
<span className="lts-header-brand-name">{communityLabel}</span>
|
||||
<span className="lts-header-brand-tagline">TOURNAMENT</span>
|
||||
</Link>
|
||||
{DEFAULT_COMMUNITY_ID && (
|
||||
<nav aria-label="주 메뉴" className="lts-primary-nav">
|
||||
<PrimaryNavLink to="/">홈</PrimaryNavLink>
|
||||
<PrimaryNavLink
|
||||
to={`${adminPath}/matches`}
|
||||
sectionPaths={[`${adminPath}/*`]}
|
||||
to="/inhouse"
|
||||
sectionPaths={isTournamentMatch ? undefined : ["/match/*"]}
|
||||
>
|
||||
운영
|
||||
내전
|
||||
</PrimaryNavLink>
|
||||
)}
|
||||
</nav>
|
||||
)}
|
||||
</>
|
||||
<PrimaryNavLink
|
||||
to="/tournaments"
|
||||
sectionPaths={isTournamentMatch ? ["/match/*"] : undefined}
|
||||
>
|
||||
멸망전
|
||||
</PrimaryNavLink>
|
||||
<PrimaryNavLink
|
||||
to={statsPath}
|
||||
sectionPaths={[`${statsPath}/*`, "/users/:userId/history"]}
|
||||
>
|
||||
전적
|
||||
</PrimaryNavLink>
|
||||
{canManage && (
|
||||
<PrimaryNavLink
|
||||
to={`${adminPath}/matches`}
|
||||
sectionPaths={[`${adminPath}/*`]}
|
||||
>
|
||||
운영
|
||||
</PrimaryNavLink>
|
||||
)}
|
||||
</nav>
|
||||
)}
|
||||
<div className="lts-header-actions">
|
||||
<ThemeToggle />
|
||||
{isMsalConfigured && <MsalHeaderActions />}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -206,26 +192,29 @@ function AppFooter() {
|
||||
return (
|
||||
<footer className="border-t border-line">
|
||||
<div
|
||||
className={`${pageWidthClass("xl")} flex flex-col gap-3 py-8 text-xs text-content-subtle`}
|
||||
className={`${pageWidthClass("xl")} flex flex-col items-center gap-4 py-10 text-center text-xs text-content-subtle sm:py-12`}
|
||||
>
|
||||
<nav
|
||||
aria-label="정책"
|
||||
className="flex items-center gap-4 font-semibold text-content-muted"
|
||||
className="flex flex-wrap items-center justify-center gap-x-6 gap-y-2 font-semibold text-content-muted"
|
||||
>
|
||||
<Link to="/terms" className="hover:text-content">
|
||||
<Link to="/terms" className="inline-flex min-h-8 items-center hover:text-content">
|
||||
서비스 이용약관
|
||||
</Link>
|
||||
<Link to="/privacy" className="hover:text-content">
|
||||
<Link to="/privacy" className="inline-flex min-h-8 items-center font-bold hover:text-content">
|
||||
개인정보처리방침
|
||||
</Link>
|
||||
</nav>
|
||||
<p className="max-w-4xl leading-relaxed">
|
||||
© 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
|
||||
and Riot Games are trademarks or registered trademarks of Riot Games,
|
||||
Inc. League of Legends © Riot Games, Inc.
|
||||
</p>
|
||||
<div className="w-full max-w-4xl space-y-1 leading-relaxed">
|
||||
<p className="text-balance">
|
||||
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 and Riot Games are
|
||||
trademarks or registered trademarks of Riot Games, Inc. League of
|
||||
Legends © Riot Games, Inc.
|
||||
</p>
|
||||
<p>© 2026 LOLYMPUS.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
@@ -289,7 +278,7 @@ function App() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<div
|
||||
className={`lts-app-shell flex min-h-screen flex-col bg-body ${DEFAULT_COMMUNITY_ID ? "" : "[--app-header-nav-height:0px]"}`}
|
||||
className={`lts-app-shell flex min-h-screen flex-col bg-body ${DEFAULT_COMMUNITY_ID ? "" : "lts-app-shell--without-nav"}`}
|
||||
>
|
||||
<AppHeader />
|
||||
|
||||
@@ -321,6 +310,7 @@ function App() {
|
||||
path="/communities/:cid/internal-stats"
|
||||
element={<CommunityInternalStatsPage />}
|
||||
/>
|
||||
<Route path="/communities/:cid/internal-stats/players/:userId" element={<CommunityInternalPlayerPage />} />
|
||||
<Route
|
||||
path="/communities/:cid/internal-stats/match/:matchId"
|
||||
element={<InternalMatchDetailPage />}
|
||||
|
||||
Reference in new issue
Block a user