diff --git a/frontend/src/lib/stores/auth.ts b/frontend/src/lib/stores/auth.ts index babd429..c2bf415 100644 --- a/frontend/src/lib/stores/auth.ts +++ b/frontend/src/lib/stores/auth.ts @@ -1,10 +1,15 @@ import { writable, derived } from 'svelte/store'; -import type { User } from '$lib/api/types'; + +export interface AuthUser { + id: number; + name: string; + isAdmin: boolean; +} export interface AuthState { accessToken: string | null; refreshToken: string | null; - user: User | null; + user: AuthUser | null; } const initial: AuthState = { accessToken: null, refreshToken: null, user: null }; diff --git a/frontend/src/routes/login/+page.svelte b/frontend/src/routes/login/+page.svelte new file mode 100644 index 0000000..292569e --- /dev/null +++ b/frontend/src/routes/login/+page.svelte @@ -0,0 +1,193 @@ + + + + Welcome to Tanabata File Manager! + + +
+ + + +
+

Welcome to
Tanabata File Manager!

+ + {#if error} + + {/if} + +
+ +
+
+ +
+
+ +
+
+
+ + \ No newline at end of file diff --git a/frontend/static/images/tanabata-left.png b/frontend/static/images/tanabata-left.png new file mode 100644 index 0000000..dd15de2 Binary files /dev/null and b/frontend/static/images/tanabata-left.png differ diff --git a/frontend/static/images/tanabata-right.png b/frontend/static/images/tanabata-right.png new file mode 100644 index 0000000..1a6d484 Binary files /dev/null and b/frontend/static/images/tanabata-right.png differ