I'll show you how to create an easy to make in-wall desk using a few panels of wood, screws and a bit of paint. (also video link below)
1.Wood panel 4'x2'
2.Wood panel 4'x16"x1/2"
3.Wood beam 6'x2.5"x1/2"
a. 4 - Drywall 2.5"
b. 8 - Cement board 1.25"
c. 24 - Stainless steel 1.25"
5.Hinges 3" (2x) 2" (2x)
7.Chalk-Paint and Roller
8.Drill gun or Screwdriver
Set height for support beam based on legs. Then attach support beam to the wall.
Paint boards with the chalk paint. (mask off with painter tape to create fun design)
Attach backboard to wall just above the support beam.
Add legs to other board using hinges. (that way they will fall when the table is set)
Attach board with legs to the support beam using the remaining hinges.
Add gate lock.