feat: enhance login page with random theme and background features

- Added RandomThemeApplier to apply a random theme on login.
- Introduced RandomBackground component for setting a random background from presets.
- Updated GlobalKeyboardShortcuts import in RootLayout for consistent keyboard shortcut handling.
- Refactored BackgroundContext to include cycleBackground functionality for dynamic background changes.
- Removed deprecated useBackgroundCycle hook to streamline background management.
This commit is contained in:
Julien Froidefond
2025-10-03 17:11:02 +02:00
parent aae35aa811
commit 48e3822696
6 changed files with 119 additions and 58 deletions

View File

@@ -1,10 +1,10 @@
'use client';
import { useGlobalKeyboardShortcuts } from '@/hooks/useGlobalKeyboardShortcuts';
import { useBackgroundCycle } from '@/hooks/useBackgroundCycle';
import { useBackground } from '@/contexts/BackgroundContext';
export function GlobalKeyboardShortcuts() {
const { cycleBackground } = useBackgroundCycle();
const { cycleBackground } = useBackground();
useGlobalKeyboardShortcuts({
onCycleBackground: cycleBackground