fix: add consistent hover animations to LearningTrack buttons#161
Conversation
- Add consistent rise effect to both buttons - Use hover:-translate-y-1 hover:scale-105 for smooth lift - Enhance shadows on hover for depth - Add active:scale-95 press feedback - Match ProgramCard animation style
WalkthroughTwo CTA buttons in the LearningTrack component receive enhanced Tailwind CSS styling with additional hover effects, shadows, transformations, and dark-mode support. No functional logic or routing changes are introduced. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Adds smooth "rise" hover animations to the LearningTrack page buttons for consistency.
Changes
hover:-translate-y-1 hover:scale-105 hover:shadow-2xl active:scale-95shadow-smtoshadow-lgfor better depth perceptionDemo
Before
OSK.-.11.November.2025.mp4
After
OSK.-.11.November.2025.1.mp4
Why
The LearningTrack buttons previously only changed background color on hover, while other interactive elements (like ProgramCard buttons) have smooth lift animations. This PR makes the UI more consistent and polished.
Testing
http://localhost:5173/learningFiles Modified
src/pages/LearningTrack.jsxInspiration
Used the same hover pattern from
src/components/ProgramCard.jsxfor consistency across the codebase.Summary by CodeRabbit