CyCraft / CyCraft/pepicons

feat(pepicons.com): Favourite icons

Open
#184 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
59
Forks
6
PR merge metrics
No merged PRs in 30d

Description

### UI
- heart icon to left of icon modal
- same color as bottom section
- same size as the code buttons
- should always use `type="pencil"`
- "favourited" should show `heart-filled` instead, and have the "main" color that the user picked

![image](https://github.com/CyCraft/pepicons/assets/3253920/d33d32f7-928b-4ed8-807d-f03b9ada739e)

### Behaviour
- when you click to favourite an icon, it should save it to localStorage
- IF the local storage is empty and no icons have been saved yet
- the modal should close and the website should smooth scroll to the top
- there as a first _new_ category we see `Favourites` and there the icon you just favourited is seen
- IF we already have 1 or more icons favourited, then we just make the heart icon the main color without closing the modal

be sure the favourited icons are persisted on page refresh

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.