Fix hover effect on the navbar which is visually unappealing and incomplete background on hover #280 #282
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix hover effect on the navbar which is visually unappealing and incomplete background on hover #280
Description
The "Home" link on the navigation bar was not applying the intended transition and hover effects when the current route was
/
. The transition-related classes were missing when the route matched'/'
, causing the hover and animation effects to be inactive.Home
link to ensure that transition and hover-related classes (transition-all
,transform
,hover:scale-105
, etc.) are applied regardless of the current route.currentRoute === '/'
, the hover and transition effects are applied correctly along with the red text color.Fixes #280
Related Issue
None
Screenshot
Screen.Recording.2024-10-20.at.16.33.08.mov
Type of change
Checklist