Interested in sidebar and the content part ..
What do You need?
- How to rotate the element by angle N? Written, for example here
- How to make a frame? Rather, it is the element substrate, I suspect that his role some ::before, with frame to 1px and offset.
Plus, You copied from somewhere? Surely there is a source code and the HTML and CSS that you can pick open and find out the interesting moments.