Save projects as images

I want to show my an image of my projects just like the freeCodecamp example. How would I go about doing this?

Take a screenshot.