Show HN: A game to pick a favorite from a list
Check it out - https://yash.info/head-to-head.html
I created it mainly to pick a favourite fragrance from my collection of 50+. Not only is a fun project to build but it also allows me to use some of the interesting libraries and code snippets I find.
Programming logic wise there’s nothing fancy happening here, just picking a random element from an array and doing some JS and CSS around that.
New thing that I got to learn was generating a random color of a specific type (pastel, fluorescent, light) by playing with HSL values in a specific range instead of the RGB.
Discovered https://arraythis.com to convert a list to a JS array.
Used SweetAlert https://sweetalert.js.org for alert messages.
Been coding for 20+ years and such little projects still give me the joy of creation plus you always learn/find something that you did not know yesterday.