Two-dimensional steady edge waves. Part I: Periodic waves