33 lines
986 B
TypeScript
33 lines
986 B
TypeScript
import { BrowserRouter, Routes, Route } from "react-router";
|
|
import HomePage from "./pages/HomePage";
|
|
import MatchDetailPage from "./pages/MatchDetailPage";
|
|
import AuctionPage from "./pages/AuctionPage";
|
|
|
|
function App() {
|
|
return (
|
|
<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>
|
|
|
|
<Routes>
|
|
<Route path="/" element={<HomePage />} />
|
|
<Route path="/match/:id" element={<MatchDetailPage />} />
|
|
<Route path="/match/:id/auction" element={<AuctionPage />} />
|
|
</Routes>
|
|
</div>
|
|
</BrowserRouter>
|
|
);
|
|
}
|
|
|
|
export default App;
|