CodesHub icon indicating copy to clipboard operation
CodesHub copied to clipboard

Add “Favorite” Option for Each Language and a “View Favorites” Button

Open IshikaBanga26 opened this issue 2 months ago • 1 comments

Current Behavior:

Currently, the website displays programming languages in a grid layout with descriptions and example counts. However, there is no option to save or mark a preferred language for quick access later.

Proposed Solution:

Add a Favorite (❤️) button on each language card.

Clicking the heart icon toggles the favorite status.

The icon changes color (e.g., gray → red) when marked as favorite.

Add a “View Favorites” button near the top (beside “Programming Languages” heading or in the navigation bar).

Clicking it filters and displays only the favorite languages.

Save favorite state locally using browser localStorage or IndexedDB (so the favorites persist after refresh).

Tech Stack:

JavaScript for favorite toggle logic

localStorage for persistence

IshikaBanga26 avatar Oct 30 '25 18:10 IshikaBanga26