diff --git a/src/app.css b/src/app.css index eb02d79..5afbab4 100644 --- a/src/app.css +++ b/src/app.css @@ -1,3 +1,5 @@ +@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200..1000&display=swap'); + @tailwind base; @tailwind components; @tailwind utilities; @@ -6,6 +8,11 @@ html { @apply dark:bg-neutral-950; @apply dark:text-neutral-200; @apply transition-colors; + + font-family: 'Nunito', sans-serif; + font-optical-sizing: auto; + font-weight: 400; + font-style: normal; } strong { diff --git a/src/hooks.server.js b/src/hooks.server.js index 9aa8b08..6d712fe 100644 --- a/src/hooks.server.js +++ b/src/hooks.server.js @@ -1,4 +1,4 @@ -import { redirect } from '@sveltejs/kit'; +import { error, redirect } from '@sveltejs/kit'; import { getSession } from '$lib/server/database'; import { COOKIE } from '$lib/config'; @@ -25,7 +25,9 @@ export async function handle({ event, resolve }) { }; } - if (event.route.id.includes('(app)') && !user) return redirect(303, '/'); + if (event.route.id) { + if (event.route.id.includes('(app)') && !user) return redirect(303, '/'); + } return await resolve(event); } diff --git a/src/lib/components/Dropdown.svelte b/src/lib/components/Dropdown.svelte index d5af63a..742b9f0 100644 --- a/src/lib/components/Dropdown.svelte +++ b/src/lib/components/Dropdown.svelte @@ -9,12 +9,14 @@ } -
- File Uploader -
-{$user?.username}
Uploads
+ShareX Profile
Settings
diff --git a/src/lib/components/Inputs/Button.svelte b/src/lib/components/Inputs/Button.svelte index e8568aa..0c04d33 100644 --- a/src/lib/components/Inputs/Button.svelte +++ b/src/lib/components/Inputs/Button.svelte @@ -11,13 +11,7 @@ {disabled} > diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 1c93c54..9b8686e 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -8,7 +8,7 @@