Implement user settings and dark mode toggle in layout component
CI / build (push) Has been skipped
CI / deploy (push) Successful in 50s

- Added functionality to toggle dark mode based on user preferences, with state management and API integration for saving settings.
- Introduced a user avatar display with initials fallback and a dropdown menu for logout and dark mode options.
- Enhanced layout structure to conditionally render the header based on user authentication status.
This commit is contained in:
eewing
2026-02-17 10:31:57 -06:00
parent 3c4712b5ee
commit 069f38a313
10 changed files with 233 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ locals }) => {
return {
user: locals.user ? structuredClone(locals.user) : null
};
};