How to make a siderbar menu like the official website?

Hi, Iโ€™ve learned how to build multi-page apps and applied the idea to my project. I can change the page using the radio button, like the example I built (apologies in advance, itโ€™s slow). However, how can I achieve the functionalities that by default, the page where the user is situated is highlighted, without radio buttons? Thanks.