I would just make it a closet with shelves that go all the way across not in a walk in l shape if that makes sense.
Build l shaped pantry shelves.
In this article i have listed 24 diy pantry shelves that you can make for your home.
Next i built the framework for the other wall in the same way and attached it to the wall where i had marked for studs and just as i had added the end 1 x 2 pieces on the first shelf i added an end 1 x 2 piece for this shelf as well attaching it directly to the front of that side shelf framework.
Our space is about 3 feet by 4 feet.
Build another frame to create l shaped shelf.
24 diy pantry shelves to improve storage in your home.
24 would be too small to fit shelving and be able to walk next to it.