feat(web): add legal footer
This commit is contained in:
1 parent
f586542dc3
commit
6fc58fec1d
1 file changed
+123
-37
+123
-37
@@ -1,4 +1,5 @@
|
|||||||
import { BrowserRouter, Link, Route, Routes } from "react-router";
|
import { BrowserRouter, Link, Route, Routes } from "react-router";
|
||||||
|
import type { ReactNode } from "react";
|
||||||
import { useMsal } from "@azure/msal-react";
|
import { useMsal } from "@azure/msal-react";
|
||||||
import { Moon, Sun } from "lucide-react";
|
import { Moon, Sun } from "lucide-react";
|
||||||
import DevAuthSwitcher from "./components/DevAuthSwitcher";
|
import DevAuthSwitcher from "./components/DevAuthSwitcher";
|
||||||
@@ -65,13 +66,60 @@ function ThemeToggle() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function AppFooter() {
|
||||||
|
return (
|
||||||
|
<footer className="border-t border-base-content/10 bg-base-100">
|
||||||
|
<div className="max-w-5xl mx-auto px-4 sm:px-6 py-8 text-xs text-base-content/35">
|
||||||
|
<nav className="flex items-center gap-4 mb-4 font-semibold text-base-content/45">
|
||||||
|
<Link to="/terms" className="hover:text-base-content">
|
||||||
|
서비스 이용약관
|
||||||
|
</Link>
|
||||||
|
<Link to="/privacy" className="hover:text-base-content">
|
||||||
|
개인정보처리방침
|
||||||
|
</Link>
|
||||||
|
</nav>
|
||||||
|
<p className="leading-relaxed max-w-4xl">
|
||||||
|
© 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>
|
||||||
|
</footer>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function LegalPage({
|
||||||
|
title,
|
||||||
|
children,
|
||||||
|
}: {
|
||||||
|
title: string;
|
||||||
|
children: ReactNode;
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<main className="max-w-3xl mx-auto px-4 sm:px-6 py-12">
|
||||||
|
<Link
|
||||||
|
to="/"
|
||||||
|
className="inline-flex text-xs text-base-content/40 hover:text-base-content mb-5"
|
||||||
|
>
|
||||||
|
← 홈으로
|
||||||
|
</Link>
|
||||||
|
<h1 className="text-2xl font-black text-base-content">{title}</h1>
|
||||||
|
<div className="mt-6 space-y-4 text-sm leading-7 text-base-content/60">
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const communityQuery = useCommunity(DEFAULT_COMMUNITY_ID);
|
const communityQuery = useCommunity(DEFAULT_COMMUNITY_ID);
|
||||||
const communityLabel = communityQuery.data?.name ?? "LOLYMPUS";
|
const communityLabel = communityQuery.data?.name ?? "LOLYMPUS";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
<div className="min-h-screen bg-base-100">
|
<div className="min-h-screen bg-base-100 flex flex-col">
|
||||||
<nav className="bg-base-100 border-b border-base-content/10 sticky top-0 z-50">
|
<nav className="bg-base-100 border-b border-base-content/10 sticky top-0 z-50">
|
||||||
<div className="max-w-5xl mx-auto px-4 sm:px-6 flex items-center justify-between h-11">
|
<div className="max-w-5xl mx-auto px-4 sm:px-6 flex items-center justify-between h-11">
|
||||||
<Link
|
<Link
|
||||||
@@ -96,42 +144,80 @@ function App() {
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<Routes>
|
<div className="flex-1">
|
||||||
<Route path="/" element={<HomePage />} />
|
<Routes>
|
||||||
<Route path="/login" element={<LoginPage />} />
|
<Route path="/" element={<HomePage />} />
|
||||||
<Route path="/auth/callback" element={<AuthCallbackPage />} />
|
<Route path="/login" element={<LoginPage />} />
|
||||||
<Route path="/match/:id" element={<MatchDetailPage />} />
|
<Route path="/auth/callback" element={<AuthCallbackPage />} />
|
||||||
<Route
|
<Route path="/match/:id" element={<MatchDetailPage />} />
|
||||||
path="/match/:id/team/:teamIndex"
|
<Route
|
||||||
element={<MatchTeamProgressPage />}
|
path="/match/:id/team/:teamIndex"
|
||||||
/>
|
element={<MatchTeamProgressPage />}
|
||||||
<Route path="/match/:id/auction" element={<AuctionPage />} />
|
/>
|
||||||
<Route path="/users/:userId/history" element={<UserHistoryPage />} />
|
<Route path="/match/:id/auction" element={<AuctionPage />} />
|
||||||
<Route
|
<Route path="/users/:userId/history" element={<UserHistoryPage />} />
|
||||||
path="/communities/:cid/internal-stats"
|
<Route
|
||||||
element={<CommunityInternalStatsPage />}
|
path="/communities/:cid/internal-stats"
|
||||||
/>
|
element={<CommunityInternalStatsPage />}
|
||||||
<Route
|
/>
|
||||||
path="/communities/:cid/internal-stats/match/:matchId"
|
<Route
|
||||||
element={<InternalMatchDetailPage />}
|
path="/communities/:cid/internal-stats/match/:matchId"
|
||||||
/>
|
element={<InternalMatchDetailPage />}
|
||||||
<Route
|
/>
|
||||||
path="/admin/communities/:cid/matches"
|
<Route
|
||||||
element={<MatchAdminPage />}
|
path="/admin/communities/:cid/matches"
|
||||||
/>
|
element={<MatchAdminPage />}
|
||||||
<Route
|
/>
|
||||||
path="/admin/communities/:cid/tournament-codes"
|
<Route
|
||||||
element={<TournamentCodesPage />}
|
path="/admin/communities/:cid/tournament-codes"
|
||||||
/>
|
element={<TournamentCodesPage />}
|
||||||
<Route
|
/>
|
||||||
path="/admin/communities/:cid/legacy-import"
|
<Route
|
||||||
element={<LegacyImportPage />}
|
path="/admin/communities/:cid/legacy-import"
|
||||||
/>
|
element={<LegacyImportPage />}
|
||||||
<Route
|
/>
|
||||||
path="/admin/communities/:cid/legacy-matches"
|
<Route
|
||||||
element={<LegacyMatchesPage />}
|
path="/admin/communities/:cid/legacy-matches"
|
||||||
/>
|
element={<LegacyMatchesPage />}
|
||||||
</Routes>
|
/>
|
||||||
|
<Route
|
||||||
|
path="/terms"
|
||||||
|
element={
|
||||||
|
<LegalPage title="서비스 이용약관">
|
||||||
|
<p>
|
||||||
|
This service is provided for community tournament support,
|
||||||
|
including match scheduling, participation management, team
|
||||||
|
organization, and related statistics.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
By using this service, users agree not to interfere with
|
||||||
|
service operation, misuse community data, or submit content
|
||||||
|
that violates applicable laws or community rules.
|
||||||
|
</p>
|
||||||
|
</LegalPage>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/privacy"
|
||||||
|
element={
|
||||||
|
<LegalPage title="개인정보처리방침">
|
||||||
|
<p>
|
||||||
|
This service processes account, profile, match
|
||||||
|
participation, team, and authentication data only as needed
|
||||||
|
to operate community tournament features.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Users may request access, correction, or deletion of their
|
||||||
|
personal data through the service administrator, subject to
|
||||||
|
records that must be retained for service integrity or legal
|
||||||
|
obligations.
|
||||||
|
</p>
|
||||||
|
</LegalPage>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</Routes>
|
||||||
|
</div>
|
||||||
|
<AppFooter />
|
||||||
<DevAuthSwitcher />
|
<DevAuthSwitcher />
|
||||||
</div>
|
</div>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
|
|||||||
Reference in new issue
Block a user