Make layout generator in response to a youtube video

https://codepen.io/jipdev/full/ZEJOWjP

And the original video: https://youtu.be/0mg6tpZeFyc