Closed 0xilis closed 9 months ago
By the way, I should note that I'm using zero-width spaces to ensure nothing breaks; you can't really see them since they're invisible, but they're there :P.
Has this been tested
technically, it may look even better if there was an animation when it appears rather than just popping in randomly, but I'm not good enough at frontend to know how to do that, plus I'm lazy and this should suffice for now. also, may be a good idea to cache the star count, but I don't know Astro...
when the site loads, it makes a request to get the current number of stars for the project and replaces it with the number. before this (or if it doesn't succeed), "starsHere" is shown. IMO, this looks very jarring; so, instead, we just show the star icon and nothing else prior to the request finishing, which IMO looks much more natural.