Trouble making UV for plane shape
Be in Front Ortho (Press Numpad 5 and Numpad 1)

Go to Edit Mode

Extrude all the faces. Select the top and bottom faces

Press U -> select -> Project from view (Bounds)



Now jump to UV Editor and hope you get a good UV.