The door swinging over the stairs does not comply with building regs. Also a landing at the top of the stairs has to be the same width as your stairs, I would argue also that your doorway doesn't allow this. Why do you want to do this and make it awkward for anyone accessing the stairs?