diff --git a/components/dashboard/auth-overlay.tsx b/components/dashboard/auth-overlay.tsx index fe9609d..2c341f3 100644 --- a/components/dashboard/auth-overlay.tsx +++ b/components/dashboard/auth-overlay.tsx @@ -29,7 +29,7 @@ export function DashboardAuthOverlay({ const containerRef = useRef(null); const { scrollYProgress } = useScroll({ target: containerRef, - offset: ["start 90%", "start 10%"], + offset: ["start 45%", "start 10%"], }); // Snappy, premium spring (PhonePe style) @@ -47,48 +47,58 @@ export function DashboardAuthOverlay({ return ( - {/* Frosted Backdrop — opacity linked to scroll */} + {/* Frosted Backdrop — covers dashboard section */} - {/* Wrapper: Sticky scrolling on Mobile, Static absolute centering on Desktop */} -
+ {/* Fixed Card Container — viewport-pinned so it never scrolls away */} +
{/* Floating Card - Scale, Opacity, Y, and 3D Rotate linked to smooth scroll */} - {/* Top Gradient Accent Line */} -
+ {/* Light Mode Ambient Background Mesh */} +
+
+
+
+
- {/* Subtle ambient glow (dark mode) */} -
-
+ {/* Dark Mode Ambient Background Glow */} +
+
-
- {/* Dynamic Lock Icon with floating + pulse */} + {/* Top Gradient Accent Rim */} +
+ +
+ {/* Floating Glowing Lock Header */} - {/* Outer pulsing glow ring */} + {/* Pulsing Backlight */} -
+ +
- {/* Premium Badge */} -
- + {/* Unified Glowing Badge */} +
+ Personalized Dashboard
- {/* Heading */} -

+ {/* Title */} +

Unlock Your Personalized Dashboard

- {/* Description — explains WHY login is needed */} -

+ {/* Subtitle / Description */} +

Create an account and complete your profile to unlock a dashboard tailored to your{" "} - + University ,{" "} - + Branch , and{" "} - + Semester - . Access your syllabus, previous year questions, AI tutor, - notes, and learning progress — all in one place. + . Access your syllabus, previous year questions, AI tutor, and + learning progress.

- {/* Onboarding Steps */} -
+ {/* Onboarding Timeline */} +
{onboardingSteps.map((step, i) => ( -
- {/* Step indicator dot + connector */} -
+
+
{step.isLast ? ( @@ -153,73 +166,73 @@ export function DashboardAuthOverlay({ {i + 1} )}
- {i < onboardingSteps.length - 1 && ( -
- )} + + {step.label} +
- {/* Step label */} - - {step.label} - + + {step.isLast && ( + + Final Step + + )}
))}
- {/* Action Buttons */} -
+ {/* CTA Buttons */} +
- Create Account + Create Account - - Sign In + + Sign In
- {/* Preview Button */} + {/* Preview CTA Option */} {onPreview && ( )} - {/* Personalization-focused bottom text */} -
- - + {/* Feature Pills Footer */} +
+ + Your University - - - + + Your Branch - - - + + Your Semester
-
+ ); }