This idea is impressive and serves 2 purposes, it will be praised by everyone; who will see it in your home. This idea of folding desk cum shelf will save the space of placing a desk separately, this is not difficult to copy.
Here's what you're working toward. It looks a lot like the IKEA version, if you ask us. Take note: see that pencil line? We drew that once we found the stud in the wall and it was our measure of how high we wanted the desk to be. Just read below, it'll make sense!