Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
|
||||
import TrackerPage from './components/tracker/TrackerPage';
|
||||
import StatsPage from './components/stats/StatsPage';
|
||||
import Navbar from './components/Navbar';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<Router>
|
||||
<div className="min-h-screen bg-gray-100 text-gray-900">
|
||||
<Navbar />
|
||||
<main className="container mx-auto mt-8">
|
||||
<Routes>
|
||||
<Route path="/" element={<TrackerPage />} />
|
||||
<Route path="/stats" element={<StatsPage />} />
|
||||
</Routes>
|
||||
</main>
|
||||
</div>
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user