I have created a basic calendar using Vuejs, momentjs, and css-grids layout. However, the calendar currently starts with Sunday (in American style) and I would like to change it to start with Monday (European style). I attempted to modify the column method by decrementing it to 2, but it only displays August and other months incorrectly starting with the wrong weekdays. Additionally, I believe I need to adjust the css option grid-template-columns to accommodate Mondays as the first days of the week.
You can view the codepen here: https://codepen.io/moogeek/pen/oNWyWvM
// Vue instance code goes here
// CSS styling code is here
// HTML structure code is presented below in the next block
upd. I have found a better solution which involves separating weekdays and days into different containers and adding the grid-column:7 property to the first day child. I also adjusted the column function so it no longer adds additional offset:
https://codepen.io/moogeek/pen/ExmRzgb
After implementing this update, the August month now displays correctly upon mounting. However, when I click on previous or next months, the display gets messed up and shows September's days order for all months. Can you please help me identify what I am doing wrong and how I can fix the code to ensure all months are displayed properly?