-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Labels
Description
Feature Description
Add a simple view counter to track how many times each project is viewed. Display as "👁️ X views" on project cards to help identify popular projects.
Proposed Solution
Use browser localStorage to store view counts. Increment counter when user clicks on a project. Display count on project cards with an eye icon.
// Store and retrieve view counts
const viewCounts = JSON.parse(localStorage.getItem('viewCounts') || '{}');
viewCounts[projectId] = (viewCounts[projectId] || 0) + 1;
localStorage.setItem('viewCounts', JSON.stringify(viewCounts));Alternatives Considered
No response
Mockups/Screenshots
No response
Contribution
- I would like to work on this feature
Reactions are currently unavailable