Comment by reconnecting

Comment by reconnecting 6 days ago

1 reply

First of all, it is very interesting to see how others expect to plan their vacation.

Previously, I had made a travel app for myself, however, it was different. The main feature was around the map and locations, with a necessary list of some POIs. When I was in the city, I used it to see if there was something interesting that I had pre-scouted not far from my location.

From the technical side, I took a look into the CSS and was surprised. Some of the CSS I could not even understand (like below), and there were thousands of different colours used hundreds of times. Not sure if it was by design.

grid-template-rows: [header]50px [macroplan]min-content [accommodation]min-content [t0000]var(--row-minute-narrow-height) [te0000 t0001]var(--row-minute-narrow-height) [te0001 t0002]var(--row-minute-narrow-height) ... in loop

kenrick95 5 days ago

Yup, it's using CSS Grid and since I have to declare the grid templates upfront, and my granularity is at minute level, it means I have to declare each minute of the day, i.e. 24 * 60 = 1440, as the rows of the grid