qri-io / frontend

frontend application for our qri.cloud site
GNU General Public License v3.0
3 stars 2 forks source link

feat(*): add default `UserIcon` that generates an icon based on the user's initials and a qri color #567

Closed ramfox closed 2 years ago

ramfox commented 3 years ago

If a user doesn't have a photo, generate an icon based on the username's first initial

colors here: https://www.figma.com/file/nKusm2LRrv5J1lcU5yKEtQ/Qrimatic-2.0-NEW?node-id=3263%3A35651

icon look here: https://www.figma.com/file/nKusm2LRrv5J1lcU5yKEtQ/Qrimatic-2.0-NEW?node-id=3418%3A89494

we can use a hash of the username to determine what color to show for the icon.

chriswhong commented 2 years ago

This was accomplished, we now choose from one of a few icons based on a hash of the username.