leonlan / tour-du-mont-blanc

Planning tool for your Tour du Mont Blanc adventure ⛰️!
https://tour-du-mont-blanc.streamlit.app/
MIT License
6 stars 0 forks source link

Color-coded availability #10

Closed leonlan closed 2 months ago

leonlan commented 7 months ago

The current availability calendar does not use colors to indicate whether a place has beds or not.

image

It would be nice to have an input in the sidebar saying "number of persons" and if a hut has at least that many beds available, the corresponding cell should be colored green.

One way to do this is to add custom CSS to the dataframe.

https://stackoverflow.com/questions/43596579/how-to-use-pandas-stylers-for-coloring-an-entire-row-based-on-a-given-column

And combine this with https://shiny.posit.co/py/docs/ui-customize.html#custom-css.