jeffpiazza / derbynet

Open-source Pinewood Derby race management, built around a web server and database
MIT License
98 stars 72 forks source link

Feature request - Identify lanes by custom names #253

Open archprlest opened 1 year ago

archprlest commented 1 year ago

Be able to adjust the display of the lanes to show custom names (or just color names) in place of the number, such as red (1), blue (2), orange (3), yellow (4), and assign a color (color picker);

adjust the background color of the on-deck page and other screens to match the assigned color.

My pack is concerned that it is too easy to stage the car in the wrong lane when using just the number, having them color coded with a custom name will help prevent this.

ksbrys commented 1 year ago

I would also like to see some more customization in the styling of the pages.

If you know any CSS you can edit the now-racing.css file and add this code to colorize the lane numbers (clear your browser's cache after you save the css file) ...

table tr:nth-child(2) td:nth-child(1) { background-color: red; } table tr:nth-child(3) td:nth-child(1) { background-color: blue; } table tr:nth-child(4) td:nth-child(1) { background-color: yellow; } table tr:nth-child(5) td:nth-child(1) { background-color: green; }

So lane 1 is red, lane 2 is blue, and so on. Here is a link to some HTML color codes. https://htmlcolorcodes.com/color-names/