diff --git a/apps/web/index.html b/apps/web/index.html index 5e3836a6..ae9502bc 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -4,7 +4,7 @@ - web + 롤림푸스 - 내전 관리
diff --git a/apps/web/package.json b/apps/web/package.json index 33f06790..33113e09 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -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" diff --git a/apps/web/src/App.css b/apps/web/src/App.css index f90339d8..e00a71c3 100644 --- a/apps/web/src/App.css +++ b/apps/web/src/App.css @@ -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 */ diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 46a59920..2fd91571 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -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 ( - <> -
-
- - React logo - Vite logo -
-
-

Get started

-

- Edit src/App.tsx and save to test HMR -

-
- -
+ +
+ {/* Navbar */} + -
- -
-
- -

Documentation

-

Your questions, answered

- -
-
- -

Connect with us

-

Join the Vite community

- -
-
- -
-
- - ) + + } /> + } /> + } /> + +
+
+ ); } -export default App +export default App; diff --git a/apps/web/src/assets/position/Bottom_icon.png b/apps/web/src/assets/position/Bottom_icon.png new file mode 100644 index 00000000..c49002d3 Binary files /dev/null and b/apps/web/src/assets/position/Bottom_icon.png differ diff --git a/apps/web/src/assets/position/Jungle_icon.png b/apps/web/src/assets/position/Jungle_icon.png new file mode 100644 index 00000000..88daaf69 Binary files /dev/null and b/apps/web/src/assets/position/Jungle_icon.png differ diff --git a/apps/web/src/assets/position/Middle_icon.png b/apps/web/src/assets/position/Middle_icon.png new file mode 100644 index 00000000..c16810c7 Binary files /dev/null and b/apps/web/src/assets/position/Middle_icon.png differ diff --git a/apps/web/src/assets/position/Specialist_icon.png b/apps/web/src/assets/position/Specialist_icon.png new file mode 100644 index 00000000..0ed35aee Binary files /dev/null and b/apps/web/src/assets/position/Specialist_icon.png differ diff --git a/apps/web/src/assets/position/Support_icon.png b/apps/web/src/assets/position/Support_icon.png new file mode 100644 index 00000000..724f6c8c Binary files /dev/null and b/apps/web/src/assets/position/Support_icon.png differ diff --git a/apps/web/src/assets/position/Top_icon.png b/apps/web/src/assets/position/Top_icon.png new file mode 100644 index 00000000..fa923fce Binary files /dev/null and b/apps/web/src/assets/position/Top_icon.png differ diff --git a/apps/web/src/auction-mock.ts b/apps/web/src/auction-mock.ts new file mode 100644 index 00000000..6c7f3b1d --- /dev/null +++ b/apps/web/src/auction-mock.ts @@ -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 | 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, + }; +} diff --git a/apps/web/src/auction-types.ts b/apps/web/src/auction-types.ts new file mode 100644 index 00000000..6caa5ded --- /dev/null +++ b/apps/web/src/auction-types.ts @@ -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 }; diff --git a/apps/web/src/index.css b/apps/web/src/index.css index 5fb33130..45ade146 100644 --- a/apps/web/src/index.css +++ b/apps/web/src/index.css @@ -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; } diff --git a/apps/web/src/mock.ts b/apps/web/src/mock.ts new file mode 100644 index 00000000..ebea74e1 --- /dev/null +++ b/apps/web/src/mock.ts @@ -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 = { + 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 = { + 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, + ); +} diff --git a/apps/web/src/pages/AuctionPage.tsx b/apps/web/src/pages/AuctionPage.tsx new file mode 100644 index 00000000..fb5d13fd --- /dev/null +++ b/apps/web/src/pages/AuctionPage.tsx @@ -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 ( + + + {positionLabel[pos]} + + ); +} + +// -- 타이머 바 -- +function TimerBar({ timer, maxTimer }: { timer: number; maxTimer: number }) { + const pct = (timer / maxTimer) * 100; + const urgent = timer <= 5; + return ( +
+
+
+ ); +} + +// -- 팀 패널 -- +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 ( +
+
+ + {/* 헤더 */} +
+
+
+ + {team.side === "blue" ? "블루팀" : "레드팀"} + + + 팀장: {team.captainName} + +
+ + {formatPoints(team.points)}P + +
+
+ + {/* 멤버 목록 */} +
+ {team.members.length === 0 ? ( +
+ 아직 멤버가 없습니다 +
+ ) : ( + team.members.map((m) => ( +
+
+ +
+
+ + {m.summonerName} + +
+ + + {m.cost} + +
+ )) + )} + + {/* 빈 슬롯 */} + {Array.from({ length: 4 - team.members.length }).map((_, i) => ( +
+
+ — +
+ ))} +
+
+ ); +} + +// -- 현재 경매 선수 카드 -- +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 ( +
+ {/* 선수 프로필 */} +
+
+
+ +
+
+
+

+ {player.summonerName} +

+ + #{player.tag} + +
+
+ + {player.tier.previousSeason} + + → + + {player.tier.current} + + + ({player.tier.peak}) + +
+
+ + + {" "} + {positionLabel[player.subPosition]} + +
+
+
+
+ + {/* 스탯 그리드 */} +
+ {/* 숙련도 */} +
+

+ 숙련도 높은 챔피언 +

+
+ {player.masteries.map((m) => ( +
+
+ {m.championName} +
+
+
+ {m.championName} +
+
+ Lv.{m.level} · {(m.points / 1000).toFixed(0)}K +
+
+
+ ))} +
+
+ + {/* 최근 전적 */} +
+

+ 최근 솔로랭크 +

+
+
+ 승률 + = 55 ? "text-blue-400" : winRate >= 50 ? "text-base-content" : "text-red-400"}`} + > + {winRate}% + +
+
+ 전적 + + + {player.recentStats.wins}W + {" "} + + {player.recentStats.losses}L + + +
+
+ KDA + + {player.recentStats.kda.kills}/{player.recentStats.kda.deaths}/ + {player.recentStats.kda.assists} + = 3 ? "text-emerald-400" : "text-base-content/50"}`} + > + ({kdaRatio}) + + +
+
+ 평균 CS + + {player.recentStats.avgCs} + +
+
+
+
+ + {/* 현재 입찰 상태 */} + {(phase === "bidding" || phase === "sold") && ( +
+
+ + {phase === "sold" ? "낙찰가" : "현재 입찰가"} + +
+ {currentBidder && ( + + {currentBidder === "blue" ? "블루" : "레드"} + + )} + + {currentBid > 0 ? formatPoints(currentBid) : "—"} + +
+
+
+ )} +
+ ); +} + +// -- 입찰 컨트롤 -- +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 ( +
+
+ {presets.map((p) => ( + + ))} + + 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" + /> +
+
+ + +
+
+ ); +} + +// -- 입찰 로그 -- +function BidLog({ bids }: { bids: AuctionState["bids"] }) { + const endRef = useRef(null); + useEffect(() => { + endRef.current?.scrollIntoView({ behavior: "smooth" }); + }, [bids.length]); + + if (bids.length === 0) return null; + + return ( +
+
+ + 입찰 기록 + +
+
+ {bids.map((b, i) => ( +
+ + {b.side === "blue" ? "블루" : "레드"} + + → + + {formatPoints(b.amount)}P + +
+ ))} +
+
+
+ ); +} + +// -- 메인 -- +export default function AuctionPage() { + const { id } = useParams(); + const [state, setState] = useState(null); + const auctionRef = useRef | null>(null); + + useEffect(() => { + const auction = createMockAuction((newState) => { + setState({ ...newState }); + }); + auctionRef.current = auction; + auction.start(); + + return () => { + auction.destroy(); + }; + }, [id]); + + if (!state) { + return ( +
+ 연결 중... +
+ ); + } + + const handleBid = (side: "blue" | "red", amount: number) => { + auctionRef.current?.bid(side, amount); + }; + + const phaseLabel: Record = { + waiting: "경매 준비 중...", + presenting: "다음 선수 등장", + bidding: "입찰 진행 중", + sold: "낙찰!", + complete: "경매 완료", + }; + + return ( +
+ {/* 뒤로가기 */} + + + + + 내전 상세로 + + + {/* 경매 헤더 */} +
+
+

+ 경매 팀빌딩 +

+

+ {state.currentPlayerIndex + 1} / {state.totalPlayers} 선수 +

+
+
+ + {phaseLabel[state.phase]} + + {state.phase === "bidding" && ( + + {state.timer}s + + )} +
+
+ + {/* 타이머 바 */} + {state.phase === "bidding" && ( + + )} + + {/* 메인 3컬럼 */} +
+ {/* 블루팀 */} +
+ +
+ + {/* 중앙: 선수 카드 */} +
+ {state.phase === "waiting" && ( +
+
+ 경매가 곧 시작됩니다... +
+
+ )} + + {state.phase === "complete" && ( +
+
+ 경매 완료 +
+
+ 모든 선수가 팀에 배정되었습니다. +
+ + 결과 확인 + +
+ )} + + {state.currentPlayer && + (state.phase === "presenting" || + state.phase === "bidding" || + state.phase === "sold") && ( + <> + + + {state.phase === "sold" && state.currentBidder && ( +
+ {state.currentBidder === "blue" ? "블루팀" : "레드팀"} 낙찰 + — {formatPoints(state.currentBid)}P +
+ )} + + + + + )} +
+ + {/* 레드팀 */} +
+ +
+
+
+ ); +} diff --git a/apps/web/src/pages/HomePage.tsx b/apps/web/src/pages/HomePage.tsx new file mode 100644 index 00000000..bb3b8705 --- /dev/null +++ b/apps/web/src/pages/HomePage.tsx @@ -0,0 +1,162 @@ +import { Link } from "react-router"; +import { + nextMatchSummary, + upcomingMatches, + pastMatches, +} from "../mock"; + +function StatusBadge({ status }: { status: string }) { + const styles: Record = { + "모집 중": "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 ( + + {status} + + ); +} + +function MapBadge({ map }: { map: string }) { + return ( + + {map} + + ); +} + +export default function HomePage() { + return ( +
+ {/* 다음 내전 (Hero) */} +
+

+ 다음 내전 +

+ +
+
+
+
+
+

+ {nextMatchSummary.title} +

+ +
+

+ {nextMatchSummary.description} +

+
+ + + {nextMatchSummary.date} {nextMatchSummary.time} + + | + + + {nextMatchSummary.participants}/{nextMatchSummary.maxParticipants}명 + + | + +
+
+
+ + 상세 보기 + +
+
+
+
+ +
+ + {/* 예정된 내전 */} +
+

+ 예정된 내전 +

+
+ {upcomingMatches.map((match) => ( + +
+
+

+ {match.title} +

+ +
+
+
+ + {match.date} {match.time} +
+
+ + {match.participants}/{match.maxParticipants}명 +
+
+
+ +
+
+ + ))} +
+
+ + {/* 지난 내전 기록 */} +
+

+ 지난 내전 기록 +

+
+ + + + + + + + + + + + {pastMatches.map((match) => ( + + + + + + + + ))} + +
날짜내전맵참가결과
+ {match.date} + + + {match.title} + + + + + {match.participants}명 + + {match.result} +
+
+
+
+ ); +} diff --git a/apps/web/src/pages/MatchDetailPage.tsx b/apps/web/src/pages/MatchDetailPage.tsx new file mode 100644 index 00000000..5ef42e0a --- /dev/null +++ b/apps/web/src/pages/MatchDetailPage.tsx @@ -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 ( + + + {positionLabel[pos]} + + ); +} + +// -- 티어 색상 -- +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 ( +
+ {tier.previousSeason} + → + + {tier.current} + + + ({tier.peak}) + +
+ ); +} + +// -- 상태 배지 -- +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 ( + + + {index + 1} + + +
+
+ +
+
+ + {p.summonerName} + + + #{p.tag} + +
+
+ + + + + {assignedPos ? ( + + + + ) : ( + <> + + + + + + + + )} + + ); +} + +// -- 참가자 테이블 (팀빌딩 전) -- +function ParticipantTable({ participants }: { participants: Participant[] }) { + return ( +
+ + + + + + + + + + + + {participants.map((p, i) => ( + + ))} + +
#소환사전 시즌 → 현재 (최고)주 포지션부 포지션
+
+ ); +} + +// -- 팀 카드 (팀빌딩 후) -- +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 ( +
+
+
+
+ + {team.name} + + {isWinner && ( + + WIN + + )} +
+
+ + + + + + + + + + + {team.participants.map((p, i) => ( + + ))} + +
#소환사전 시즌 → 현재 (최고)포지션
+
+ ); +} + +// -- 사이드바 카드 -- +function SideCard({ + title, + children, +}: { + title: string; + children: React.ReactNode; +}) { + return ( +
+
+

+ {title} +

+
+
{children}
+
+ ); +} + +// -- 메인 -- +export default function MatchDetailPage() { + const { id } = useParams(); + const match = getMatchById(Number(id)); + + if (!match) { + return ( +
+

내전을 찾을 수 없습니다

+ + 홈으로 돌아가기 + +
+ ); + } + + const si = statusBadge(match.status); + + return ( +
+ {/* 뒤로가기 */} + + + + + 목록으로 + + + {/* 헤더 */} +
+
+

+ {match.title} +

+ + {si.label} + +
+

+ {match.description} +

+
+ + + + + {match.date} {match.time} + + | + + + + + {match.participants.length}/{match.maxParticipants}명 + + | + + {match.map} + +
+
+ + {/* 결과 배너 (종료된 경우) */} + {match.status === "finished" && match.result && ( +
+
+
+
+ {match.result.blueScore} +
+
+ 블루팀 +
+
+
+ VS +
+
+
+ {match.result.redScore} +
+
+ 레드팀 +
+
+
+
+ {match.result.winner} 승리 +
+
+ )} + +
+ {/* 좌측: 참가자 / 팀 */} +
+ {match.status === "recruiting" ? ( +
+
+

+ 참가자 ({match.participants.length}/{match.maxParticipants}) +

+ +
+ + {match.participants.length < match.maxParticipants && ( +
+ + {match.maxParticipants - match.participants.length}자리 남음 + +
+ )} +
+ ) : ( +
+ {match.teams?.map((team, i) => ( + + ))} +
+ )} +
+ + {/* 우측: 사이드바 */} +
+ {/* 일정 */} + {match.schedule && match.schedule.length > 0 && ( + +
    + {match.schedule.map((s, i) => ( +
  • + + {s.time} + + {s.label} +
  • + ))} +
+
+ )} + + {/* 상품 */} + {match.prizes && match.prizes.length > 0 && ( + +
    + {match.prizes.map((prize, i) => ( +
  • + ▸ + {prize} +
  • + ))} +
+
+ )} + + {/* 안내사항 */} + {match.notices && match.notices.length > 0 && ( + +
    + {match.notices.map((notice, i) => ( +
  • + • + {notice} +
  • + ))} +
+
+ )} +
+
+
+ ); +} diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 8b0f57b9..4ff4f8fe 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -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()], +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04ad70bf..10334635 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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: