How to stay motivated?

Really - find something you want to do! what kind of website, app or whatever (I don’t know much) and work at it. Suddenly what you’ve learned makes more sense but more importantly it drives to learning more.

Do the projects and take pride in doing them well.

Also, if you really want a boost, start working with other people on a project. Working on a team to make something is great. You bond very quickly and solving problems together is much more fun (and good practice for a real job).