feat(web): implement main pages and auction system

- Set up React Router with routes for Home, Match Detail, and Auction pages
- Integrate Tailwind CSS and daisyUI for application styling
- Implement match management UI components using mock data
- Add auction team-building simulation logic and associated types
- Update project configuration to support the new UI framework
This commit is contained in:
dahyeon authored and 박다현 (Dahyeon Park) committed 2026-04-15 02:05:31 +09:00
1 parent 41e7c86b50
commit c5d8c9cf6e
19 files changed
+2499 -466

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>web</title>
<title>롤림푸스 - 내전 관리</title>
</head>
<body>
<div id="root"></div>
+5 -1
View File
@@ -11,18 +11,22 @@
},
"dependencies": {
"react": "^19.2.4",
"react-dom": "^19.2.4"
"react-dom": "^19.2.4",
"react-router": "^7.14.0"
},
"devDependencies": {
"@eslint/js": "^9.39.4",
"@tailwindcss/vite": "^4.2.2",
"@types/node": "^24.12.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"daisyui": "^5.5.19",
"eslint": "^9.39.4",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
"tailwindcss": "^4.2.2",
"typescript": "~6.0.2",
"typescript-eslint": "^8.58.0",
"vite": "^8.0.4"
+1 -184
View File
@@ -1,184 +1 @@
.counter {
font-size: 16px;
padding: 5px 10px;
border-radius: 5px;
color: var(--accent);
background: var(--accent-bg);
border: 2px solid transparent;
transition: border-color 0.3s;
margin-bottom: 24px;
&:hover {
border-color: var(--accent-border);
}
&:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
}
.hero {
position: relative;
.base,
.framework,
.vite {
inset-inline: 0;
margin: 0 auto;
}
.base {
width: 170px;
position: relative;
z-index: 0;
}
.framework,
.vite {
position: absolute;
}
.framework {
z-index: 1;
top: 34px;
height: 28px;
transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg)
scale(1.4);
}
.vite {
z-index: 0;
top: 107px;
height: 26px;
width: auto;
transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg)
scale(0.8);
}
}
#center {
display: flex;
flex-direction: column;
gap: 25px;
place-content: center;
place-items: center;
flex-grow: 1;
@media (max-width: 1024px) {
padding: 32px 20px 24px;
gap: 18px;
}
}
#next-steps {
display: flex;
border-top: 1px solid var(--border);
text-align: left;
& > div {
flex: 1 1 0;
padding: 32px;
@media (max-width: 1024px) {
padding: 24px 20px;
}
}
.icon {
margin-bottom: 16px;
width: 22px;
height: 22px;
}
@media (max-width: 1024px) {
flex-direction: column;
text-align: center;
}
}
#docs {
border-right: 1px solid var(--border);
@media (max-width: 1024px) {
border-right: none;
border-bottom: 1px solid var(--border);
}
}
#next-steps ul {
list-style: none;
padding: 0;
display: flex;
gap: 8px;
margin: 32px 0 0;
.logo {
height: 18px;
}
a {
color: var(--text-h);
font-size: 16px;
border-radius: 6px;
background: var(--social-bg);
display: flex;
padding: 6px 12px;
align-items: center;
gap: 8px;
text-decoration: none;
transition: box-shadow 0.3s;
&:hover {
box-shadow: var(--shadow);
}
.button-icon {
height: 18px;
width: 18px;
}
}
@media (max-width: 1024px) {
margin-top: 20px;
flex-wrap: wrap;
justify-content: center;
li {
flex: 1 1 calc(50% - 8px);
}
a {
width: 100%;
justify-content: center;
box-sizing: border-box;
}
}
}
#spacer {
height: 88px;
border-top: 1px solid var(--border);
@media (max-width: 1024px) {
height: 48px;
}
}
.ticks {
position: relative;
width: 100%;
&::before,
&::after {
content: '';
position: absolute;
top: -4.5px;
border: 5px solid transparent;
}
&::before {
left: 0;
border-left-color: var(--border);
}
&::after {
right: 0;
border-right-color: var(--border);
}
}
/* App-specific styles — currently using Tailwind + daisyUI */
+26 -115
View File
@@ -1,121 +1,32 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from './assets/vite.svg'
import heroImg from './assets/hero.png'
import './App.css'
import { BrowserRouter, Routes, Route } from "react-router";
import HomePage from "./pages/HomePage";
import MatchDetailPage from "./pages/MatchDetailPage";
import AuctionPage from "./pages/AuctionPage";
function App() {
const [count, setCount] = useState(0)
return (
<>
<section id="center">
<div className="hero">
<img src={heroImg} className="base" width="170" height="179" alt="" />
<img src={reactLogo} className="framework" alt="React logo" />
<img src={viteLogo} className="vite" alt="Vite logo" />
</div>
<div>
<h1>Get started</h1>
<p>
Edit <code>src/App.tsx</code> and save to test <code>HMR</code>
</p>
</div>
<button
className="counter"
onClick={() => setCount((count) => count + 1)}
>
Count is {count}
</button>
</section>
<BrowserRouter>
<div className="min-h-screen bg-base-100">
{/* Navbar */}
<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 h-11">
<a
className="text-sm font-bold tracking-tight text-base-content"
href="/"
>
LOLYMPUS
</a>
</div>
</nav>
<div className="ticks"></div>
<section id="next-steps">
<div id="docs">
<svg className="icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#documentation-icon"></use>
</svg>
<h2>Documentation</h2>
<p>Your questions, answered</p>
<ul>
<li>
<a href="https://vite.dev/" target="_blank">
<img className="logo" src={viteLogo} alt="" />
Explore Vite
</a>
</li>
<li>
<a href="https://react.dev/" target="_blank">
<img className="button-icon" src={reactLogo} alt="" />
Learn more
</a>
</li>
</ul>
</div>
<div id="social">
<svg className="icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#social-icon"></use>
</svg>
<h2>Connect with us</h2>
<p>Join the Vite community</p>
<ul>
<li>
<a href="https://github.com/vitejs/vite" target="_blank">
<svg
className="button-icon"
role="presentation"
aria-hidden="true"
>
<use href="/icons.svg#github-icon"></use>
</svg>
GitHub
</a>
</li>
<li>
<a href="https://chat.vite.dev/" target="_blank">
<svg
className="button-icon"
role="presentation"
aria-hidden="true"
>
<use href="/icons.svg#discord-icon"></use>
</svg>
Discord
</a>
</li>
<li>
<a href="https://x.com/vite_js" target="_blank">
<svg
className="button-icon"
role="presentation"
aria-hidden="true"
>
<use href="/icons.svg#x-icon"></use>
</svg>
X.com
</a>
</li>
<li>
<a href="https://bsky.app/profile/vite.dev" target="_blank">
<svg
className="button-icon"
role="presentation"
aria-hidden="true"
>
<use href="/icons.svg#bluesky-icon"></use>
</svg>
Bluesky
</a>
</li>
</ul>
</div>
</section>
<div className="ticks"></div>
<section id="spacer"></section>
</>
)
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/match/:id" element={<MatchDetailPage />} />
<Route path="/match/:id/auction" element={<AuctionPage />} />
</Routes>
</div>
</BrowserRouter>
);
}
export default App
export default App;
Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

+427
View File
@@ -0,0 +1,427 @@
import type { AuctionPlayer, AuctionState, AuctionTeam } from "./auction-types";
const auctionPlayers: AuctionPlayer[] = [
{
id: 3,
summonerName: "프리리",
tag: "0000",
tier: {
previousSeason: "플래티넘 I",
current: "에메랄드 I",
peak: "에메랄드 I",
},
mainPosition: "TOP",
subPosition: "MID",
profileIconId: 588,
masteries: [
{
championName: "신드라",
championId: "Syndra",
level: 7,
points: 124300,
},
{
championName: "아리",
championId: "Ahri",
level: 7,
points: 98200,
},
{
championName: "르블랑",
championId: "Leblanc",
level: 6,
points: 45100,
},
],
recentStats: {
games: 20,
wins: 13,
losses: 7,
kda: { kills: 8.2, deaths: 7.0, assists: 7.8 },
avgCs: 178,
},
},
{
id: 6,
summonerName: "면정학",
tag: "1234",
tier: {
previousSeason: "플래티넘 III",
current: "에메랄드 III",
peak: "에메랄드 III",
},
mainPosition: "MID",
subPosition: "ADC",
profileIconId: 6207,
masteries: [
{
championName: "오리아나",
championId: "Orianna",
level: 7,
points: 312500,
},
{
championName: "신드라",
championId: "Syndra",
level: 7,
points: 156800,
},
{ championName: "빅토르", championId: "Viktor", level: 6, points: 67200 },
],
recentStats: {
games: 20,
wins: 9,
losses: 11,
kda: { kills: 5.4, deaths: 7.3, assists: 7.9 },
avgCs: 195,
},
},
{
id: 5,
summonerName: "던던",
tag: "KR1",
tier: {
previousSeason: "마스터 47LP",
current: "다이아몬드 II",
peak: "마스터 6LP",
},
mainPosition: "MID",
subPosition: "SUP",
profileIconId: 7036,
masteries: [
{ championName: "조이", championId: "Zoe", level: 7, points: 189400 },
{
championName: "제라스",
championId: "Xerath",
level: 7,
points: 134200,
},
{
championName: "흐웨이",
championId: "Hwei",
level: 6,
points: 78900,
},
],
recentStats: {
games: 15,
wins: 5,
losses: 10,
kda: { kills: 6.1, deaths: 5.1, assists: 6.0 },
avgCs: 212,
},
},
{
id: 8,
summonerName: "정글러123",
tag: "KR3",
tier: {
previousSeason: "골드 I",
current: "플래티넘 III",
peak: "플래티넘 III",
},
mainPosition: "JGL",
subPosition: "SUP",
profileIconId: 4789,
masteries: [
{ championName: "리신", championId: "LeeSin", level: 7, points: 201300 },
{ championName: "비에고", championId: "Viego", level: 6, points: 87600 },
{ championName: "렝가", championId: "Rengar", level: 6, points: 65400 },
],
recentStats: {
games: 38,
wins: 18,
losses: 20,
kda: { kills: 5.4, deaths: 5.8, assists: 8.1 },
avgCs: 142,
},
},
{
id: 9,
summonerName: "탑솔장인",
tag: "KR1",
tier: {
previousSeason: "에메랄드 IV",
current: "에메랄드 II",
peak: "에메랄드 I",
},
mainPosition: "TOP",
subPosition: "JGL",
profileIconId: 5450,
masteries: [
{ championName: "잭스", championId: "Jax", level: 7, points: 145600 },
{ championName: "요릭", championId: "Yorick", level: 7, points: 112400 },
{ championName: "나서스", championId: "Nasus", level: 6, points: 89300 },
],
recentStats: {
games: 47,
wins: 27,
losses: 20,
kda: { kills: 5.6, deaths: 3.9, assists: 4.1 },
avgCs: 201,
},
},
{
id: 4,
summonerName: "요들마스터",
tag: "KR2",
tier: {
previousSeason: "다이아 II",
current: "다이아 III",
peak: "다이아 I",
},
mainPosition: "SUP",
subPosition: "MID",
profileIconId: 4951,
masteries: [
{
championName: "쓰레쉬",
championId: "Thresh",
level: 7,
points: 267800,
},
{
championName: "노틸러스",
championId: "Nautilus",
level: 7,
points: 134500,
},
{ championName: "룰루", championId: "Lulu", level: 6, points: 78900 },
],
recentStats: {
games: 61,
wins: 36,
losses: 25,
kda: { kills: 2.1, deaths: 3.8, assists: 14.2 },
avgCs: 32,
},
},
{
id: 10,
summonerName: "서폿장인",
tag: "0001",
tier: {
previousSeason: "다이아 III",
current: "다이아 IV",
peak: "다이아 II",
},
mainPosition: "SUP",
subPosition: "ADC",
profileIconId: 4900,
masteries: [
{ championName: "유미", championId: "Yuumi", level: 7, points: 198700 },
{ championName: "소나", championId: "Sona", level: 7, points: 145200 },
{ championName: "나미", championId: "Nami", level: 6, points: 92100 },
],
recentStats: {
games: 52,
wins: 30,
losses: 22,
kda: { kills: 1.8, deaths: 4.2, assists: 16.3 },
avgCs: 25,
},
},
{
id: 2,
summonerName: "Shadow Wolf",
tag: "KR1",
tier: {
previousSeason: "다이아 IV",
current: "플래티넘 II",
peak: "다이아 II",
},
mainPosition: "JGL",
subPosition: "TOP",
profileIconId: 4834,
masteries: [
{
championName: "니달리",
championId: "Nidalee",
level: 7,
points: 178900,
},
{ championName: "엘리스", championId: "Elise", level: 7, points: 134500 },
{
championName: "그레이브즈",
championId: "Graves",
level: 6,
points: 67800,
},
],
recentStats: {
games: 44,
wins: 22,
losses: 22,
kda: { kills: 6.5, deaths: 4.7, assists: 7.8 },
avgCs: 156,
},
},
];
function createInitialState(): AuctionState {
const blueTeam: AuctionTeam = {
side: "blue",
captainName: "프리리",
points: 1000,
members: [],
};
const redTeam: AuctionTeam = {
side: "red",
captainName: "IceQueen",
points: 1000,
members: [],
};
return {
matchId: 1,
phase: "waiting",
teams: [blueTeam, redTeam],
currentPlayer: null,
currentPlayerIndex: -1,
totalPlayers: auctionPlayers.length,
auctionOrder: auctionPlayers,
bids: [],
currentBid: 0,
currentBidder: null,
timer: 0,
maxTimer: 15,
};
}
// Mock WebSocket - 경매 시뮬레이션
export function createMockAuction(onUpdate: (state: AuctionState) => void) {
let state = createInitialState();
let timerInterval: ReturnType<typeof setInterval> | null = null;
let isRunning = false;
function emit() {
onUpdate({
...state,
teams: [{ ...state.teams[0] }, { ...state.teams[1] }],
});
}
function clearTimer() {
if (timerInterval) {
clearInterval(timerInterval);
timerInterval = null;
}
}
function startBidTimer() {
clearTimer();
state.timer = state.maxTimer;
emit();
timerInterval = setInterval(() => {
state.timer--;
emit();
if (state.timer <= 0) {
clearTimer();
handleTimerEnd();
}
}, 1000);
}
function handleTimerEnd() {
if (state.currentBidder && state.currentPlayer) {
// 낙찰
const teamIdx = state.currentBidder === "blue" ? 0 : 1;
state.teams[teamIdx].points -= state.currentBid;
state.teams[teamIdx].members.push({
...state.currentPlayer,
cost: state.currentBid,
assignedPosition: state.currentPlayer.mainPosition,
});
state.phase = "sold";
emit();
// 다음 선수로
setTimeout(() => {
if (!isRunning) return;
nextPlayer();
}, 2000);
} else {
// 유찰 → 최소 가격으로 랜덤 팀에 배정
if (state.currentPlayer) {
const randomSide = Math.random() > 0.5 ? 0 : 1;
const minCost = 50;
state.teams[randomSide].points -= minCost;
state.teams[randomSide].members.push({
...state.currentPlayer,
cost: minCost,
assignedPosition: state.currentPlayer.mainPosition,
});
state.phase = "sold";
state.currentBid = minCost;
state.currentBidder = randomSide === 0 ? "blue" : "red";
emit();
setTimeout(() => {
if (!isRunning) return;
nextPlayer();
}, 2000);
}
}
}
function nextPlayer() {
const nextIdx = state.currentPlayerIndex + 1;
if (nextIdx >= state.auctionOrder.length) {
state.phase = "complete";
state.currentPlayer = null;
emit();
return;
}
state.currentPlayerIndex = nextIdx;
state.currentPlayer = state.auctionOrder[nextIdx];
state.bids = [];
state.currentBid = 0;
state.currentBidder = null;
state.phase = "presenting";
emit();
// 2초 뒤 입찰 시작
setTimeout(() => {
if (!isRunning) return;
state.phase = "bidding";
startBidTimer();
}, 2500);
}
return {
start() {
isRunning = true;
state.phase = "waiting";
emit();
setTimeout(() => {
if (!isRunning) return;
nextPlayer();
}, 1500);
},
bid(side: "blue" | "red", amount: number) {
if (state.phase !== "bidding") return;
const teamIdx = side === "blue" ? 0 : 1;
if (amount <= state.currentBid) return;
if (amount > state.teams[teamIdx].points) return;
state.currentBid = amount;
state.currentBidder = side;
state.bids.push({ side, amount, timestamp: Date.now() });
// 입찰 시 타이머 리셋 (최소 5초)
if (state.timer < 5) {
state.timer = 5;
}
emit();
},
destroy() {
isRunning = false;
clearTimer();
},
getState: () => state,
};
}
+69
View File
@@ -0,0 +1,69 @@
import type { Participant, Position } from "./mock";
export interface ChampionMastery {
championName: string;
championId: string;
level: number;
points: number;
}
export interface RecentStats {
games: number;
wins: number;
losses: number;
kda: { kills: number; deaths: number; assists: number };
avgCs: number;
}
export interface AuctionPlayer extends Participant {
masteries: ChampionMastery[];
recentStats: RecentStats;
}
export interface AuctionTeam {
side: "blue" | "red";
captainName: string;
points: number;
members: (AuctionPlayer & { cost: number; assignedPosition: Position })[];
}
export type AuctionPhase =
| "waiting"
| "presenting"
| "bidding"
| "sold"
| "complete";
export interface BidEntry {
side: "blue" | "red";
amount: number;
timestamp: number;
}
export interface AuctionState {
matchId: number;
phase: AuctionPhase;
teams: [AuctionTeam, AuctionTeam];
currentPlayer: AuctionPlayer | null;
currentPlayerIndex: number;
totalPlayers: number;
auctionOrder: AuctionPlayer[];
bids: BidEntry[];
currentBid: number;
currentBidder: "blue" | "red" | null;
timer: number;
maxTimer: number;
}
// WebSocket message types (서버 → 클라이언트)
export type ServerMessage =
| { type: "auction:init"; state: AuctionState }
| { type: "auction:present"; player: AuctionPlayer; index: number }
| { type: "auction:bid"; side: "blue" | "red"; amount: number }
| { type: "auction:timer"; remaining: number }
| { type: "auction:sold"; side: "blue" | "red"; player: AuctionPlayer; cost: number }
| { type: "auction:complete"; teams: [AuctionTeam, AuctionTeam] };
// WebSocket message types (클라이언트 → 서버)
export type ClientMessage =
| { type: "bid"; amount: number };
+34 -99
View File
@@ -1,111 +1,46 @@
:root {
--text: #6b6375;
--text-h: #08060d;
--bg: #fff;
--border: #e5e4e7;
--code-bg: #f4f3ec;
--accent: #aa3bff;
--accent-bg: rgba(170, 59, 255, 0.1);
--accent-border: rgba(170, 59, 255, 0.5);
--social-bg: rgba(244, 243, 236, 0.5);
--shadow:
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
@import url("https://fonts.googleapis.com/css2?family=Asta+Sans:wght@300..800&family=Gamja+Flower&display=swap");
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
--mono: ui-monospace, Consolas, monospace;
font: 18px/145% var(--sans);
letter-spacing: 0.18px;
color-scheme: light dark;
color: var(--text);
background: var(--bg);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: 1024px) {
font-size: 16px;
}
}
@media (prefers-color-scheme: dark) {
:root {
--text: #9ca3af;
--text-h: #f3f4f6;
--bg: #16171d;
--border: #2e303a;
--code-bg: #1f2028;
--accent: #c084fc;
--accent-bg: rgba(192, 132, 252, 0.15);
--accent-border: rgba(192, 132, 252, 0.5);
--social-bg: rgba(47, 48, 58, 0.5);
--shadow:
rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
}
#social .button-icon {
filter: invert(1) brightness(2);
}
}
#root {
width: 1126px;
max-width: 100%;
margin: 0 auto;
text-align: center;
border-inline: 1px solid var(--border);
min-height: 100svh;
display: flex;
flex-direction: column;
box-sizing: border-box;
@import "tailwindcss";
@plugin "daisyui" {
themes:
light --default,
dark --prefersdark;
}
body {
margin: 0;
font-family:
"Asta Sans",
-apple-system,
BlinkMacSystemFont,
system-ui,
Roboto,
"Helvetica Neue",
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
"Malgun Gothic",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
sans-serif;
font-size: 14px;
line-height: 1.5;
}
h1,
h2 {
font-family: var(--heading);
font-weight: 500;
color: var(--text-h);
/* poro.gg style: 모든 모서리 각지게 */
*,
*::before,
*::after {
border-radius: 0 !important;
}
h1 {
font-size: 56px;
letter-spacing: -1.68px;
margin: 32px 0;
@media (max-width: 1024px) {
font-size: 36px;
margin: 20px 0;
}
}
h2 {
font-size: 24px;
line-height: 118%;
letter-spacing: -0.24px;
margin: 0 0 8px;
@media (max-width: 1024px) {
font-size: 20px;
}
}
p {
margin: 0;
/* daisyUI badge만 살짝 둥글게 (pill 형태) */
.badge {
border-radius: 2px !important;
}
code,
.counter {
font-family: var(--mono);
display: inline-flex;
border-radius: 4px;
color: var(--text-h);
}
code {
font-size: 15px;
line-height: 135%;
padding: 4px 8px;
background: var(--code-bg);
/* 버튼도 각지게 */
.btn {
border-radius: 0 !important;
}
+404
View File
@@ -0,0 +1,404 @@
// LoL 포지션
export type Position = "TOP" | "JGL" | "MID" | "ADC" | "SUP";
export type MatchStatus = "recruiting" | "team-built" | "finished";
export interface TierInfo {
previousSeason: string;
current: string;
peak: string;
}
export interface Participant {
id: number;
summonerName: string;
tag: string;
tier: TierInfo;
mainPosition: Position;
subPosition: Position;
profileIconId: number;
}
export interface Team {
name: string;
participants: (Participant & { assignedPosition: Position })[];
}
export interface MatchDetail {
id: number;
title: string;
date: string;
time: string;
status: MatchStatus;
description: string;
map: string;
maxParticipants: number;
participants: Participant[];
teams?: [Team, Team];
result?: { winner: string; blueScore: number; redScore: number };
prizes?: string[];
notices?: string[];
schedule?: { time: string; label: string }[];
}
export const positionLabel: Record<Position, string> = {
TOP: "탑",
JGL: "정글",
MID: "미드",
ADC: "원딜",
SUP: "서폿",
};
import posTop from "./assets/position/Top_icon.png";
import posJgl from "./assets/position/Jungle_icon.png";
import posMid from "./assets/position/Middle_icon.png";
import posAdc from "./assets/position/Bottom_icon.png";
import posSup from "./assets/position/Support_icon.png";
export const positionIcon: Record<Position, string> = {
TOP: posTop,
JGL: posJgl,
MID: posMid,
ADC: posAdc,
SUP: posSup,
};
const participants: Participant[] = [
{
id: 1,
summonerName: "프리리",
tag: "KR1",
tier: {
previousSeason: "플래티넘 I",
current: "다이아 IV",
peak: "다이아 IV",
},
mainPosition: "MID",
subPosition: "ADC",
profileIconId: 588,
},
{
id: 2,
summonerName: "호호불어먹어요",
tag: "0000",
tier: {
previousSeason: "다이아 IV",
current: "플래티넘 II",
peak: "다이아 IV",
},
mainPosition: "JGL",
subPosition: "TOP",
profileIconId: 7015,
},
{
id: 3,
summonerName: "소다",
tag: "KR1",
tier: {
previousSeason: "플래티넘 I",
current: "에메랄드 I",
peak: "에메랄드 I",
},
mainPosition: "TOP",
subPosition: "MID",
profileIconId: 5186,
},
{
id: 4,
summonerName: "잉호바",
tag: "KR1",
tier: {
previousSeason: "다이아 II",
current: "다이아 III",
peak: "마스터 200LP",
},
mainPosition: "SUP",
subPosition: "MID",
profileIconId: 7050,
},
{
id: 5,
summonerName: "잉호바탭키도둑",
tag: "Tab",
tier: {
previousSeason: "에메랄드 II",
current: "플래티넘 I",
peak: "에메랄드 I",
},
mainPosition: "ADC",
subPosition: "SUP",
profileIconId: 5231,
},
{
id: 6,
summonerName: "osu",
tag: "KR1",
tier: {
previousSeason: "플래티넘 III",
current: "에메랄드 III",
peak: "마스터 200LP",
},
mainPosition: "MID",
subPosition: "JGL",
profileIconId: 7091,
},
{
id: 7,
summonerName: "IceQueen",
tag: "KR1",
tier: {
previousSeason: "다이아 I",
current: "다이아 II",
peak: "마스터 50LP",
},
mainPosition: "ADC",
subPosition: "MID",
profileIconId: 5102,
},
{
id: 8,
summonerName: "정글러123",
tag: "KR3",
tier: {
previousSeason: "골드 I",
current: "플래티넘 III",
peak: "플래티넘 III",
},
mainPosition: "JGL",
subPosition: "SUP",
profileIconId: 4789,
},
{
id: 9,
summonerName: "탑솔장인",
tag: "KR1",
tier: {
previousSeason: "에메랄드 IV",
current: "에메랄드 II",
peak: "에메랄드 I",
},
mainPosition: "TOP",
subPosition: "JGL",
profileIconId: 5450,
},
{
id: 10,
summonerName: "서폿장인",
tag: "0001",
tier: {
previousSeason: "다이아 III",
current: "다이아 IV",
peak: "다이아 II",
},
mainPosition: "SUP",
subPosition: "ADC",
profileIconId: 4900,
},
];
// 내전 1: 팀빌딩 전 (모집 중)
export const match_recruiting: MatchDetail = {
id: 2,
title: "쌀먹 내전",
date: "2026년 4월 19일 (일)",
time: "오후 3시",
status: "recruiting",
description: "JEIFF님의 후원으로 개최되는 쌀먹 내전. 많관부~",
map: "소환사의 협곡",
maxParticipants: 10,
participants: participants.slice(0, 6),
prizes: ["5명 추첨 커피", "MVP: 스킨 선물"],
notices: [
"시작 10분 전까지 커스텀 방에 입장해주세요.",
"무단 불참 시 다음 내전 참여가 제한될 수 있습니다.",
"게임 중 과도한 욕설은 자제해주세요.",
],
schedule: [
{ time: "21:45", label: "로비 오픈" },
{ time: "21:50", label: "경매 시작" },
{ time: "22:00", label: "게임 시작" },
{ time: "~24:00", label: "예상 종료" },
],
};
// 내전 2: 팀빌딩 완료, 게임 시작 전
export const match_teamBuilt: MatchDetail = {
id: 1,
title: "롤림푸스 멸망전 시즌 4 결승전",
date: "2026년 4월 18일 (토)",
time: "오후 8시",
status: "team-built",
description: "시즌 4 최종 결승전입니다. ABC팀 VS DEF팀으로 진행됩니다.",
map: "소환사의 협곡",
maxParticipants: 10,
participants,
teams: [
{
name: "블루팀",
participants: [
{ ...participants[0], assignedPosition: "MID" },
{ ...participants[1], assignedPosition: "JGL" },
{ ...participants[2], assignedPosition: "TOP" },
{ ...participants[4], assignedPosition: "ADC" },
{ ...participants[9], assignedPosition: "SUP" },
],
},
{
name: "레드팀",
participants: [
{ ...participants[6], assignedPosition: "ADC" },
{ ...participants[5], assignedPosition: "MID" },
{ ...participants[8], assignedPosition: "TOP" },
{ ...participants[7], assignedPosition: "JGL" },
{ ...participants[3], assignedPosition: "SUP" },
],
},
],
prizes: ["승리 팀: 햄버거 세트", "패배 팀: 컴포즈커피 아메리카노"],
notices: [
"결승전은 3판 2선으로 진행됩니다.",
"시작 15분 전까지 디스코드 음성채널에 입장해주세요.",
"경기 중 감정 표현과 도발 모션은 금지입니다.",
],
schedule: [
{ time: "19:30", label: "디스코드 집합" },
{ time: "19:45", label: "팀빌딩 확인" },
{ time: "20:00", label: "1세트 시작" },
{ time: "20:40", label: "2세트 시작 (예상)" },
{ time: "21:20", label: "3세트 시작 (필요시)" },
],
};
// 내전 3: 게임 종료
export const match_finished: MatchDetail = {
id: 101,
title: "시즌 4 준결승",
date: "2026년 4월 11일 (금)",
time: "오후 8시",
status: "finished",
description: "시즌 4 준결승전입니다.",
map: "소환사의 협곡",
maxParticipants: 10,
participants,
teams: [
{
name: "블루팀",
participants: [
{ ...participants[0], assignedPosition: "MID" },
{ ...participants[1], assignedPosition: "JGL" },
{ ...participants[2], assignedPosition: "TOP" },
{ ...participants[4], assignedPosition: "ADC" },
{ ...participants[9], assignedPosition: "SUP" },
],
},
{
name: "레드팀",
participants: [
{ ...participants[6], assignedPosition: "ADC" },
{ ...participants[5], assignedPosition: "MID" },
{ ...participants[8], assignedPosition: "TOP" },
{ ...participants[7], assignedPosition: "JGL" },
{ ...participants[3], assignedPosition: "SUP" },
],
},
],
result: { winner: "블루팀", blueScore: 2, redScore: 1 },
prizes: ["1등 팀: RP 10,000 지급", "MVP: 프리리 (MID)"],
notices: [],
schedule: [],
};
// 메인 페이지용
export const nextMatchSummary = {
id: match_teamBuilt.id,
title: match_teamBuilt.title,
date: match_teamBuilt.date,
time: match_teamBuilt.time,
participants: match_teamBuilt.participants.length,
maxParticipants: match_teamBuilt.maxParticipants,
status: "모집 완료",
description: match_teamBuilt.description,
map: match_teamBuilt.map,
};
export const upcomingMatches = [
{
id: match_recruiting.id,
title: match_recruiting.title,
date: match_recruiting.date,
time: match_recruiting.time,
participants: match_recruiting.participants.length,
maxParticipants: match_recruiting.maxParticipants,
status: "모집 중",
map: match_recruiting.map,
},
{
id: 3,
title: "칼바람 나락 내전",
date: "2026년 4월 25일 (토)",
time: "오후 7시",
participants: 2,
maxParticipants: 10,
status: "모집 중",
map: "칼바람 나락",
},
{
id: 4,
title: "롤림푸스 시즌 5 개막전",
date: "2026년 5월 2일 (토)",
time: "오후 8시",
participants: 0,
maxParticipants: 10,
status: "예정",
map: "소환사의 협곡",
},
];
export const pastMatches = [
{
id: 101,
title: "시즌 4 준결승",
date: "2026년 4월 11일",
participants: 10,
result: "블루팀 승리",
map: "소환사의 협곡",
},
{
id: 102,
title: "평일 내전",
date: "2026년 4월 9일",
participants: 10,
result: "레드팀 승리",
map: "소환사의 협곡",
},
{
id: 103,
title: "칼바람 나락 내전",
date: "2026년 4월 5일",
participants: 10,
result: "-",
map: "칼바람 나락",
},
{
id: 104,
title: "시즌 4 8강",
date: "2026년 4월 4일",
participants: 10,
result: "블루팀 승리",
map: "소환사의 협곡",
},
{
id: 105,
title: "주말 내전",
date: "2026년 3월 29일",
participants: 10,
result: "레드팀 승리",
map: "소환사의 협곡",
},
];
export function getMatchById(id: number): MatchDetail | undefined {
return [match_recruiting, match_teamBuilt, match_finished].find(
(m) => m.id === id,
);
}
+605
View File
@@ -0,0 +1,605 @@
import { useEffect, useRef, useState } from "react";
import { useParams, Link } from "react-router";
import { createMockAuction } from "../auction-mock";
import type {
AuctionState,
AuctionPlayer,
AuctionTeam,
} from "../auction-types";
import { positionIcon, positionLabel, type Position } from "../mock";
// -- 티어 색상 --
function tierColor(tier: string): string {
if (tier.startsWith("챌린저")) return "text-amber-400";
if (tier.startsWith("그랜드마스터")) return "text-red-400";
if (tier.startsWith("마스터")) return "text-purple-400";
if (tier.startsWith("다이아")) return "text-cyan-400";
if (tier.startsWith("에메랄드")) return "text-emerald-400";
if (tier.startsWith("플래티넘")) return "text-teal-300";
if (tier.startsWith("골드")) return "text-yellow-400";
if (tier.startsWith("실버")) return "text-gray-300";
return "text-amber-700";
}
function formatPoints(n: number): string {
return n.toLocaleString();
}
function PosBadge({ pos }: { pos: Position }) {
return (
<span className="inline-flex items-center gap-1.5 text-[11px] font-medium px-1.5 py-0.5 border border-primary/20 text-primary bg-primary/5">
<img
src={positionIcon[pos]}
alt=""
className="w-3.5 h-3.5 object-contain"
/>
<span>{positionLabel[pos]}</span>
</span>
);
}
// -- 타이머 바 --
function TimerBar({ timer, maxTimer }: { timer: number; maxTimer: number }) {
const pct = (timer / maxTimer) * 100;
const urgent = timer <= 5;
return (
<div className="w-full h-1.5 bg-base-content/5">
<div
className={`h-full transition-all duration-1000 linear ${urgent ? "bg-red-500" : "bg-primary"}`}
style={{ width: `${pct}%` }}
/>
</div>
);
}
// -- 팀 패널 --
function TeamPanel({
team,
isActive,
isLeft,
}: {
team: AuctionTeam;
isActive: boolean;
isLeft: boolean;
}) {
const borderColor =
team.side === "blue" ? "border-blue-500/25" : "border-red-500/25";
const accentBar = team.side === "blue" ? "bg-blue-500" : "bg-red-500";
const sideColor = team.side === "blue" ? "text-blue-400" : "text-red-400";
const headerBg = team.side === "blue" ? "bg-blue-500/8" : "bg-red-500/8";
return (
<div
className={`border ${borderColor} bg-base-100 relative ${isActive ? "ring-1 ring-primary/30" : ""}`}
>
<div
className={`absolute ${isLeft ? "left-0" : "right-0"} top-0 bottom-0 w-0.5 ${accentBar}`}
/>
{/* 헤더 */}
<div className={`${headerBg} px-3 py-2 border-b ${borderColor}`}>
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<span
className={`text-[11px] font-bold uppercase tracking-wide ${sideColor}`}
>
{team.side === "blue" ? "블루팀" : "레드팀"}
</span>
<span className="text-[10px] text-base-content/30">
팀장: {team.captainName}
</span>
</div>
<span className="text-xs font-bold text-amber-400 tabular-nums">
{formatPoints(team.points)}P
</span>
</div>
</div>
{/* 멤버 목록 */}
<div className="divide-y divide-base-content/5">
{team.members.length === 0 ? (
<div className="px-3 py-6 text-center text-[11px] text-base-content/20">
아직 멤버가 없습니다
</div>
) : (
team.members.map((m) => (
<div key={m.id} className="px-3 py-1.5 flex items-center gap-2">
<div className="w-6 h-6 bg-base-content/10 overflow-hidden shrink-0">
<img
src={`https://ddragon.leagueoflegends.com/cdn/16.7.1/img/profileicon/${m.profileIconId}.png`}
alt=""
className="w-full h-full object-cover"
loading="lazy"
/>
</div>
<div className="flex-1 min-w-0">
<span className="text-[12px] font-medium text-base-content truncate block leading-tight">
{m.summonerName}
</span>
</div>
<PosBadge pos={m.assignedPosition} />
<span className="text-[10px] text-amber-400/60 tabular-nums w-8 text-right">
{m.cost}
</span>
</div>
))
)}
{/* 빈 슬롯 */}
{Array.from({ length: 4 - team.members.length }).map((_, i) => (
<div
key={`empty-${i}`}
className="px-3 py-1.5 h-[34px] flex items-center"
>
<div className="w-6 h-6 border border-dashed border-base-content/8 shrink-0" />
<span className="ml-2 text-[10px] text-base-content/10">—</span>
</div>
))}
</div>
</div>
);
}
// -- 현재 경매 선수 카드 --
function PlayerSpotlight({
player,
phase,
currentBid,
currentBidder,
}: {
player: AuctionPlayer;
phase: AuctionState["phase"];
currentBid: number;
currentBidder: "blue" | "red" | null;
}) {
const winRate =
player.recentStats.games > 0
? Math.round((player.recentStats.wins / player.recentStats.games) * 100)
: 0;
const kdaRatio =
player.recentStats.kda.deaths > 0
? (
(player.recentStats.kda.kills + player.recentStats.kda.assists) /
player.recentStats.kda.deaths
).toFixed(2)
: "Perfect";
return (
<div className="border border-base-content/10 bg-base-100">
{/* 선수 프로필 */}
<div className="p-5 border-b border-base-content/8">
<div className="flex items-start gap-4">
<div className="w-16 h-16 bg-base-content/10 overflow-hidden shrink-0">
<img
src={`https://ddragon.leagueoflegends.com/cdn/16.7.1/img/profileicon/${player.profileIconId}.png`}
alt=""
className="w-full h-full object-cover"
/>
</div>
<div className="flex-1">
<div className="flex items-center gap-2 mb-1">
<h3 className="text-lg font-bold text-base-content leading-tight">
{player.summonerName}
</h3>
<span className="text-[10px] text-base-content/25">
#{player.tag}
</span>
</div>
<div className="flex items-center gap-1.5 text-[11px] mb-2">
<span className="text-base-content/25">
{player.tier.previousSeason}
</span>
<span className="text-base-content/15">→</span>
<span className={`font-bold ${tierColor(player.tier.current)}`}>
{player.tier.current}
</span>
<span
className={`text-[10px] ${tierColor(player.tier.peak)} opacity-50`}
>
({player.tier.peak})
</span>
</div>
<div className="flex items-center gap-1.5">
<PosBadge pos={player.mainPosition} />
<span className="inline-flex items-center gap-0.5 text-[11px] px-1.5 py-0.5 border border-base-content/8 text-base-content/35">
<img
src={positionIcon[player.subPosition]}
alt=""
className="w-3.5 h-3.5 object-contain inline"
/>{" "}
{positionLabel[player.subPosition]}
</span>
</div>
</div>
</div>
</div>
{/* 스탯 그리드 */}
<div className="grid grid-cols-2 divide-x divide-base-content/5">
{/* 숙련도 */}
<div className="p-4">
<h4 className="text-[10px] font-bold uppercase tracking-wider text-base-content/30 mb-2.5">
숙련도 높은 챔피언
</h4>
<div className="space-y-2">
{player.masteries.map((m) => (
<div key={m.championId} className="flex items-center gap-2">
<div className="w-7 h-7 bg-base-content/10 overflow-hidden shrink-0">
<img
src={`https://ddragon.leagueoflegends.com/cdn/16.7.1/img/champion/${m.championId}.png`}
alt={m.championName}
className="w-full h-full object-cover"
loading="lazy"
/>
</div>
<div className="flex-1 min-w-0">
<div className="text-[12px] font-medium text-base-content truncate">
{m.championName}
</div>
<div className="text-[10px] text-base-content/25">
Lv.{m.level} · {(m.points / 1000).toFixed(0)}K
</div>
</div>
</div>
))}
</div>
</div>
{/* 최근 전적 */}
<div className="p-4">
<h4 className="text-[10px] font-bold uppercase tracking-wider text-base-content/30 mb-2.5">
최근 솔로랭크
</h4>
<div className="space-y-2">
<div className="flex items-baseline justify-between">
<span className="text-[11px] text-base-content/40">승률</span>
<span
className={`text-sm font-bold tabular-nums ${winRate >= 55 ? "text-blue-400" : winRate >= 50 ? "text-base-content" : "text-red-400"}`}
>
{winRate}%
</span>
</div>
<div className="flex items-baseline justify-between">
<span className="text-[11px] text-base-content/40">전적</span>
<span className="text-[12px] text-base-content/60 tabular-nums">
<span className="text-blue-400">
{player.recentStats.wins}W
</span>{" "}
<span className="text-red-400">
{player.recentStats.losses}L
</span>
</span>
</div>
<div className="flex items-baseline justify-between">
<span className="text-[11px] text-base-content/40">KDA</span>
<span className="text-[12px] text-base-content/60 tabular-nums">
{player.recentStats.kda.kills}/{player.recentStats.kda.deaths}/
{player.recentStats.kda.assists}
<span
className={`ml-1 font-bold ${Number(kdaRatio) >= 3 ? "text-emerald-400" : "text-base-content/50"}`}
>
({kdaRatio})
</span>
</span>
</div>
<div className="flex items-baseline justify-between">
<span className="text-[11px] text-base-content/40">평균 CS</span>
<span className="text-[12px] text-base-content/60 tabular-nums">
{player.recentStats.avgCs}
</span>
</div>
</div>
</div>
</div>
{/* 현재 입찰 상태 */}
{(phase === "bidding" || phase === "sold") && (
<div className="border-t border-base-content/8 px-4 py-3 bg-base-content/[0.02]">
<div className="flex items-center justify-between">
<span className="text-[11px] text-base-content/30 uppercase tracking-wider font-semibold">
{phase === "sold" ? "낙찰가" : "현재 입찰가"}
</span>
<div className="flex items-center gap-2">
{currentBidder && (
<span
className={`text-[10px] font-bold uppercase ${currentBidder === "blue" ? "text-blue-400" : "text-red-400"}`}
>
{currentBidder === "blue" ? "블루" : "레드"}
</span>
)}
<span className="text-lg font-black text-amber-400 tabular-nums">
{currentBid > 0 ? formatPoints(currentBid) : "—"}
</span>
</div>
</div>
</div>
)}
</div>
);
}
// -- 입찰 컨트롤 --
function BidControls({
state,
onBid,
}: {
state: AuctionState;
onBid: (side: "blue" | "red", amount: number) => void;
}) {
const [bidAmount, setBidAmount] = useState(100);
const minBid = state.currentBid + 10;
useEffect(() => {
setBidAmount(Math.max(minBid, Math.ceil(minBid / 10) * 10));
}, [state.currentBid]);
if (state.phase !== "bidding") return null;
const presets = [50, 100, 150, 200, 300, 500];
return (
<div className="border border-base-content/10 bg-base-100 p-4">
<div className="flex items-center gap-2 mb-3 flex-wrap">
{presets.map((p) => (
<button
key={p}
onClick={() => setBidAmount(Math.max(minBid, p))}
className={`text-[11px] px-2.5 py-1 border transition-colors ${
bidAmount === p
? "border-primary/40 bg-primary/10 text-primary"
: "border-base-content/10 text-base-content/40 hover:border-base-content/20"
}`}
>
{p}P
</button>
))}
<input
type="number"
value={bidAmount}
onChange={(e) =>
setBidAmount(Math.max(minBid, Number(e.target.value)))
}
min={minBid}
className="w-20 text-xs px-2 py-1 border border-base-content/10 bg-transparent text-base-content tabular-nums text-right focus:outline-none focus:border-primary/30"
/>
</div>
<div className="grid grid-cols-2 gap-2">
<button
onClick={() => onBid("blue", bidAmount)}
disabled={
bidAmount > state.teams[0].points || bidAmount <= state.currentBid
}
className="py-2 text-xs font-bold uppercase tracking-wide border border-blue-500/30 bg-blue-500/10 text-blue-400 hover:bg-blue-500/20 disabled:opacity-30 disabled:cursor-not-allowed transition-colors"
>
블루 입찰 ({formatPoints(bidAmount)}P)
</button>
<button
onClick={() => onBid("red", bidAmount)}
disabled={
bidAmount > state.teams[1].points || bidAmount <= state.currentBid
}
className="py-2 text-xs font-bold uppercase tracking-wide border border-red-500/30 bg-red-500/10 text-red-400 hover:bg-red-500/20 disabled:opacity-30 disabled:cursor-not-allowed transition-colors"
>
레드 입찰 ({formatPoints(bidAmount)}P)
</button>
</div>
</div>
);
}
// -- 입찰 로그 --
function BidLog({ bids }: { bids: AuctionState["bids"] }) {
const endRef = useRef<HTMLDivElement>(null);
useEffect(() => {
endRef.current?.scrollIntoView({ behavior: "smooth" });
}, [bids.length]);
if (bids.length === 0) return null;
return (
<div className="border border-base-content/10 bg-base-100 overflow-hidden">
<div className="px-3 py-1.5 border-b border-base-content/8 bg-base-200/40">
<span className="text-[10px] font-bold uppercase tracking-wider text-base-content/30">
입찰 기록
</span>
</div>
<div className="max-h-28 overflow-y-auto p-2 space-y-0.5">
{bids.map((b, i) => (
<div key={i} className="flex items-center gap-2 text-[11px]">
<span
className={`font-bold uppercase ${b.side === "blue" ? "text-blue-400" : "text-red-400"}`}
>
{b.side === "blue" ? "블루" : "레드"}
</span>
<span className="text-base-content/30">→</span>
<span className="text-amber-400 tabular-nums font-semibold">
{formatPoints(b.amount)}P
</span>
</div>
))}
<div ref={endRef} />
</div>
</div>
);
}
// -- 메인 --
export default function AuctionPage() {
const { id } = useParams();
const [state, setState] = useState<AuctionState | null>(null);
const auctionRef = useRef<ReturnType<typeof createMockAuction> | null>(null);
useEffect(() => {
const auction = createMockAuction((newState) => {
setState({ ...newState });
});
auctionRef.current = auction;
auction.start();
return () => {
auction.destroy();
};
}, [id]);
if (!state) {
return (
<main className="max-w-5xl mx-auto px-4 py-20 text-center">
<span className="text-sm text-base-content/40">연결 중...</span>
</main>
);
}
const handleBid = (side: "blue" | "red", amount: number) => {
auctionRef.current?.bid(side, amount);
};
const phaseLabel: Record<AuctionState["phase"], string> = {
waiting: "경매 준비 중...",
presenting: "다음 선수 등장",
bidding: "입찰 진행 중",
sold: "낙찰!",
complete: "경매 완료",
};
return (
<main className="max-w-5xl mx-auto px-4 sm:px-6 py-6">
{/* 뒤로가기 */}
<Link
to={`/match/${id}`}
className="inline-flex items-center gap-1 text-xs text-base-content/40 hover:text-base-content transition-colors mb-4"
>
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-3.5 w-3.5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M15 19l-7-7 7-7"
/>
</svg>
내전 상세로
</Link>
{/* 경매 헤더 */}
<div className="mb-5 flex items-center justify-between flex-wrap gap-2">
<div>
<h1 className="text-xl font-bold text-base-content leading-tight">
경매 팀빌딩
</h1>
<p className="text-[11px] text-base-content/30 mt-0.5">
{state.currentPlayerIndex + 1} / {state.totalPlayers} 선수
</p>
</div>
<div className="flex items-center gap-2">
<span
className={`inline-flex items-center text-[11px] font-semibold px-2 py-1 border ${
state.phase === "bidding"
? "border-green-500/20 bg-green-500/10 text-green-400"
: state.phase === "sold"
? "border-amber-500/20 bg-amber-500/10 text-amber-400"
: "border-base-content/10 bg-base-content/5 text-base-content/40"
}`}
>
{phaseLabel[state.phase]}
</span>
{state.phase === "bidding" && (
<span
className={`text-lg font-black tabular-nums ${state.timer <= 5 ? "text-red-500" : "text-base-content"}`}
>
{state.timer}s
</span>
)}
</div>
</div>
{/* 타이머 바 */}
{state.phase === "bidding" && (
<TimerBar timer={state.timer} maxTimer={state.maxTimer} />
)}
{/* 메인 3컬럼 */}
<div className="flex flex-col lg:flex-row gap-4 mt-4">
{/* 블루팀 */}
<div className="w-full lg:w-56 shrink-0">
<TeamPanel
team={state.teams[0]}
isActive={state.currentBidder === "blue"}
isLeft
/>
</div>
{/* 중앙: 선수 카드 */}
<div className="flex-1 min-w-0 space-y-4">
{state.phase === "waiting" && (
<div className="border border-base-content/10 bg-base-100 p-12 text-center">
<div className="text-base-content/20 text-sm">
경매가 곧 시작됩니다...
</div>
</div>
)}
{state.phase === "complete" && (
<div className="border border-base-content/10 bg-base-100 p-8 text-center">
<div className="text-lg font-bold text-base-content mb-2">
경매 완료
</div>
<div className="text-xs text-base-content/40">
모든 선수가 팀에 배정되었습니다.
</div>
<Link
to={`/match/${id}`}
className="btn btn-primary btn-sm mt-4 px-6 text-[11px]"
>
결과 확인
</Link>
</div>
)}
{state.currentPlayer &&
(state.phase === "presenting" ||
state.phase === "bidding" ||
state.phase === "sold") && (
<>
<PlayerSpotlight
player={state.currentPlayer}
phase={state.phase}
currentBid={state.currentBid}
currentBidder={state.currentBidder}
/>
{state.phase === "sold" && state.currentBidder && (
<div
className={`text-center py-3 border text-sm font-bold ${
state.currentBidder === "blue"
? "border-blue-500/20 bg-blue-500/8 text-blue-400"
: "border-red-500/20 bg-red-500/8 text-red-400"
}`}
>
{state.currentBidder === "blue" ? "블루팀" : "레드팀"} 낙찰
— {formatPoints(state.currentBid)}P
</div>
)}
<BidControls state={state} onBid={handleBid} />
<BidLog bids={state.bids} />
</>
)}
</div>
{/* 레드팀 */}
<div className="w-full lg:w-56 shrink-0">
<TeamPanel
team={state.teams[1]}
isActive={state.currentBidder === "red"}
isLeft={false}
/>
</div>
</div>
</main>
);
}
+162
View File
@@ -0,0 +1,162 @@
import { Link } from "react-router";
import {
nextMatchSummary,
upcomingMatches,
pastMatches,
} from "../mock";
function StatusBadge({ status }: { status: string }) {
const styles: Record<string, string> = {
"모집 중": "bg-green-500/15 text-green-500 border-green-500/20",
"모집 완료": "bg-amber-500/15 text-amber-500 border-amber-500/20",
예정: "bg-blue-500/15 text-blue-400 border-blue-500/20",
};
return (
<span
className={`inline-flex items-center text-[11px] font-semibold px-1.5 py-0.5 border ${styles[status] ?? "bg-base-content/10 text-base-content/50 border-base-content/10"}`}
>
{status}
</span>
);
}
function MapBadge({ map }: { map: string }) {
return (
<span className="inline-flex items-center text-[11px] px-1.5 py-0.5 border border-base-content/10 text-base-content/50">
{map}
</span>
);
}
export default function HomePage() {
return (
<main className="max-w-5xl mx-auto px-4 sm:px-6">
{/* 다음 내전 (Hero) */}
<section className="pt-8 pb-6">
<h2 className="text-xs font-bold text-base-content/40 uppercase tracking-widest mb-3">
다음 내전
</h2>
<Link to={`/match/${nextMatchSummary.id}`} className="block group">
<div className="border border-base-content/10 bg-base-200/50 hover:bg-base-200 transition-colors">
<div className="p-5 sm:p-6">
<div className="flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4">
<div className="space-y-2.5">
<div className="flex items-center gap-2.5 flex-wrap">
<h3 className="text-xl sm:text-2xl font-bold text-base-content leading-tight">
{nextMatchSummary.title}
</h3>
<StatusBadge status={nextMatchSummary.status} />
</div>
<p className="text-sm text-base-content/50 max-w-xl leading-relaxed">
{nextMatchSummary.description}
</p>
<div className="flex items-center gap-3 text-xs text-base-content/40 flex-wrap">
<span className="flex items-center gap-1">
<svg xmlns="http://www.w3.org/2000/svg" className="h-3.5 w-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" /></svg>
{nextMatchSummary.date} {nextMatchSummary.time}
</span>
<span className="text-base-content/15">|</span>
<span className="flex items-center gap-1">
<svg xmlns="http://www.w3.org/2000/svg" className="h-3.5 w-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z" /></svg>
{nextMatchSummary.participants}/{nextMatchSummary.maxParticipants}명
</span>
<span className="text-base-content/15">|</span>
<MapBadge map={nextMatchSummary.map} />
</div>
</div>
<div className="sm:shrink-0">
<span className="btn btn-primary btn-sm px-6 text-xs font-semibold">
상세 보기
</span>
</div>
</div>
</div>
</div>
</Link>
</section>
{/* 예정된 내전 */}
<section className="pb-6">
<h2 className="text-xs font-bold text-base-content/40 uppercase tracking-widest mb-3">
예정된 내전
</h2>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-px bg-base-content/10 border border-base-content/10">
{upcomingMatches.map((match) => (
<Link key={match.id} to={`/match/${match.id}`}>
<div className="bg-base-100 hover:bg-base-200/50 transition-colors cursor-pointer h-full p-4">
<div className="flex items-center justify-between mb-2.5">
<h3 className="text-sm font-bold text-base-content truncate mr-2">
{match.title}
</h3>
<StatusBadge status={match.status} />
</div>
<div className="space-y-1 text-xs text-base-content/40">
<div className="flex items-center gap-1">
<svg xmlns="http://www.w3.org/2000/svg" className="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" /></svg>
{match.date} {match.time}
</div>
<div className="flex items-center gap-1">
<svg xmlns="http://www.w3.org/2000/svg" className="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z" /></svg>
{match.participants}/{match.maxParticipants}명
</div>
</div>
<div className="mt-2.5">
<MapBadge map={match.map} />
</div>
</div>
</Link>
))}
</div>
</section>
{/* 지난 내전 기록 */}
<section className="pb-12">
<h2 className="text-xs font-bold text-base-content/40 uppercase tracking-widest mb-3">
지난 내전 기록
</h2>
<div className="border border-base-content/10 overflow-x-auto">
<table className="w-full text-left">
<thead>
<tr className="bg-base-200/60 border-b border-base-content/10 text-[11px] uppercase tracking-wider text-base-content/40">
<th className="py-2.5 px-4 font-semibold">날짜</th>
<th className="py-2.5 px-4 font-semibold">내전</th>
<th className="py-2.5 px-4 font-semibold">맵</th>
<th className="py-2.5 px-4 font-semibold">참가</th>
<th className="py-2.5 px-4 font-semibold">결과</th>
</tr>
</thead>
<tbody>
{pastMatches.map((match) => (
<tr
key={match.id}
className="border-b border-base-content/5 last:border-b-0 hover:bg-base-content/[0.02] transition-colors"
>
<td className="py-2.5 px-4 text-xs text-base-content/40 whitespace-nowrap">
{match.date}
</td>
<td className="py-2.5 px-4">
<Link
to={`/match/${match.id}`}
className="text-sm font-medium text-base-content hover:text-primary transition-colors"
>
{match.title}
</Link>
</td>
<td className="py-2.5 px-4">
<MapBadge map={match.map} />
</td>
<td className="py-2.5 px-4 text-xs text-base-content/50">
{match.participants}명
</td>
<td className="py-2.5 px-4 text-xs text-base-content/50">
{match.result}
</td>
</tr>
))}
</tbody>
</table>
</div>
</section>
</main>
);
}
+473
View File
@@ -0,0 +1,473 @@
import { useParams, Link } from "react-router";
import {
getMatchById,
positionLabel,
positionIcon,
type MatchDetail,
type Participant,
type Position,
type Team,
type TierInfo,
} from "../mock";
// -- 포지션 배지 --
function PosBadge({ pos, sub }: { pos: Position; sub?: boolean }) {
return (
<span
className={`inline-flex items-center gap-1.5 text-[11px] font-medium px-1.5 py-0.5 border ${
sub
? "border-base-content/8 text-base-content/35 bg-transparent"
: "border-primary/20 text-primary bg-primary/5"
}`}
>
<img
src={positionIcon[pos]}
alt=""
className="w-3.5 h-3.5 object-contain mr-4px"
/>
<span>{positionLabel[pos]}</span>
</span>
);
}
// -- 티어 색상 --
function tierColor(tier: string): string {
if (tier.startsWith("챌린저")) return "text-amber-400";
if (tier.startsWith("그랜드마스터")) return "text-red-400";
if (tier.startsWith("마스터")) return "text-purple-400";
if (tier.startsWith("다이아")) return "text-cyan-400";
if (tier.startsWith("에메랄드")) return "text-emerald-400";
if (tier.startsWith("플래티넘")) return "text-teal-300";
if (tier.startsWith("골드")) return "text-yellow-400";
if (tier.startsWith("실버")) return "text-gray-300";
return "text-amber-700";
}
// -- 티어 셀 (전시즌 / 현재 / 최고) --
function TierCell({ tier }: { tier: TierInfo }) {
return (
<div className="flex items-center gap-1.5 text-[11px] whitespace-nowrap">
<span className="text-base-content/25">{tier.previousSeason}</span>
<span className="text-base-content/15">→</span>
<span className={`font-bold ${tierColor(tier.current)}`}>
{tier.current}
</span>
<span className={`text-[10px] ${tierColor(tier.peak)} opacity-50`}>
({tier.peak})
</span>
</div>
);
}
// -- 상태 배지 --
function statusBadge(status: MatchDetail["status"]) {
switch (status) {
case "recruiting":
return {
label: "모집 중",
cls: "bg-green-500/15 text-green-500 border-green-500/20",
};
case "team-built":
return {
label: "팀빌딩 완료",
cls: "bg-amber-500/15 text-amber-500 border-amber-500/20",
};
case "finished":
return {
label: "종료",
cls: "bg-base-content/8 text-base-content/40 border-base-content/10",
};
}
}
// -- 참가자 행 --
function ParticipantRow({
p,
index,
assignedPos,
}: {
p: Participant;
index: number;
assignedPos?: Position;
}) {
return (
<tr className="border-b border-base-content/5 last:border-b-0 hover:bg-base-content/[0.02] transition-colors">
<td className="py-2 px-3 text-center text-[11px] text-base-content/30 w-8">
{index + 1}
</td>
<td className="py-2 px-3">
<div className="flex items-center gap-2">
<div className="w-7 h-7 bg-base-content/10 overflow-hidden shrink-0">
<img
src={`https://ddragon.leagueoflegends.com/cdn/16.7.1/img/profileicon/${p.profileIconId}.png`}
alt=""
className="w-full h-full object-cover"
loading="lazy"
/>
</div>
<div className="min-w-0">
<span className="font-medium text-[13px] text-base-content truncate block leading-tight">
{p.summonerName}
</span>
<span className="text-[10px] text-base-content/25 leading-tight">
#{p.tag}
</span>
</div>
</div>
</td>
<td className="py-2 px-3">
<TierCell tier={p.tier} />
</td>
{assignedPos ? (
<td className="py-2 px-3">
<PosBadge pos={assignedPos} />
</td>
) : (
<>
<td className="py-2 px-3">
<PosBadge pos={p.mainPosition} />
</td>
<td className="py-2 px-3">
<PosBadge pos={p.subPosition} sub />
</td>
</>
)}
</tr>
);
}
// -- 참가자 테이블 (팀빌딩 전) --
function ParticipantTable({ participants }: { participants: Participant[] }) {
return (
<div className="overflow-x-auto">
<table className="w-full text-left">
<thead>
<tr className="border-b border-base-content/10 bg-base-200/40 text-[11px] uppercase tracking-wider text-base-content/35 font-semibold">
<th className="py-2 px-3 w-8">#</th>
<th className="py-2 px-3">소환사</th>
<th className="py-2 px-3">전 시즌 → 현재 (최고)</th>
<th className="py-2 px-3">주 포지션</th>
<th className="py-2 px-3">부 포지션</th>
</tr>
</thead>
<tbody>
{participants.map((p, i) => (
<ParticipantRow key={p.id} p={p} index={i} />
))}
</tbody>
</table>
</div>
);
}
// -- 팀 카드 (팀빌딩 후) --
function TeamCard({
team,
side,
isWinner,
}: {
team: Team;
side: "blue" | "red";
isWinner?: boolean;
}) {
const borderColor =
side === "blue" ? "border-blue-500/25" : "border-red-500/25";
const headerBg = side === "blue" ? "bg-blue-500/8" : "bg-red-500/8";
const sideColor = side === "blue" ? "text-blue-400" : "text-red-400";
const accentBar = side === "blue" ? "bg-blue-500" : "bg-red-500";
return (
<div
className={`border ${borderColor} overflow-hidden bg-base-100 relative`}
>
<div className={`absolute left-0 top-0 bottom-0 w-0.5 ${accentBar}`} />
<div
className={`${headerBg} px-4 py-2 flex items-center justify-between border-b ${borderColor}`}
>
<div className="flex items-center gap-2">
<span
className={`text-xs font-bold uppercase tracking-wide ${sideColor}`}
>
{team.name}
</span>
{isWinner && (
<span className="inline-flex items-center text-[10px] font-bold px-1.5 py-0.5 bg-amber-500/15 text-amber-400 border border-amber-500/20">
WIN
</span>
)}
</div>
</div>
<table className="w-full text-left">
<thead>
<tr className="border-b border-base-content/8 bg-base-200/30 text-[11px] uppercase tracking-wider text-base-content/35 font-semibold">
<th className="py-2 px-3 w-8">#</th>
<th className="py-2 px-3">소환사</th>
<th className="py-2 px-3">전 시즌 → 현재 (최고)</th>
<th className="py-2 px-3">포지션</th>
</tr>
</thead>
<tbody>
{team.participants.map((p, i) => (
<ParticipantRow
key={p.id}
p={p}
index={i}
assignedPos={p.assignedPosition}
/>
))}
</tbody>
</table>
</div>
);
}
// -- 사이드바 카드 --
function SideCard({
title,
children,
}: {
title: string;
children: React.ReactNode;
}) {
return (
<div className="border border-base-content/10 bg-base-100 overflow-hidden">
<div className="px-4 py-2 border-b border-base-content/10 bg-base-200/40">
<h3 className="text-[11px] font-bold uppercase tracking-wider text-base-content/40">
{title}
</h3>
</div>
<div className="p-4">{children}</div>
</div>
);
}
// -- 메인 --
export default function MatchDetailPage() {
const { id } = useParams();
const match = getMatchById(Number(id));
if (!match) {
return (
<main className="max-w-5xl mx-auto px-4 py-20 text-center">
<h2 className="text-lg font-bold mb-2">내전을 찾을 수 없습니다</h2>
<Link to="/" className="btn btn-ghost btn-sm mt-4">
홈으로 돌아가기
</Link>
</main>
);
}
const si = statusBadge(match.status);
return (
<main className="max-w-5xl mx-auto px-4 sm:px-6 py-6">
{/* 뒤로가기 */}
<Link
to="/"
className="inline-flex items-center gap-1 text-xs text-base-content/40 hover:text-base-content transition-colors mb-5"
>
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-3.5 w-3.5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M15 19l-7-7 7-7"
/>
</svg>
목록으로
</Link>
{/* 헤더 */}
<div className="mb-6 pb-5 border-b border-base-content/8">
<div className="flex items-center gap-2.5 flex-wrap mb-2">
<h1 className="text-xl sm:text-2xl font-bold text-base-content leading-tight">
{match.title}
</h1>
<span
className={`inline-flex items-center text-[11px] font-semibold px-1.5 py-0.5 border ${si.cls}`}
>
{si.label}
</span>
</div>
<p className="text-sm text-base-content/50 mb-2.5">
{match.description}
</p>
<div className="flex items-center gap-3 text-xs text-base-content/40 flex-wrap">
<span className="flex items-center gap-1">
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-3.5 w-3.5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
/>
</svg>
{match.date} {match.time}
</span>
<span className="text-base-content/15">|</span>
<span className="flex items-center gap-1">
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-3.5 w-3.5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"
/>
</svg>
{match.participants.length}/{match.maxParticipants}명
</span>
<span className="text-base-content/15">|</span>
<span className="inline-flex items-center text-[11px] px-1.5 py-0.5 border border-base-content/10 text-base-content/40">
{match.map}
</span>
</div>
</div>
{/* 결과 배너 (종료된 경우) */}
{match.status === "finished" && match.result && (
<div className="mb-6 border border-base-content/10 bg-base-content/[0.02] p-5">
<div className="flex items-center justify-center gap-8">
<div
className={`text-center ${match.result.winner === "블루팀" ? "text-blue-400" : "text-blue-400/30"}`}
>
<div className="text-3xl font-black tabular-nums">
{match.result.blueScore}
</div>
<div className="text-[10px] uppercase tracking-wider mt-0.5 font-semibold">
블루팀
</div>
</div>
<div className="text-base-content/20 text-xs font-bold uppercase tracking-widest">
VS
</div>
<div
className={`text-center ${match.result.winner === "레드팀" ? "text-red-400" : "text-red-400/30"}`}
>
<div className="text-3xl font-black tabular-nums">
{match.result.redScore}
</div>
<div className="text-[10px] uppercase tracking-wider mt-0.5 font-semibold">
레드팀
</div>
</div>
</div>
<div className="text-center mt-3 text-[11px] font-bold text-amber-400 uppercase tracking-wide">
{match.result.winner} 승리
</div>
</div>
)}
<div className="flex flex-col lg:flex-row gap-5">
{/* 좌측: 참가자 / 팀 */}
<div className="flex-1 min-w-0">
{match.status === "recruiting" ? (
<div className="border border-base-content/10 bg-base-100 overflow-hidden">
<div className="px-4 py-2.5 border-b border-base-content/10 bg-base-200/40 flex items-center justify-between">
<h3 className="text-[11px] font-bold uppercase tracking-wider text-base-content/40">
참가자 ({match.participants.length}/{match.maxParticipants})
</h3>
<button className="btn btn-primary btn-xs px-4 text-[11px] font-semibold">
참가 신청
</button>
</div>
<ParticipantTable participants={match.participants} />
{match.participants.length < match.maxParticipants && (
<div className="px-4 py-2.5 border-t border-base-content/5 text-center bg-base-200/20">
<span className="text-[11px] text-base-content/25">
{match.maxParticipants - match.participants.length}자리 남음
</span>
</div>
)}
</div>
) : (
<div className="space-y-4">
{match.teams?.map((team, i) => (
<TeamCard
key={team.name}
team={team}
side={i === 0 ? "blue" : "red"}
isWinner={
match.status === "finished"
? match.result?.winner === team.name
: undefined
}
/>
))}
</div>
)}
</div>
{/* 우측: 사이드바 */}
<div className="w-full lg:w-64 shrink-0 space-y-4">
{/* 일정 */}
{match.schedule && match.schedule.length > 0 && (
<SideCard title="일정">
<ul className="space-y-2">
{match.schedule.map((s, i) => (
<li key={i} className="flex items-start gap-2.5 text-[13px]">
<span className="font-mono text-[11px] text-base-content/30 w-11 shrink-0 pt-px">
{s.time}
</span>
<span className="text-base-content/60">{s.label}</span>
</li>
))}
</ul>
</SideCard>
)}
{/* 상품 */}
{match.prizes && match.prizes.length > 0 && (
<SideCard title="상품">
<ul className="space-y-1.5">
{match.prizes.map((prize, i) => (
<li
key={i}
className="flex items-start gap-2 text-[13px] text-base-content/60"
>
<span className="text-amber-400 shrink-0 text-xs">▸</span>
<span>{prize}</span>
</li>
))}
</ul>
</SideCard>
)}
{/* 안내사항 */}
{match.notices && match.notices.length > 0 && (
<SideCard title="안내사항">
<ul className="space-y-1.5">
{match.notices.map((notice, i) => (
<li
key={i}
className="flex items-start gap-2 text-[13px] text-base-content/60"
>
<span className="text-base-content/20 shrink-0">•</span>
<span>{notice}</span>
</li>
))}
</ul>
</SideCard>
)}
</div>
</div>
</main>
);
}
+5 -4
View File
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
})
plugins: [react(), tailwindcss()],
});
+287 -62
View File
@@ -74,13 +74,13 @@ importers:
version: 7.2.0
eslint:
specifier: ^9.18.0
version: 9.39.4
version: 9.39.4(jiti@2.6.1)
eslint-config-prettier:
specifier: ^10.0.1
version: 10.1.8(eslint@9.39.4)
version: 10.1.8(eslint@9.39.4(jiti@2.6.1))
eslint-plugin-prettier:
specifier: ^5.2.2
version: 5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@9.39.4))(eslint@9.39.4)(prettier@3.8.2)
version: 5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@9.39.4(jiti@2.6.1)))(eslint@9.39.4(jiti@2.6.1))(prettier@3.8.2)
globals:
specifier: ^17.0.0
version: 17.4.0
@@ -113,7 +113,7 @@ importers:
version: 5.9.3
typescript-eslint:
specifier: ^8.20.0
version: 8.58.1(eslint@9.39.4)(typescript@5.9.3)
version: 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
apps/web:
dependencies:
@@ -123,10 +123,16 @@ importers:
react-dom:
specifier: ^19.2.4
version: 19.2.5(react@19.2.5)
react-router:
specifier: ^7.14.0
version: 7.14.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5)
devDependencies:
'@eslint/js':
specifier: ^9.39.4
version: 9.39.4
'@tailwindcss/vite':
specifier: ^4.2.2
version: 4.2.2(vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1))
'@types/node':
specifier: ^24.12.2
version: 24.12.2
@@ -138,28 +144,34 @@ importers:
version: 19.2.3(@types/react@19.2.14)
'@vitejs/plugin-react':
specifier: ^6.0.1
version: 6.0.1(vite@8.0.8(@types/node@24.12.2)(terser@5.46.1))
version: 6.0.1(vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1))
daisyui:
specifier: ^5.5.19
version: 5.5.19
eslint:
specifier: ^9.39.4
version: 9.39.4
version: 9.39.4(jiti@2.6.1)
eslint-plugin-react-hooks:
specifier: ^7.0.1
version: 7.0.1(eslint@9.39.4)
version: 7.0.1(eslint@9.39.4(jiti@2.6.1))
eslint-plugin-react-refresh:
specifier: ^0.5.2
version: 0.5.2(eslint@9.39.4)
version: 0.5.2(eslint@9.39.4(jiti@2.6.1))
globals:
specifier: ^17.4.0
version: 17.4.0
tailwindcss:
specifier: ^4.2.2
version: 4.2.2
typescript:
specifier: ~6.0.2
version: 6.0.2
typescript-eslint:
specifier: ^8.58.0
version: 8.58.1(eslint@9.39.4)(typescript@6.0.2)
version: 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)
vite:
specifier: ^8.0.4
version: 8.0.8(@types/node@24.12.2)(terser@5.46.1)
version: 8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1)
packages:
@@ -1246,6 +1258,96 @@ packages:
resolution: {integrity: sha512-O/IEdcCUKkubz60tFbGA7ceITTAJsty+lBjNoorP4Z6XRqaFb/OjQjZODophEcuq68nKm6/0r+6/lLQ+XVpk8g==}
engines: {node: '>=18.0.0'}
'@tailwindcss/node@4.2.2':
resolution: {integrity: sha512-pXS+wJ2gZpVXqFaUEjojq7jzMpTGf8rU6ipJz5ovJV6PUGmlJ+jvIwGrzdHdQ80Sg+wmQxUFuoW1UAAwHNEdFA==}
'@tailwindcss/oxide-android-arm64@4.2.2':
resolution: {integrity: sha512-dXGR1n+P3B6748jZO/SvHZq7qBOqqzQ+yFrXpoOWWALWndF9MoSKAT3Q0fYgAzYzGhxNYOoysRvYlpixRBBoDg==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [android]
'@tailwindcss/oxide-darwin-arm64@4.2.2':
resolution: {integrity: sha512-iq9Qjr6knfMpZHj55/37ouZeykwbDqF21gPFtfnhCCKGDcPI/21FKC9XdMO/XyBM7qKORx6UIhGgg6jLl7BZlg==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [darwin]
'@tailwindcss/oxide-darwin-x64@4.2.2':
resolution: {integrity: sha512-BlR+2c3nzc8f2G639LpL89YY4bdcIdUmiOOkv2GQv4/4M0vJlpXEa0JXNHhCHU7VWOKWT/CjqHdTP8aUuDJkuw==}
engines: {node: '>= 20'}
cpu: [x64]
os: [darwin]
'@tailwindcss/oxide-freebsd-x64@4.2.2':
resolution: {integrity: sha512-YUqUgrGMSu2CDO82hzlQ5qSb5xmx3RUrke/QgnoEx7KvmRJHQuZHZmZTLSuuHwFf0DJPybFMXMYf+WJdxHy/nQ==}
engines: {node: '>= 20'}
cpu: [x64]
os: [freebsd]
'@tailwindcss/oxide-linux-arm-gnueabihf@4.2.2':
resolution: {integrity: sha512-FPdhvsW6g06T9BWT0qTwiVZYE2WIFo2dY5aCSpjG/S/u1tby+wXoslXS0kl3/KXnULlLr1E3NPRRw0g7t2kgaQ==}
engines: {node: '>= 20'}
cpu: [arm]
os: [linux]
'@tailwindcss/oxide-linux-arm64-gnu@4.2.2':
resolution: {integrity: sha512-4og1V+ftEPXGttOO7eCmW7VICmzzJWgMx+QXAJRAhjrSjumCwWqMfkDrNu1LXEQzNAwz28NCUpucgQPrR4S2yw==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
'@tailwindcss/oxide-linux-arm64-musl@4.2.2':
resolution: {integrity: sha512-oCfG/mS+/+XRlwNjnsNLVwnMWYH7tn/kYPsNPh+JSOMlnt93mYNCKHYzylRhI51X+TbR+ufNhhKKzm6QkqX8ag==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
'@tailwindcss/oxide-linux-x64-gnu@4.2.2':
resolution: {integrity: sha512-rTAGAkDgqbXHNp/xW0iugLVmX62wOp2PoE39BTCGKjv3Iocf6AFbRP/wZT/kuCxC9QBh9Pu8XPkv/zCZB2mcMg==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
'@tailwindcss/oxide-linux-x64-musl@4.2.2':
resolution: {integrity: sha512-XW3t3qwbIwiSyRCggeO2zxe3KWaEbM0/kW9e8+0XpBgyKU4ATYzcVSMKteZJ1iukJ3HgHBjbg9P5YPRCVUxlnQ==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
'@tailwindcss/oxide-wasm32-wasi@4.2.2':
resolution: {integrity: sha512-eKSztKsmEsn1O5lJ4ZAfyn41NfG7vzCg496YiGtMDV86jz1q/irhms5O0VrY6ZwTUkFy/EKG3RfWgxSI3VbZ8Q==}
engines: {node: '>=14.0.0'}
cpu: [wasm32]
bundledDependencies:
- '@napi-rs/wasm-runtime'
- '@emnapi/core'
- '@emnapi/runtime'
- '@tybys/wasm-util'
- '@emnapi/wasi-threads'
- tslib
'@tailwindcss/oxide-win32-arm64-msvc@4.2.2':
resolution: {integrity: sha512-qPmaQM4iKu5mxpsrWZMOZRgZv1tOZpUm+zdhhQP0VhJfyGGO3aUKdbh3gDZc/dPLQwW4eSqWGrrcWNBZWUWaXQ==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [win32]
'@tailwindcss/oxide-win32-x64-msvc@4.2.2':
resolution: {integrity: sha512-1T/37VvI7WyH66b+vqHj/cLwnCxt7Qt3WFu5Q8hk65aOvlwAhs7rAp1VkulBJw/N4tMirXjVnylTR72uI0HGcA==}
engines: {node: '>= 20'}
cpu: [x64]
os: [win32]
'@tailwindcss/oxide@4.2.2':
resolution: {integrity: sha512-qEUA07+E5kehxYp9BVMpq9E8vnJuBHfJEC0vPC5e7iL/hw7HR61aDKoVoKzrG+QKp56vhNZe4qwkRmMC0zDLvg==}
engines: {node: '>= 20'}
'@tailwindcss/vite@4.2.2':
resolution: {integrity: sha512-mEiF5HO1QqCLXoNEfXVA1Tzo+cYsrqV7w9Juj2wdUFyW07JRenqMG225MvPwr3ZD9N1bFQj46X7r33iHxLUW0w==}
peerDependencies:
vite: ^5.2.0 || ^6 || ^7 || ^8
'@tokenizer/inflate@0.4.1':
resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==}
engines: {node: '>=18'}
@@ -1935,6 +2037,10 @@ packages:
resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
engines: {node: '>= 0.6'}
cookie@1.1.1:
resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}
engines: {node: '>=18'}
cookiejar@2.1.4:
resolution: {integrity: sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==}
@@ -1961,6 +2067,9 @@ packages:
csstype@3.2.3:
resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
daisyui@5.5.19:
resolution: {integrity: sha512-pbFAkl1VCEh/MPCeclKL61I/MqRIFFhNU7yiXoDDRapXN4/qNCoMxeCCswyxEEhqL5eiTTfwHvucFtOE71C9sA==}
debug@4.4.3:
resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
engines: {node: '>=6.0'}
@@ -2663,6 +2772,10 @@ packages:
node-notifier:
optional: true
jiti@2.6.1:
resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}
hasBin: true
js-tokens@4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -2835,6 +2948,9 @@ packages:
magic-string@0.30.17:
resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
magic-string@0.30.21:
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
make-dir@4.0.0:
resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
engines: {node: '>=10'}
@@ -3196,6 +3312,16 @@ packages:
react-is@18.3.1:
resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}
react-router@7.14.0:
resolution: {integrity: sha512-m/xR9N4LQLmAS0ZhkY2nkPA1N7gQ5TUVa5n8TgANuDTARbn1gt+zLPXEm7W0XDTbrQ2AJSJKhoa6yx1D8BcpxQ==}
engines: {node: '>=20.0.0'}
peerDependencies:
react: '>=18'
react-dom: '>=18'
peerDependenciesMeta:
react-dom:
optional: true
react@19.2.5:
resolution: {integrity: sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA==}
engines: {node: '>=0.10.0'}
@@ -3284,6 +3410,9 @@ packages:
resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==}
engines: {node: '>= 18'}
set-cookie-parser@2.7.2:
resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==}
setprototypeof@1.2.0:
resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
@@ -3438,6 +3567,9 @@ packages:
resolution: {integrity: sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==}
engines: {node: ^14.18.0 || >=16.0.0}
tailwindcss@4.2.2:
resolution: {integrity: sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q==}
tapable@2.3.2:
resolution: {integrity: sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==}
engines: {node: '>=6'}
@@ -4489,9 +4621,9 @@ snapshots:
tslib: 2.8.1
optional: true
'@eslint-community/eslint-utils@4.9.1(eslint@9.39.4)':
'@eslint-community/eslint-utils@4.9.1(eslint@9.39.4(jiti@2.6.1))':
dependencies:
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
eslint-visitor-keys: 3.4.3
'@eslint-community/regexpp@4.12.2': {}
@@ -5406,6 +5538,74 @@ snapshots:
dependencies:
tslib: 2.8.1
'@tailwindcss/node@4.2.2':
dependencies:
'@jridgewell/remapping': 2.3.5
enhanced-resolve: 5.20.1
jiti: 2.6.1
lightningcss: 1.32.0
magic-string: 0.30.21
source-map-js: 1.2.1
tailwindcss: 4.2.2
'@tailwindcss/oxide-android-arm64@4.2.2':
optional: true
'@tailwindcss/oxide-darwin-arm64@4.2.2':
optional: true
'@tailwindcss/oxide-darwin-x64@4.2.2':
optional: true
'@tailwindcss/oxide-freebsd-x64@4.2.2':
optional: true
'@tailwindcss/oxide-linux-arm-gnueabihf@4.2.2':
optional: true
'@tailwindcss/oxide-linux-arm64-gnu@4.2.2':
optional: true
'@tailwindcss/oxide-linux-arm64-musl@4.2.2':
optional: true
'@tailwindcss/oxide-linux-x64-gnu@4.2.2':
optional: true
'@tailwindcss/oxide-linux-x64-musl@4.2.2':
optional: true
'@tailwindcss/oxide-wasm32-wasi@4.2.2':
optional: true
'@tailwindcss/oxide-win32-arm64-msvc@4.2.2':
optional: true
'@tailwindcss/oxide-win32-x64-msvc@4.2.2':
optional: true
'@tailwindcss/oxide@4.2.2':
optionalDependencies:
'@tailwindcss/oxide-android-arm64': 4.2.2
'@tailwindcss/oxide-darwin-arm64': 4.2.2
'@tailwindcss/oxide-darwin-x64': 4.2.2
'@tailwindcss/oxide-freebsd-x64': 4.2.2
'@tailwindcss/oxide-linux-arm-gnueabihf': 4.2.2
'@tailwindcss/oxide-linux-arm64-gnu': 4.2.2
'@tailwindcss/oxide-linux-arm64-musl': 4.2.2
'@tailwindcss/oxide-linux-x64-gnu': 4.2.2
'@tailwindcss/oxide-linux-x64-musl': 4.2.2
'@tailwindcss/oxide-wasm32-wasi': 4.2.2
'@tailwindcss/oxide-win32-arm64-msvc': 4.2.2
'@tailwindcss/oxide-win32-x64-msvc': 4.2.2
'@tailwindcss/vite@4.2.2(vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1))':
dependencies:
'@tailwindcss/node': 4.2.2
'@tailwindcss/oxide': 4.2.2
tailwindcss: 4.2.2
vite: 8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1)
'@tokenizer/inflate@0.4.1':
dependencies:
debug: 4.4.3
@@ -5557,15 +5757,15 @@ snapshots:
dependencies:
'@types/yargs-parser': 21.0.3
'@typescript-eslint/eslint-plugin@8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3)':
'@typescript-eslint/eslint-plugin@8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)':
dependencies:
'@eslint-community/regexpp': 4.12.2
'@typescript-eslint/parser': 8.58.1(eslint@9.39.4)(typescript@5.9.3)
'@typescript-eslint/parser': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
'@typescript-eslint/scope-manager': 8.58.1
'@typescript-eslint/type-utils': 8.58.1(eslint@9.39.4)(typescript@5.9.3)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@5.9.3)
'@typescript-eslint/type-utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
'@typescript-eslint/visitor-keys': 8.58.1
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
ignore: 7.0.5
natural-compare: 1.4.0
ts-api-utils: 2.5.0(typescript@5.9.3)
@@ -5573,15 +5773,15 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/eslint-plugin@8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@6.0.2))(eslint@9.39.4)(typescript@6.0.2)':
'@typescript-eslint/eslint-plugin@8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2))(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@eslint-community/regexpp': 4.12.2
'@typescript-eslint/parser': 8.58.1(eslint@9.39.4)(typescript@6.0.2)
'@typescript-eslint/parser': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/scope-manager': 8.58.1
'@typescript-eslint/type-utils': 8.58.1(eslint@9.39.4)(typescript@6.0.2)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@6.0.2)
'@typescript-eslint/type-utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/visitor-keys': 8.58.1
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
ignore: 7.0.5
natural-compare: 1.4.0
ts-api-utils: 2.5.0(typescript@6.0.2)
@@ -5589,26 +5789,26 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@5.9.3)':
'@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)':
dependencies:
'@typescript-eslint/scope-manager': 8.58.1
'@typescript-eslint/types': 8.58.1
'@typescript-eslint/typescript-estree': 8.58.1(typescript@5.9.3)
'@typescript-eslint/visitor-keys': 8.58.1
debug: 4.4.3
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
typescript: 5.9.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@6.0.2)':
'@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@typescript-eslint/scope-manager': 8.58.1
'@typescript-eslint/types': 8.58.1
'@typescript-eslint/typescript-estree': 8.58.1(typescript@6.0.2)
'@typescript-eslint/visitor-keys': 8.58.1
debug: 4.4.3
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
@@ -5644,25 +5844,25 @@ snapshots:
dependencies:
typescript: 6.0.2
'@typescript-eslint/type-utils@8.58.1(eslint@9.39.4)(typescript@5.9.3)':
'@typescript-eslint/type-utils@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)':
dependencies:
'@typescript-eslint/types': 8.58.1
'@typescript-eslint/typescript-estree': 8.58.1(typescript@5.9.3)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@5.9.3)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
debug: 4.4.3
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
ts-api-utils: 2.5.0(typescript@5.9.3)
typescript: 5.9.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/type-utils@8.58.1(eslint@9.39.4)(typescript@6.0.2)':
'@typescript-eslint/type-utils@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@typescript-eslint/types': 8.58.1
'@typescript-eslint/typescript-estree': 8.58.1(typescript@6.0.2)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@6.0.2)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)
debug: 4.4.3
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
ts-api-utils: 2.5.0(typescript@6.0.2)
typescript: 6.0.2
transitivePeerDependencies:
@@ -5700,24 +5900,24 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.58.1(eslint@9.39.4)(typescript@5.9.3)':
'@typescript-eslint/utils@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)':
dependencies:
'@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4)
'@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.6.1))
'@typescript-eslint/scope-manager': 8.58.1
'@typescript-eslint/types': 8.58.1
'@typescript-eslint/typescript-estree': 8.58.1(typescript@5.9.3)
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
typescript: 5.9.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.58.1(eslint@9.39.4)(typescript@6.0.2)':
'@typescript-eslint/utils@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4)
'@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.6.1))
'@typescript-eslint/scope-manager': 8.58.1
'@typescript-eslint/types': 8.58.1
'@typescript-eslint/typescript-estree': 8.58.1(typescript@6.0.2)
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
@@ -5788,10 +5988,10 @@ snapshots:
'@unrs/resolver-binding-win32-x64-msvc@1.11.1':
optional: true
'@vitejs/plugin-react@6.0.1(vite@8.0.8(@types/node@24.12.2)(terser@5.46.1))':
'@vitejs/plugin-react@6.0.1(vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1))':
dependencies:
'@rolldown/pluginutils': 1.0.0-rc.7
vite: 8.0.8(@types/node@24.12.2)(terser@5.46.1)
vite: 8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1)
'@webassemblyjs/ast@1.14.1':
dependencies:
@@ -6207,6 +6407,8 @@ snapshots:
cookie@0.7.2: {}
cookie@1.1.1: {}
cookiejar@2.1.4: {}
cors@2.8.6:
@@ -6233,6 +6435,8 @@ snapshots:
csstype@3.2.3: {}
daisyui@5.5.19: {}
debug@4.4.3:
dependencies:
ms: 2.1.3
@@ -6324,34 +6528,34 @@ snapshots:
escape-string-regexp@4.0.0: {}
eslint-config-prettier@10.1.8(eslint@9.39.4):
eslint-config-prettier@10.1.8(eslint@9.39.4(jiti@2.6.1)):
dependencies:
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
eslint-plugin-prettier@5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@9.39.4))(eslint@9.39.4)(prettier@3.8.2):
eslint-plugin-prettier@5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@9.39.4(jiti@2.6.1)))(eslint@9.39.4(jiti@2.6.1))(prettier@3.8.2):
dependencies:
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
prettier: 3.8.2
prettier-linter-helpers: 1.0.1
synckit: 0.11.12
optionalDependencies:
'@types/eslint': 9.6.1
eslint-config-prettier: 10.1.8(eslint@9.39.4)
eslint-config-prettier: 10.1.8(eslint@9.39.4(jiti@2.6.1))
eslint-plugin-react-hooks@7.0.1(eslint@9.39.4):
eslint-plugin-react-hooks@7.0.1(eslint@9.39.4(jiti@2.6.1)):
dependencies:
'@babel/core': 7.29.0
'@babel/parser': 7.29.2
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
hermes-parser: 0.25.1
zod: 4.3.6
zod-validation-error: 4.0.2(zod@4.3.6)
transitivePeerDependencies:
- supports-color
eslint-plugin-react-refresh@0.5.2(eslint@9.39.4):
eslint-plugin-react-refresh@0.5.2(eslint@9.39.4(jiti@2.6.1)):
dependencies:
eslint: 9.39.4
eslint: 9.39.4(jiti@2.6.1)
eslint-scope@5.1.1:
dependencies:
@@ -6369,9 +6573,9 @@ snapshots:
eslint-visitor-keys@5.0.1: {}
eslint@9.39.4:
eslint@9.39.4(jiti@2.6.1):
dependencies:
'@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4)
'@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.6.1))
'@eslint-community/regexpp': 4.12.2
'@eslint/config-array': 0.21.2
'@eslint/config-helpers': 0.4.2
@@ -6405,6 +6609,8 @@ snapshots:
minimatch: 3.1.5
natural-compare: 1.4.0
optionator: 0.9.4
optionalDependencies:
jiti: 2.6.1
transitivePeerDependencies:
- supports-color
@@ -7136,6 +7342,8 @@ snapshots:
- supports-color
- ts-node
jiti@2.6.1: {}
js-tokens@4.0.0: {}
js-yaml@3.14.2:
@@ -7268,6 +7476,10 @@ snapshots:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5
magic-string@0.30.21:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5
make-dir@4.0.0:
dependencies:
semver: 7.7.4
@@ -7569,6 +7781,14 @@ snapshots:
react-is@18.3.1: {}
react-router@7.14.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5):
dependencies:
cookie: 1.1.1
react: 19.2.5
set-cookie-parser: 2.7.2
optionalDependencies:
react-dom: 19.2.5(react@19.2.5)
react@19.2.5: {}
readable-stream@3.6.2:
@@ -7685,6 +7905,8 @@ snapshots:
transitivePeerDependencies:
- supports-color
set-cookie-parser@2.7.2: {}
setprototypeof@1.2.0: {}
shebang-command@2.0.0:
@@ -7844,6 +8066,8 @@ snapshots:
dependencies:
'@pkgr/core': 0.2.9
tailwindcss@4.2.2: {}
tapable@2.3.2: {}
temporal-polyfill@0.3.2:
@@ -7992,24 +8216,24 @@ snapshots:
typedarray@0.0.6: {}
typescript-eslint@8.58.1(eslint@9.39.4)(typescript@5.9.3):
typescript-eslint@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3):
dependencies:
'@typescript-eslint/eslint-plugin': 8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3)
'@typescript-eslint/parser': 8.58.1(eslint@9.39.4)(typescript@5.9.3)
'@typescript-eslint/eslint-plugin': 8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
'@typescript-eslint/parser': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
'@typescript-eslint/typescript-estree': 8.58.1(typescript@5.9.3)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@5.9.3)
eslint: 9.39.4
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
eslint: 9.39.4(jiti@2.6.1)
typescript: 5.9.3
transitivePeerDependencies:
- supports-color
typescript-eslint@8.58.1(eslint@9.39.4)(typescript@6.0.2):
typescript-eslint@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2):
dependencies:
'@typescript-eslint/eslint-plugin': 8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@6.0.2))(eslint@9.39.4)(typescript@6.0.2)
'@typescript-eslint/parser': 8.58.1(eslint@9.39.4)(typescript@6.0.2)
'@typescript-eslint/eslint-plugin': 8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2))(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/parser': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/typescript-estree': 8.58.1(typescript@6.0.2)
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@6.0.2)
eslint: 9.39.4
'@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)
eslint: 9.39.4(jiti@2.6.1)
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
@@ -8079,7 +8303,7 @@ snapshots:
vary@1.1.2: {}
vite@8.0.8(@types/node@24.12.2)(terser@5.46.1):
vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1):
dependencies:
lightningcss: 1.32.0
picomatch: 4.0.4
@@ -8089,6 +8313,7 @@ snapshots:
optionalDependencies:
'@types/node': 24.12.2
fsevents: 2.3.3
jiti: 2.6.1
terser: 5.46.1
walker@1.0.8: