This is already a lot more than a lot of people attempt so keep going ![]()
Use the Wix Reference guide when in doubt.
Take a look at Wix’s examples. I learned by ‘reverse coding’ them. Pulling them apart and redoing them to understand how and why things work a certain way.
You are on the right track so keep going.