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.