Improve Navbar Link Highlighting for Better User Experience #180
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing feature
🟩 priority: low
Low priority and doesn't need to be rushed
🚧 status: blocked
Blocked & therefore, not ready for work
Problem
The current navbar links do not visually indicate which page the user is on, which can lead to a confusing user experience.
Description
To enhance the user experience, I propose adding an active state style to the navbar links. This will visually indicate the current page the user is on. For example, adding a dark black color and bold text or underline for the active link can make it stand out:
Proposed Solution
To improve the user experience, I suggest adding an active state style to the navbar links. This will help users easily identify the current page they are on.
Request for Guidance
I am keen to implement this feature and would appreciate guidance on validating these changes and the steps required to implement them. If this proposal is approved, I am ready to start working on it immediately.
Implementation
The proposed changes include:
Vue Component Changes:
Modify the Navbar component to include a reactive activeLink property.
Add a setActive method to update the activeLink property and navigate to the clicked link.
Styling Changes:
Update the styles in the Navbar component to highlight the active link. The active link will be indicated with a black color and bold text or an underline.
Example Code
Here is an example of how the changes can be implemented:
The text was updated successfully, but these errors were encountered: