aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/App.tsx67
-rw-r--r--src/client/vite-env.d.ts1
2 files changed, 37 insertions, 31 deletions
diff --git a/src/client/App.tsx b/src/client/App.tsx
index 69af60f..8da919d 100644
--- a/src/client/App.tsx
+++ b/src/client/App.tsx
@@ -12,37 +12,42 @@ import {
export function App() {
return (
- <>
+ <div className="min-h-screen flex flex-col">
<OfflineBanner />
- <Switch>
- <Route path="/">
- <ProtectedRoute>
- <HomePage />
- </ProtectedRoute>
- </Route>
- <Route path="/decks/:deckId/cards">
- <ProtectedRoute>
- <DeckCardsPage />
- </ProtectedRoute>
- </Route>
- <Route path="/decks/:deckId/study">
- <ProtectedRoute>
- <StudyPage />
- </ProtectedRoute>
- </Route>
- <Route path="/decks/:deckId">
- <ProtectedRoute>
- <DeckDetailPage />
- </ProtectedRoute>
- </Route>
- <Route path="/note-types">
- <ProtectedRoute>
- <NoteTypesPage />
- </ProtectedRoute>
- </Route>
- <Route path="/login" component={LoginPage} />
- <Route component={NotFoundPage} />
- </Switch>
- </>
+ <div className="flex-1">
+ <Switch>
+ <Route path="/">
+ <ProtectedRoute>
+ <HomePage />
+ </ProtectedRoute>
+ </Route>
+ <Route path="/decks/:deckId/cards">
+ <ProtectedRoute>
+ <DeckCardsPage />
+ </ProtectedRoute>
+ </Route>
+ <Route path="/decks/:deckId/study">
+ <ProtectedRoute>
+ <StudyPage />
+ </ProtectedRoute>
+ </Route>
+ <Route path="/decks/:deckId">
+ <ProtectedRoute>
+ <DeckDetailPage />
+ </ProtectedRoute>
+ </Route>
+ <Route path="/note-types">
+ <ProtectedRoute>
+ <NoteTypesPage />
+ </ProtectedRoute>
+ </Route>
+ <Route path="/login" component={LoginPage} />
+ <Route component={NotFoundPage} />
+ </Switch>
+ </div>
+ <footer className="py-2 text-center text-xs text-muted">
+ v{__APP_VERSION__}
+ </footer>
+ </div>
);
}
diff --git a/src/client/vite-env.d.ts b/src/client/vite-env.d.ts
new file mode 100644
index 0000000..41fad5b
--- /dev/null
+++ b/src/client/vite-env.d.ts
@@ -0,0 +1 @@
+declare const __APP_VERSION__: string;