I am making a plugin but i am facing some problems while making pages as i am not able to cope up with the various twig conventions and shopware classes for the designing of the page. is there a documentation or some othe links that may come helpgul?

I am facing problems with the designing in twig files . and also how to authorize a user on some other site using the twig files. thanks