diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-03-12 18:58:36 +0000 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-03-12 17:35:02 -0400 |
| commit | ef28973b0683823d2f3e1cee128055b18530d522 (patch) | |
| tree | 7f76c314629a4d2c631e7b937b54ddd9eef45aad /src/index.tsx | |
| parent | a9aa246f58dcb2664c4e7a1bd98e69c19e7d7000 (diff) | |
Style login and signup pages
Diffstat (limited to 'src/index.tsx')
| -rw-r--r-- | src/index.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/index.tsx b/src/index.tsx index 610fb70..b49ee66 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,5 @@ import { render } from 'preact'; -import { useMemo } from 'preact/hooks'; +import { useEffect, useMemo } from 'preact/hooks'; import { Router } from 'preact-router'; import PocketBase from 'pocketbase'; import { Pb } from './pb.ts'; @@ -11,6 +11,13 @@ export const App = () => { const pb = useMemo(() => new PocketBase(`https://${window.location.hostname}:8080/`)); return ( <Pb.Provider value={pb}> + <header> + <a class="title action" href="/">DataNodes</a> + <nav> + <a class="action" href="/login">Log In</a> + <a class="action" href="/signup">Sign Up</a> + </nav> + </header> <Router> <Home path="/" /> <SignUp path="/signup" /> |
