diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-06 18:01:31 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-06 18:01:31 +0900 |
| commit | 17ba3c603e4c522ccca282f6786fff2e0b3f4f6e (patch) | |
| tree | 9cc28e1dcb0be2a89ada63de2717f061e66aa5cd /src/client/pages | |
| parent | 4f924d8004b6273230b23dcfe73bacbf114e4fac (diff) | |
| download | kioku-17ba3c603e4c522ccca282f6786fff2e0b3f4f6e.tar.gz kioku-17ba3c603e4c522ccca282f6786fff2e0b3f4f6e.tar.zst kioku-17ba3c603e4c522ccca282f6786fff2e0b3f4f6e.zip | |
feat(client): setup routing with wouter
Add wouter router with pages for home, login, register, and 404.
Include tests for all routes using @testing-library/react.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'src/client/pages')
| -rw-r--r-- | src/client/pages/HomePage.tsx | 8 | ||||
| -rw-r--r-- | src/client/pages/LoginPage.tsx | 8 | ||||
| -rw-r--r-- | src/client/pages/NotFoundPage.tsx | 11 | ||||
| -rw-r--r-- | src/client/pages/RegisterPage.tsx | 8 | ||||
| -rw-r--r-- | src/client/pages/index.ts | 4 |
5 files changed, 39 insertions, 0 deletions
diff --git a/src/client/pages/HomePage.tsx b/src/client/pages/HomePage.tsx new file mode 100644 index 0000000..1d65484 --- /dev/null +++ b/src/client/pages/HomePage.tsx @@ -0,0 +1,8 @@ +export function HomePage() { + return ( + <div> + <h1>Kioku</h1> + <p>Spaced repetition learning app</p> + </div> + ); +} diff --git a/src/client/pages/LoginPage.tsx b/src/client/pages/LoginPage.tsx new file mode 100644 index 0000000..459e2ce --- /dev/null +++ b/src/client/pages/LoginPage.tsx @@ -0,0 +1,8 @@ +export function LoginPage() { + return ( + <div> + <h1>Login</h1> + <p>Login page coming soon</p> + </div> + ); +} diff --git a/src/client/pages/NotFoundPage.tsx b/src/client/pages/NotFoundPage.tsx new file mode 100644 index 0000000..289dab5 --- /dev/null +++ b/src/client/pages/NotFoundPage.tsx @@ -0,0 +1,11 @@ +import { Link } from "wouter"; + +export function NotFoundPage() { + return ( + <div> + <h1>404 - Not Found</h1> + <p>The page you're looking for doesn't exist.</p> + <Link href="/">Go to Home</Link> + </div> + ); +} diff --git a/src/client/pages/RegisterPage.tsx b/src/client/pages/RegisterPage.tsx new file mode 100644 index 0000000..a7fbb59 --- /dev/null +++ b/src/client/pages/RegisterPage.tsx @@ -0,0 +1,8 @@ +export function RegisterPage() { + return ( + <div> + <h1>Register</h1> + <p>Registration page coming soon</p> + </div> + ); +} diff --git a/src/client/pages/index.ts b/src/client/pages/index.ts new file mode 100644 index 0000000..99cf046 --- /dev/null +++ b/src/client/pages/index.ts @@ -0,0 +1,4 @@ +export { HomePage } from "./HomePage"; +export { LoginPage } from "./LoginPage"; +export { NotFoundPage } from "./NotFoundPage"; +export { RegisterPage } from "./RegisterPage"; |
