Polish Novya UI with brand colors, first-load skeletons, and session transition overlay.
Keep chat pinned to the latest message while AI thinks or streams, and align buttons/inputs with the logo teal/blue focus treatment. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Navigate } from 'react-router-dom';
|
||||
import { useAuth } from '@/hooks/useAuth';
|
||||
import { useLearningJourney } from '@/hooks/useLearningJourney';
|
||||
import { PageSkeleton } from '@/components/skeletons';
|
||||
|
||||
/**
|
||||
* Entry router at "/".
|
||||
@@ -11,11 +12,7 @@ export function HomeRedirect() {
|
||||
const { progress, loading } = useLearningJourney(effectiveUserId ?? undefined);
|
||||
|
||||
if (!guestSessionHydrated || (effectiveUserId && loading)) {
|
||||
return (
|
||||
<div className="flex min-h-[50vh] items-center justify-center">
|
||||
<div className="border-primary h-12 w-12 animate-spin rounded-full border-b-2" />
|
||||
</div>
|
||||
);
|
||||
return <PageSkeleton />;
|
||||
}
|
||||
|
||||
if (!effectiveUserId) {
|
||||
|
||||
Reference in New Issue
Block a user