jhonnold / node-tlcv

Tom's Live Chess Viewer for CCRL Broadcasts on the web!
https://ccrl.live
MIT License
23 stars 8 forks source link

Add logos to viewer #53

Closed ianagbip1oti closed 1 year ago

ianagbip1oti commented 1 year ago

Fixes #3

Adds a /logos/{engine} endpoint that searches for logos in a logos folder. If the filename is a prefix of the engine name, it will use that logo.

Sets the logo as a right aligned background image on the engine name.

The screenshots below show logos at their worst. It shows what happens if there is no logo. It shows what happens with long engine names that end up overlapping the logo.

Screenshot 2023-07-11 at 15 29 19 Screenshot 2023-07-11 at 15 29 30

jhonnold commented 1 year ago

Graham is working on Logos and i'll do some additional verification with that once it's ready. Will probably merge and launch sometime this weekend.

ianagbip1oti commented 1 year ago

Awesome. Just added a small tweak where the engine may have digits in their engine name. e.g., CT800